pkgsrc/ham/gnuradio-core/Nocore.mk

25 lines
943 B
Makefile
Raw Normal View History

# $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` );