From 5ece8a807dbd3311e62757d338f27d2ca7384216 Mon Sep 17 00:00:00 2001 From: dbj Date: Tue, 27 Jan 2015 06:03:17 +0000 Subject: Add PLIST support for Darwin audio fix Nocore.mk to handle PLIST.Darwin and use _PLIST_SHLIB_AWK to fix shared library names --- ham/gnuradio-core/Nocore.mk | 28 ++++++++++++++++------------ ham/gnuradio-core/PLIST.Darwin | 3 +++ 2 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 ham/gnuradio-core/PLIST.Darwin (limited to 'ham') 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 -- cgit v1.2.3