pkgsrc-Changes archive

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

CVS commit: pkgsrc



Module Name:    pkgsrc
Committed By:   dbj
Date:           Sun Nov 29 23:14:21 UTC 2020

Modified Files:
        pkgsrc/doc: CHANGES-2020 TODO
        pkgsrc/ham/freedv: Makefile distinfo
        pkgsrc/ham/freedv/patches: patch-src_CMakeLists.txt
Added Files:
        pkgsrc/ham/freedv: PLIST.Darwin
        pkgsrc/ham/freedv/patches: patch-cmake_FindPortaudio.cmake
Removed Files:
        pkgsrc/ham/freedv/patches: patch-src_sox__biquad.c

Log Message:
ham/freedv: update to 1.4.2


To generate a diff of this commit:
cvs rdiff -u -r1.6482 -r1.6483 pkgsrc/doc/CHANGES-2020
cvs rdiff -u -r1.20237 -r1.20238 pkgsrc/doc/TODO
cvs rdiff -u -r1.22 -r1.23 pkgsrc/ham/freedv/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/ham/freedv/PLIST.Darwin
cvs rdiff -u -r1.4 -r1.5 pkgsrc/ham/freedv/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/ham/freedv/patches/patch-cmake_FindPortaudio.cmake
cvs rdiff -u -r1.1 -r1.2 pkgsrc/ham/freedv/patches/patch-src_CMakeLists.txt
cvs rdiff -u -r1.1 -r0 pkgsrc/ham/freedv/patches/patch-src_sox__biquad.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/doc/CHANGES-2020
diff -u pkgsrc/doc/CHANGES-2020:1.6482 pkgsrc/doc/CHANGES-2020:1.6483
--- pkgsrc/doc/CHANGES-2020:1.6482      Sun Nov 29 23:12:43 2020
+++ pkgsrc/doc/CHANGES-2020     Sun Nov 29 23:14:20 2020
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES-2020,v 1.6482 2020/11/29 23:12:43 dbj Exp $
+$NetBSD: CHANGES-2020,v 1.6483 2020/11/29 23:14:20 dbj Exp $
 
 Changes to the packages collection and infrastructure in 2020:
 
@@ -9454,3 +9454,4 @@ Changes to the packages collection and i
        Updated sysutils/ddrescue to 1.25 [dbj 2020-11-29]
        Updated ham/codec2 to 0.9.2 [dbj 2020-11-29]
        Added ham/lpcnetfreedv-0.2 [dbj 2020-11-29]
+       Updated ham/freedv to 1.4.2 [dbj 2020-11-29]

Index: pkgsrc/doc/TODO
diff -u pkgsrc/doc/TODO:1.20237 pkgsrc/doc/TODO:1.20238
--- pkgsrc/doc/TODO:1.20237     Sun Nov 29 21:58:03 2020
+++ pkgsrc/doc/TODO     Sun Nov 29 23:14:20 2020
@@ -1,4 +1,4 @@
-$NetBSD: TODO,v 1.20237 2020/11/29 21:58:03 dbj Exp $
+$NetBSD: TODO,v 1.20238 2020/11/29 23:14:20 dbj Exp $
 
 Suggested new packages
 ======================
@@ -561,7 +561,6 @@ For possible Perl packages updates, see 
        o flashplayer-0.4.13
        o flow-tools-0.411
        o fortunes-calvin-0.3
-       o freedv-1.2.2
        o freenet-0.7
        o freesci-0.6.4
        o freeswitch-1.2.3

Index: pkgsrc/ham/freedv/Makefile
diff -u pkgsrc/ham/freedv/Makefile:1.22 pkgsrc/ham/freedv/Makefile:1.23
--- pkgsrc/ham/freedv/Makefile:1.22     Tue Aug 18 17:58:03 2020
+++ pkgsrc/ham/freedv/Makefile  Sun Nov 29 23:14:20 2020
@@ -1,15 +1,14 @@
-# $NetBSD: Makefile,v 1.22 2020/08/18 17:58:03 leot Exp $
+# $NetBSD: Makefile,v 1.23 2020/11/29 23:14:20 dbj Exp $
 
-DISTNAME=      freedv-1.1
-PKGREVISION=   13
+DISTNAME=      freedv-1.4.2
 CATEGORIES=    ham
