summaryrefslogtreecommitdiff
path: root/meta-pkgs/gnuradio/Makefile.common
blob: 622ec8574e45dd803d8bac9a7f1c9eafe1df4af0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# $NetBSD: Makefile.common,v 1.17 2011/02/28 14:52:55 wiz Exp $
#
# This Makefile fragment is included at the top of package Makefiles for
# GNU Radio distributed packages (they all share common configure and build
# settings).

.include        "../../meta-pkgs/gnuradio/Makefile.version"

DISTNAME?=	gnuradio-${VERSION}
CATEGORIES+=	ham
MASTER_SITES?=	http://gnuradio.org/releases/gnuradio/

MAINTAINER?=	pkgsrc-users@NetBSD.org
HOMEPAGE?=	http://www.gnu.org/software/gnuradio/
LICENSE=	gnu-gpl-v3

USE_LIBTOOL=	yes
GNU_CONFIGURE=	yes
USE_LANGUAGES=	c c++
USE_TOOLS+=	gmake automake autoconf pkg-config

MAKE_JOBS_SAFE=	no

DISTINFO_FILE=		${.CURDIR}/../../meta-pkgs/gnuradio/distinfo
PATCHDIR=		${.CURDIR}/../../meta-pkgs/gnuradio/patches

BUILD_DEPENDS+=doxygen>=1.5.1:../../devel/doxygen

PY_PATCHPLIST=	yes

EGDIR=		${PREFIX}/share/examples/gnuradio/conf.d
PKG_SYSCONFSUBDIR=gnuradio/conf.d

CONFIGURE_ARGS+=        --sysconfdir=${PREFIX}/share/examples
CONFIGURE_ARGS+=        --disable-all-components
CONFIGURE_ARGS+=	--with-boost-thread=boost_thread
CONFIGURE_ARGS+=	--with-boost-program-options=boost_program_options

pre-configure:
.if  empty(PKGNAME:Mgnuradio-howto-*)
	cd ${WRKSRC} && ./bootstrap
.endif

.include "../../mk/bsd.prefs.mk"