summaryrefslogtreecommitdiff
path: root/ham
diff options
context:
space:
mode:
authordbj <dbj>2015-01-27 06:03:17 +0000
committerdbj <dbj>2015-01-27 06:03:17 +0000
commit5ece8a807dbd3311e62757d338f27d2ca7384216 (patch)
treeb1ea2cff31c98ad64be742601ab879b8c3bc8cfd /ham
parentffab8b7ce4ad1400684f4757c0aa4b3061215c98 (diff)
downloadpkgsrc-5ece8a807dbd3311e62757d338f27d2ca7384216.tar.gz
Add PLIST support for Darwin audio
fix Nocore.mk to handle PLIST.Darwin and use _PLIST_SHLIB_AWK to fix shared library names
Diffstat (limited to 'ham')
-rw-r--r--ham/gnuradio-core/Nocore.mk28
-rw-r--r--ham/gnuradio-core/PLIST.Darwin3
2 files changed, 19 insertions, 12 deletions
diff --git a/ham/gnuradio-core/Nocore.mk b/ham/gnuradio-core/Nocore.mk
index 83e36eb7f75..c07eefb5f0a 100644
--- a/ham/gnuradio-core/Nocore.mk
+++ b/ham/gnuradio-core/Nocore.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Nocore.mk,v 1.4 2014/10/28 16:59:33 mef Exp $
+# $NetBSD: Nocore.mk,v 1.5 2015/01/27 06:03:17 dbj Exp $
# Default list for reducing PLIST
PLIST_MINUS= core
DEPENDS+= gnuradio-core-[0-9]*:../../ham/gnuradio-core
@@ -10,15 +10,19 @@ 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},' \
+ for i in ${PLIST_MINUS} ; do \
+ for p in PLIST PLIST.${OPSYS} ; do \
+ f="${PKGDIR}/../../ham/gnuradio-$${i}/$${p}"; \
+ if [ -f "$${f}" ]; then \
+ ${SED} -e 's,$${PYSITELIB},${PYSITELIB},' \
-e 's,$${PKGVERSION},${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` );
+ -e '/^@comment/d' \
+ -e '/^@pkgdir/d' \
+ "$${f}"; \
+ fi \
+ done \
+ done \
+ | ${AWK} ${_PLIST_SHLIB_AWK} \
+ > ${WRKDIR}/.PLIST.minus;
+ (cd ${WRKDIR}/.destdir/${PREFIX}; \
+ ${RM} -f $$(cat ${WRKDIR}/.PLIST.minus) );
diff --git a/ham/gnuradio-core/PLIST.Darwin b/ham/gnuradio-core/PLIST.Darwin
new file mode 100644
index 00000000000..74207f02526
--- /dev/null
+++ b/ham/gnuradio-core/PLIST.Darwin
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST.Darwin,v 1.1 2015/01/27 06:03:17 dbj Exp $
+include/gnuradio/audio/osx_impl.h
+share/examples/gnuradio/conf.d/gr-audio-osx.conf