-MASTER_SITES=  http://files.freedv.org/freedv/
-EXTRACT_SUFX=  .tar.xz
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=drowe67/}
+GITHUB_PROJECT=        freedv-gui
+GITHUB_TAG=    bb9558cc496b7b253fb54bb28486b0bcd7516ae5
 
 MAINTAINER=    dbj%NetBSD.org@localhost
 HOMEPAGE=      https://freedv.org/
 COMMENT=       FreeDV: HF Digital Voice for Radio Amateurs
-
 LICENSE=       gnu-lgpl-v2.1
 
 USE_TOOLS+=    pkg-config
@@ -18,23 +17,39 @@ USE_LANGUAGES=      c c++
 USE_CMAKE=     yes
 CONFIGURE_DIRS=        build
 CMAKE_ARG_PATH=        ..
-CMAKE_ARGS+=   -DUSE_STATIC_CODEC2=FALSE
-CMAKE_ARGS+=   -DUSE_STATIC_SPEEXDSP=FALSE
+CMAKE_ARGS+=   -DCMAKE_BUILD_TYPE=Release
 
 .include "../../mk/bsd.prefs.mk"
 
 PLIST_VARS+=   icons
 .if ${OPSYS} != "Darwin"
 PLIST.icons=   yes
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.else
+post-build:
+       cd ${WRKSRC}/build/src && \
+               ver="$$(sed -n -e 's/^\#define FREEDV_VERSION "\(.*\)"$$/\1/p' version.h)" && \
+               /usr/libexec/PlistBuddy \
+                       -c 'Set CFBundleShortVersionString "'"$${ver}"'"' \
+                       -c 'Set CFBundleExecutable FreeDV' \
+                       FreeDV.app/Contents/info.plist
+INSTALLATION_DIRS+=    Applications
+USE_TOOLS+=    pax
+post-install:
+       cd ${WRKSRC}/build/src && \
+               pax -rw -pp -pm FreeDV.app ${DESTDIR}${PREFIX}/Applications
 .endif
 pre-configure:
        ${MKDIR} ${WRKSRC}/build
 
 .include "../../ham/codec2/buildlink3.mk"
+.include "../../ham/lpcnetfreedv/buildlink3.mk"
 .include "../../ham/hamlib/buildlink3.mk"
-.include "../../audio/sox/buildlink3.mk"
+# freedv 1.4.2 seems to only use included static sox
+#.include "../../audio/sox/buildlink3.mk"
 .include "../../audio/speexdsp/buildlink3.mk"
 .include "../../audio/portaudio/buildlink3.mk"
 .include "../../audio/libsamplerate/buildlink3.mk"
+.include "../../audio/libsndfile/buildlink3.mk"
 .include "../../x11/wxGTK30/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/ham/freedv/distinfo
diff -u pkgsrc/ham/freedv/distinfo:1.4 pkgsrc/ham/freedv/distinfo:1.5
--- pkgsrc/ham/freedv/distinfo:1.4      Tue Jan 19 04:03:21 2016
+++ pkgsrc/ham/freedv/distinfo  Sun Nov 29 23:14:20 2020
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.4 2016/01/19 04:03:21 dbj Exp $
+$NetBSD: distinfo,v 1.5 2020/11/29 23:14:20 dbj Exp $
 
