Merge from vendor branch TNF:
[pkgsrcv2.git] / meta-pkgs / gnuradio / Makefile.common
1 # $NetBSD: Makefile.common,v 1.15 2009/09/11 16:23:31 joerg Exp $
2 #
3 # This Makefile fragment is included at the top of package Makefiles for
4 # GNU Radio distributed packages (they all share common configure and build
5 # settings).
6
7 .include        "../../meta-pkgs/gnuradio/Makefile.version"
8
9 DISTNAME?=      gnuradio-${VERSION}
10 CATEGORIES+=    ham
11 MASTER_SITES?=  http://gnuradio.org/releases/gnuradio/
12
13 MAINTAINER?=    wulf@NetBSD.org
14 HOMEPAGE?=      http://www.gnu.org/software/gnuradio/
15 LICENSE=        gnu-gpl-v3
16
17 USE_LIBTOOL=    yes
18 GNU_CONFIGURE=  yes
19 USE_LANGUAGES=  c c++
20 USE_TOOLS+=     gmake automake autoconf pkg-config
21
22 MAKE_JOBS_SAFE= no
23
24 DISTINFO_FILE=          ${.CURDIR}/../../meta-pkgs/gnuradio/distinfo
25 PATCHDIR=               ${.CURDIR}/../../meta-pkgs/gnuradio/patches
26
27 BUILD_DEPENDS+=doxygen>=1.5.1:../../devel/doxygen
28
29 PY_PATCHPLIST=  yes
30
31 EGDIR=          ${PREFIX}/share/examples/gnuradio/conf.d
32 PKG_SYSCONFSUBDIR=gnuradio/conf.d
33
34 CONFIGURE_ARGS+=        --sysconfdir=${PREFIX}/share/examples
35 CONFIGURE_ARGS+=        --disable-all-components
36 CONFIGURE_ARGS+=        --with-boost-thread=boost_thread
37 CONFIGURE_ARGS+=        --with-boost-program-options=boost_program_options
38
39 pre-configure:
40 .if  empty(PKGNAME:Mgnuradio-howto-*)
41         cd ${WRKSRC} && ./bootstrap
42 .endif
43
44 .include "../../mk/bsd.prefs.mk"