pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/ham/fldigi
Module Name: pkgsrc
Committed By: dbj
Date: Sun Dec 6 00:22:04 UTC 2020
Modified Files:
pkgsrc/ham/fldigi: Makefile distinfo
Added Files:
pkgsrc/ham/fldigi: PLIST.Darwin
pkgsrc/ham/fldigi/patches: patch-scripts_mkappbundle.sh
Log Message:
ham/fldigi: build app bundles for fldigi and flarq on Darwin
To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 pkgsrc/ham/fldigi/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/ham/fldigi/PLIST.Darwin
cvs rdiff -u -r1.66 -r1.67 pkgsrc/ham/fldigi/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/ham/fldigi/patches/patch-scripts_mkappbundle.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/ham/fldigi/Makefile
diff -u pkgsrc/ham/fldigi/Makefile:1.122 pkgsrc/ham/fldigi/Makefile:1.123
--- pkgsrc/ham/fldigi/Makefile:1.122 Sun Nov 29 22:07:22 2020
+++ pkgsrc/ham/fldigi/Makefile Sun Dec 6 00:22:04 2020
@@ -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 @@ CONFIGURE_ENV.NetBSD+= ac_cv_header_exec
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"
Index: pkgsrc/ham/fldigi/distinfo
diff -u pkgsrc/ham/fldigi/distinfo:1.66 pkgsrc/ham/fldigi/distinfo:1.67
--- pkgsrc/ham/fldigi/distinfo:1.66 Sat Feb 23 11:30:03 2019
+++ pkgsrc/ham/fldigi/distinfo Sun Dec 6 00:22:04 2020
@@ -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
Added files:
Index: pkgsrc/ham/fldigi/PLIST.Darwin
diff -u /dev/null pkgsrc/ham/fldigi/PLIST.Darwin:1.1
--- /dev/null Sun Dec 6 00:22:04 2020
+++ pkgsrc/ham/fldigi/PLIST.Darwin Sun Dec 6 00:22:04 2020
@@ -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
Index: pkgsrc/ham/fldigi/patches/patch-scripts_mkappbundle.sh
diff -u /dev/null pkgsrc/ham/fldigi/patches/patch-scripts_mkappbundle.sh:1.1
--- /dev/null Sun Dec 6 00:22:04 2020
+++ pkgsrc/ham/fldigi/patches/patch-scripts_mkappbundle.sh Sun Dec 6 00:22:04 2020
@@ -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