summaryrefslogtreecommitdiff
path: root/ham/gnuradio-core/Nocore.mk
blob: 4a169344cb38782be7e7034defe15a065c33eb53 (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
# $NetBSD: Nocore.mk,v 1.3 2014/10/28 06:41:20 mef Exp $
# Default list for reducing PLIST
PLIST_MINUS=	core
DEPENDS+=	gnuradio-core-[0-9]*:../../ham/gnuradio-core

# Remove the same files gnuradio-core installs
# Do a part of PLIST_SUBST and remove non real file listings
#.if empty(PKGBASE:Mgnuradio-core) && !empty(PLIST_MINUS)
post-install:
# Take care CONF_FILES stuff
	${MV}		    ${DESTDIR}${PREFIX}/etc/gnuradio/conf.d/* \
			    ${DESTDIR}${PREFIX}/${EGDIR}/
# to avoid sh: /bin/rm: argument list too long in case repeated..
	${RM} -f ${WRKDIR}/.PLIST.minus;
	for i in ${PLIST_MINUS} ; do			\
	  sed  -e 's,$${PYSITELIB},${PYSITELIB},'	\
	       -e 's,$${PKGVERSION_NOREV},${PKGVERSION_NOREV},'	\
	       -e '/^@comment/d'			\
	       -e '/^@pkgdir/d'				\
	       ${PKGDIR}/../../ham/gnuradio-$$i/PLIST	\
		 >> ${WRKDIR}/.PLIST.minus;		\
		done;					\
	  (cd ${WRKDIR}/.destdir/${PREFIX};		\
	${RM} -f `cat ${WRKDIR}/.PLIST.minus`	);