pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/ham/fldigi ham/fldigi: build app bundles for fldigi an...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ab86fde8bf07
branches:  trunk
changeset: 443031:ab86fde8bf07
user:      dbj <dbj%pkgsrc.org@localhost>
date:      Sun Dec 06 00:22:04 2020 +0000

description:
ham/fldigi: build app bundles for fldigi and flarq on Darwin

diffstat:

 ham/fldigi/Makefile                             |  28 ++++++++++++++++++-
 ham/fldigi/PLIST.Darwin                         |  36 +++++++++++++++++++++++++
 ham/fldigi/distinfo                             |   3 +-
 ham/fldigi/patches/patch-scripts_mkappbundle.sh |  20 +++++++++++++
 4 files changed, 84 insertions(+), 3 deletions(-)

diffs (122 lines):

diff -r 5adac804e7a5 -r ab86fde8bf07 ham/fldigi/Makefile
--- a/ham/fldigi/Makefile       Sat Dec 05 18:28:13 2020 +0000
+++ b/ham/fldigi/Makefile       Sun Dec 06 00:22:04 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.122 2020/11/29 22:07:22 dbj Exp $
+# $NetBSD: Makefile,v 1.123 2020/12/06 00:22:04 dbj Exp $
 
 DISTNAME=      fldigi-4.1.01
-PKGREVISION=   11
+PKGREVISION=   12
 CATEGORIES=    ham
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=fldigi/}
 
@@ -42,6 +42,30 @@
 CXXFLAGS+=     -Wno-error=c++11-narrowing
 .endif
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+PLIST_SUBST+=  FLDIGI_VERSION=${PKGVERSION_NOREV}
+PLIST_SUBST+=  FLARQ_VERSION="4.3.7"
+
+post-build:
+       @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} appbundle
+       for f in ${WRKSRC}/src/${DISTNAME}/*.app; do \
+               /usr/libexec/PlistBuddy \
+                       -c 'Add :NSMicrophoneUsageDescription string "Allow for using Sound input devices"' \
+                       $${f}/Contents/Info.plist; \
+       done
+
+INSTALLATION_DIRS+=    Applications
+USE_TOOLS+=    pax
+post-install:
+       cd ${WRKSRC}/src/${DISTNAME} && \
+               pax -rw -pp -pm *.app ${DESTDIR}${PREFIX}/Applications
+
+CHECK_SHLIBS_SKIP+=    Applications/*/Contents/Frameworks/*.dylib
+CHECK_WRKREF_SKIP+=    Applications/*/Contents/MacOS/*
+.endif
+
 .include "../../audio/libsamplerate/buildlink3.mk"
 .include "../../audio/libsndfile/buildlink3.mk"
 .include "../../audio/portaudio/buildlink3.mk"
diff -r 5adac804e7a5 -r ab86fde8bf07 ham/fldigi/PLIST.Darwin
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/ham/fldigi/PLIST.Darwin   Sun Dec 06 00:22:04 2020 +0000
@@ -0,0 +1,36 @@
+@comment $NetBSD: PLIST.Darwin,v 1.1 2020/12/06 00:22:04 dbj Exp $
+Applications/flarq-${FLARQ_VERSION}.app/Contents/Frameworks/libfltk.1.dylib
+Applications/flarq-${FLARQ_VERSION}.app/Contents/Frameworks/libfltk_images.1.dylib
+Applications/flarq-${FLARQ_VERSION}.app/Contents/Frameworks/libflxmlrpc.1.dylib
+Applications/flarq-${FLARQ_VERSION}.app/Contents/Frameworks/libintl.8.dylib
+Applications/flarq-${FLARQ_VERSION}.app/Contents/Frameworks/libjpeg.9.dylib
+Applications/flarq-${FLARQ_VERSION}.app/Contents/Frameworks/libpng16.16.dylib
+Applications/flarq-${FLARQ_VERSION}.app/Contents/Info.plist
+Applications/flarq-${FLARQ_VERSION}.app/Contents/MacOS/flarq
+Applications/flarq-${FLARQ_VERSION}.app/Contents/PkgInfo
+Applications/flarq-${FLARQ_VERSION}.app/Contents/Resources/flarq.icns
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libFLAC.8.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libdbus-1.3.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libfltk.1.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libfltk_images.1.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libflxmlrpc.1.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libgdbm.6.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libhamlib.2.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libintl.8.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libjpeg.9.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libogg.0.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libopus.0.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libpng16.16.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libportaudio.2.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libpulse-simple.0.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libpulse.0.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libpulsecommon-13.0.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libsamplerate.0.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libsndfile.1.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libusb-1.0.0.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libvorbis.0.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Frameworks/libvorbisenc.2.dylib
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Info.plist
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/MacOS/fldigi
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/PkgInfo
+Applications/fldigi-${FLDIGI_VERSION}.app/Contents/Resources/fldigi.icns
diff -r 5adac804e7a5 -r ab86fde8bf07 ham/fldigi/distinfo
--- a/ham/fldigi/distinfo       Sat Dec 05 18:28:13 2020 +0000
+++ b/ham/fldigi/distinfo       Sun Dec 06 00:22:04 2020 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.66 2019/02/23 11:30:03 mef Exp $
+$NetBSD: distinfo,v 1.67 2020/12/06 00:22:04 dbj Exp $
 
 SHA1 (fldigi-4.1.01.tar.gz) = 79bd6fbd28d7dd63de450e63de993dd230fabae2
 RMD160 (fldigi-4.1.01.tar.gz) = 598158a8367a821265893812cec496f0d1fdefaa
 SHA512 (fldigi-4.1.01.tar.gz) = f0fa33714b56d396dea59511083546765a34c645aa03875d0c6bb38af89ff79ecad6b5556895a6615d18b6340d50d94beb69e92c4a488fed346863fa1e378633
 Size (fldigi-4.1.01.tar.gz) = 3916445 bytes
+SHA1 (patch-scripts_mkappbundle.sh) = e5029f71ce2474b2781c891faffd74c572d3f3eb
 SHA1 (patch-src_misc_configuration.cxx) = 6eb188f479f2586d5aee9f919832703a9d6fa86a
 SHA1 (patch-src_misc_newinstall.cxx) = 2c215e9423d27dd4f4657221b17cf4ed3f12355c
diff -r 5adac804e7a5 -r ab86fde8bf07 ham/fldigi/patches/patch-scripts_mkappbundle.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/ham/fldigi/patches/patch-scripts_mkappbundle.sh   Sun Dec 06 00:22:04 2020 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-scripts_mkappbundle.sh,v 1.1 2020/12/06 00:22:04 dbj Exp $
+
+Do not build the disk image on Darwin.
+This would not be an issue except it requires write access to /dev/*
+and fails if sandboxed off.  This is not used by pkgsrc anyway.
+
+--- scripts/mkappbundle.sh.orig        2018-03-21 15:16:19.000000000 +0000
++++ scripts/mkappbundle.sh
+@@ -123,7 +123,7 @@ if test "x$WANT_FLARQ" = "xyes"; then
+       bundle
+ fi
+ 
+-cd "$build"
+-
+-echo "creating disk image"
+-hdiutil create -ov -srcfolder "$bundle_dir" -format UDZO -tgtimagekey zlib-level=9 "${APPBUNDLE}.dmg"
++#cd "$build"
++#
++#echo "creating disk image"
++#hdiutil create -ov -srcfolder "$bundle_dir" -format UDZO -tgtimagekey zlib-level=9 "${APPBUNDLE}.dmg"



Home | Main Index | Thread Index | Old Index