-SHA1 (freedv-1.1.tar.xz) = ec98a60e04c4eafb112793028468345d9f8aed55
-RMD160 (freedv-1.1.tar.xz) = c2be5877a7a8865581aff8badb1bb6441f8fdc0b
-SHA512 (freedv-1.1.tar.xz) = bd149f74ceae9c63b23c37d2e6d876238b9c1759d8bd1213675d3d0d2f817863e952129306ca37da9f41297b17a9f74d57cb807689ef051b3d94a8f8b52b5727
-Size (freedv-1.1.tar.xz) = 424420 bytes
-SHA1 (patch-src_CMakeLists.txt) = 6dc34dbc89394c92afbb435d8b06bd76603cc5d2
-SHA1 (patch-src_sox__biquad.c) = b59975d6590cddacd3978759b254ce54894c1a7b
+SHA1 (freedv-1.4.2-bb9558cc496b7b253fb54bb28486b0bcd7516ae5.tar.gz) = d3248a3b32b6772bc6c072d2f01bffaae6699dd8
+RMD160 (freedv-1.4.2-bb9558cc496b7b253fb54bb28486b0bcd7516ae5.tar.gz) = 311c0e1022e28fd24361c2ef6f9276f68b5493c1
+SHA512 (freedv-1.4.2-bb9558cc496b7b253fb54bb28486b0bcd7516ae5.tar.gz) = 
fc7589606a208938129ad622966fa108e4c1ee84a86273a1b33705331282e811f7891bbc47528e475742a9b78f4dbc78cc1d84c13e1784b7923de9babf60171d
+Size (freedv-1.4.2-bb9558cc496b7b253fb54bb28486b0bcd7516ae5.tar.gz) = 6177996 bytes
+SHA1 (patch-cmake_FindPortaudio.cmake) = 1105012bc3287bd5044250ad6f1c4609cbf7c217
+SHA1 (patch-src_CMakeLists.txt) = 05636fb3c3f836fb8287b16147f5e99a745fb265

Index: pkgsrc/ham/freedv/patches/patch-src_CMakeLists.txt
diff -u pkgsrc/ham/freedv/patches/patch-src_CMakeLists.txt:1.1 pkgsrc/ham/freedv/patches/patch-src_CMakeLists.txt:1.2
--- pkgsrc/ham/freedv/patches/patch-src_CMakeLists.txt:1.1      Tue Jan 19 04:03:21 2016
+++ pkgsrc/ham/freedv/patches/patch-src_CMakeLists.txt  Sun Nov 29 23:14:21 2020
@@ -1,30 +1,29 @@
-$NetBSD: patch-src_CMakeLists.txt,v 1.1 2016/01/19 04:03:21 dbj Exp $
+$NetBSD: patch-src_CMakeLists.txt,v 1.2 2020/11/29 23:14:21 dbj Exp $
 
-Disable building App bundle on MacOS.  This isn't very useful
-unless we have a native version wxWidgets, which we don't at the
-moment.
+Don't use dylibbundler to package up the MacOS app.  We don't
+currently have this tool in tree, although that's fixable.
+(For example: https://github.com/auriamg/macdylibbundler)
 
---- src/CMakeLists.txt.orig    2015-08-30 10:27:14.000000000 +0000
+However, we do build a non-bundled MacOS application similar to how
+Emacs.app is built in pkgsrc.
+
+Also, don't make the disk image.
+
+--- src/CMakeLists.txt.orig    2020-07-18 23:16:05.000000000 +0000
 +++ src/CMakeLists.txt
-@@ -43,21 +43,3 @@ endif(FREEDV_STATIC_DEPS)
- install(TARGETS freedv
-     RUNTIME DESTINATION bin)
- 
--# Custom commands to build OSX images.
--if(APPLE)
--    add_custom_command(
--        TARGET freedv
--        POST_BUILD
--        COMMAND mkdir ARGS -p FreeDV.app/Contents/MacOS
--        COMMAND mkdir ARGS -p FreeDV.app/Contents/Resources/English.lproj
--        COMMAND cp ARGS ${CMAKE_CURRENT_SOURCE_DIR}/info.plist FreeDV.app/Contents
--        COMMAND cp ARGS ${CMAKE_CURRENT_SOURCE_DIR}/freedv.icns FreeDV.app/Contents/Resources
--        COMMAND echo ARGS -n "APPL????" > FreeDV.app/Contents/PkgInfo
--        COMMAND cp ARGS freedv FreeDV.app/Contents/MacOS/FreeDV
--        COMMAND dylibbundler ARGS -od -b -x FreeDV.app/Contents/MacOS/FreeDV -d FreeDV.app/Contents/libs -p @executable_path/../libs/
+@@ -112,10 +112,10 @@ if(APPLE)
+         COMMAND cp ARGS ${CMAKE_CURRENT_SOURCE_DIR}/freedv.icns FreeDV.app/Contents/Resources
+         COMMAND echo ARGS -n "APPL????" > FreeDV.app/Contents/PkgInfo
+         COMMAND cp ARGS freedv FreeDV.app/Contents/MacOS/FreeDV
+-        COMMAND DYLD_LIBRARY_PATH=${CODEC2_BUILD_DIR}/src:${LPCNET_BUILD_DIR}/src:${DYLD_LIBRARY_PATH} ${CMAKE_SOURCE_DIR}/macdylibbundler/dylibbundler ARGS -od -b -x 
FreeDV.app/Contents/MacOS/FreeDV -d FreeDV.app/Contents/libs -p @loader_path/../libs/
 -        COMMAND mkdir dist_tmp
 -        COMMAND cp -r FreeDV.app dist_tmp
--        COMMAND hdiutil create -srcfolder dist_tmp/ -volname FreeDV -format UDZO ./FreeDV.dmg
+-        COMMAND hdiutil create -srcfolder dist_tmp/ -volname FreeDV -format UDZO -fs HFS+ ./FreeDV.dmg
 -        COMMAND rm -rf dist_tmp
--    )
--endif(APPLE)
++        #COMMAND DYLD_LIBRARY_PATH=${CODEC2_BUILD_DIR}/src:${LPCNET_BUILD_DIR}/src:${DYLD_LIBRARY_PATH} ${CMAKE_SOURCE_DIR}/macdylibbundler/dylibbundler ARGS -od -b -x 
FreeDV.app/Contents/MacOS/FreeDV -d FreeDV.app/Contents/libs -p @loader_path/../libs/
++        #COMMAND mkdir dist_tmp
++        #COMMAND cp -r FreeDV.app dist_tmp
++        #COMMAND hdiutil create -srcfolder dist_tmp/ -volname FreeDV -format UDZO -fs HFS+ ./FreeDV.dmg
++        #COMMAND rm -rf dist_tmp
+     )
+ endif(APPLE)

Added files:

Index: pkgsrc/ham/freedv/PLIST.Darwin
diff -u /dev/null pkgsrc/ham/freedv/PLIST.Darwin:1.1
--- /dev/null   Sun Nov 29 23:14:21 2020
+++ pkgsrc/ham/freedv/PLIST.Darwin      Sun Nov 29 23:14:20 2020
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST.Darwin,v 1.1 2020/11/29 23:14:20 dbj Exp $
+Applications/FreeDV.app/Contents/MacOS/FreeDV
+Applications/FreeDV.app/Contents/PkgInfo
+@pkgdir Applications/FreeDV.app/Contents/Resources/English.lproj
+Applications/FreeDV.app/Contents/Resources/freedv.icns
+Applications/FreeDV.app/Contents/info.plist

Index: pkgsrc/ham/freedv/patches/patch-cmake_FindPortaudio.cmake
diff -u /dev/null pkgsrc/ham/freedv/patches/patch-cmake_FindPortaudio.cmake:1.1
--- /dev/null   Sun Nov 29 23:14:21 2020
+++ pkgsrc/ham/freedv/patches/patch-cmake_FindPortaudio.cmake   Sun Nov 29 23:14:21 2020
@@ -0,0 +1,24 @@
+$NetBSD: patch-cmake_FindPortaudio.cmake,v 1.1 2020/11/29 23:14:21 dbj Exp $
+
+Remove special case Darwin search for portaudio that was
+seting the wrong path to the libraries
+
+--- cmake/FindPortaudio.cmake.orig     2019-11-11 21:00:04.000000000 +0000
++++ cmake/FindPortaudio.cmake
+@@ -27,13 +27,9 @@ else (PORTAUDIO_LIBRARIES AND PORTAUDIO_
+     set(PORTAUDIO_INCLUDE_DIRS
+       ${PORTAUDIO2_INCLUDE_DIRS}
+     )
+-    if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+-      set(PORTAUDIO_LIBRARIES "${PORTAUDIO2_LIBRARY_DIRS}/lib${PORTAUDIO2_LIBRARIES}.dylib")
+-    else (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+-      set(PORTAUDIO_LIBRARIES
+-        ${PORTAUDIO2_LIBRARIES}
+-      )
+-    endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
++    set(PORTAUDIO_LIBRARIES
++      ${PORTAUDIO2_LIBRARIES}
++    )
+     set(PORTAUDIO_VERSION
+       19
+     )



Home | Main Index | Thread Index | Old Index