pkgsrc-WIP-changes archive

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

(ham/wsjtx) rename directory wsjt -> wsjtx



Module Name:	pkgsrc-wip
Committed By:	Makoto Fujiwara (mef) <makoto%ki.nu@localhost>
Pushed By:	mef
Date:		Fri Mar 26 21:47:55 2021 +0900
Changeset:	3e25751b3a9f1cd79d760b81a0af0243fa6ac768

Added Files:
	wsjtx/DESCR
	wsjtx/Makefile
	wsjtx/PLIST
	wsjtx/TODO
	wsjtx/distinfo
	wsjtx/patches/patch-hamlib.patch

Log Message:
(ham/wsjtx) rename directory wsjt -> wsjtx

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3e25751b3a9f1cd79d760b81a0af0243fa6ac768

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

diffstat:
 wsjtx/DESCR                      | 14 ++++++++++
 wsjtx/Makefile                   | 56 ++++++++++++++++++++++++++++++++++++++++
 wsjtx/PLIST                      |  4 +++
 wsjtx/TODO                       | 10 +++++++
 wsjtx/distinfo                   |  7 +++++
 wsjtx/patches/patch-hamlib.patch | 39 ++++++++++++++++++++++++++++
 6 files changed, 130 insertions(+)

diffs:
diff --git a/wsjtx/DESCR b/wsjtx/DESCR
new file mode 100644
index 0000000000..ecbbcef6b4
--- /dev/null
+++ b/wsjtx/DESCR
@@ -0,0 +1,14 @@
+Weak Signal Communication Software
+
+WSJT-X, WSJT, MAP65, and WSPR are open-source programs designed for
+weak-signal digital communication by amateur radio.  Normal usage
+requires a standard SSB transceiver and a personal computer with
+soundcard, or the equivalent.  SDR-style hardware including the
+SDR-IQ, Perseus, SoftRock, and FUNcube Dongle is supported by MAP65
+and WSPR.  SimJT is a utility program that generates simulated signals
+for test purposes.  All of the programs are available free of charge,
+licensed under the GNU General Public License.  Installation packages
+for WSJT-X are available for Windows, Linux, and OS X; WSJT and WSPR
+have Windows and Linux packages, and MAP65 and SimJT are Windows only.
+For further details about source code and operating systems, see the
+Program Development page.
diff --git a/wsjtx/Makefile b/wsjtx/Makefile
new file mode 100644
index 0000000000..64d7a85fdc
--- /dev/null
+++ b/wsjtx/Makefile
@@ -0,0 +1,56 @@
+# $NetBSD$
+
+DISTNAME=	wsjtx-2.3.0
+CATEGORIES=	ham
+MASTER_SITES=	https://physics.princeton.edu/pulsar/k1jt/
+EXTRACT_SUFX=	.tgz
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://physics.princeton.edu/pulsar/k1jt/
+COMMENT=	Well known in the amateur radio WSJT
+LICENSE=	gnu-gpl-v3
+
+USE_CMAKE=	yes
+USE_LANGUAGES+=	c c++ fortran
+USE_TOOLS+=	pkg-config gmake
+USE_LIBTOOL=	yes
+
+DEPENDS+=	qt5-qttranslations-[0-9]*:../../x11/qt5-qttranslations
+
+CMAKE_ARGS+=	-DNVTT_SHARED=ON
+CMAKE_ARGS+=	-D CMAKE_INSTALL_PREFIX=${DESTDIR}${PREFIX}
+CMAKE_ARGS+=	-DWSJT_SKIP_MANPAGES=ON
+CMAKE_ARGS+=	-DCMAKE_PREFIX_PATH=${PREFIX}/qt5
+CMAKE_ARGS+=	-DWSJT_GENERATE_DOCS=OFF
+CMAKE_ARGS+=	-DLDFLAGS='-L${PREFIX}/lib -lusb-1.0'
+CMAKE_ARGS+=	-DLDFLAGS=-Wl,-rpath-link=-L${PREFIX}/lib -lusb-1.0
+
+LDFLAGS+=	${COMPILER_RPATH_FLAG}=-L${PREFIX}/lib -lusb-1.0
+#DFLAGS+=	--rpath,-Wl=-lusb-1.0
+#MAKE_ENV+=	LIBUSB_FLAGS='-L${PREFIX}/lib -lusb-1.0'
+
+# debug only (checking log)
+MAKE_JOBS_SAFE=	no
+
+# hamlib-prefix/src/hamlib/configure.ac
+SUBST_CLASSES+=		hamlib
+SUBST_FILES.hamlib=	hamlib.patch
+SUBST_STAGE.hamlib=	pre-configure
+SUBST_MESSAGE.hamlib=	fix PREFIX insid patch
+SUBST_VARS.hamlib=	PREFIX
+
+
+.include "../../graphics/openexr/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../x11/qt5-qtbase/buildlink3.mk"
+.include "../../x11/qt5-qtserialport/buildlink3.mk"
+.include "../../x11/qt5-qtmultimedia/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+#include "../../devel/libusb1/buildlink3.mk"
+.include "../../mk/libusb.buildlink3.mk"
+BUILDLINK_API_DEPENDS.hamlib+=	hamlib>=4.1
+.include "../../ham/hamlib/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/wsjtx/PLIST b/wsjtx/PLIST
new file mode 100644
index 0000000000..92ba51a2d7
--- /dev/null
+++ b/wsjtx/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/usr/bin/make package"
+@comment TODO: 2. run "/usr/bin/make print-PLIST"
diff --git a/wsjtx/TODO b/wsjtx/TODO
new file mode 100644
index 0000000000..593f16f776
--- /dev/null
+++ b/wsjtx/TODO
@@ -0,0 +1,10 @@
+(latest problem) with MAKE_JOBS_SAFE= no
+
+
+Making all in tests
+libtool: link: gcc -Wall -g -O2 -fPIC -fdata-sections -ffunction-sections -Wl,--gc-sections -o rigctl rigctl-rigctl.o rigctl-rigctl_parse.o rigctl-dumpcaps.o rigctl-sprintflst.o  -ledit ../src/.libs/libhamlib.a -lm ../lib/.libs/libmisc.a -pthread
+ld: ../src/.libs/libhamlib.a(usb_port.o): in function `find_and_open_device':
+/tmp/WRKOBJDIR/wip/wsjt/work/wsjtx-2.3.0/hamlib-prefix/src/hamlib/src/usb_port.c:83: undefined reference to `libusb_get_device_list'
+ld: /tmp/WRKOBJDIR/wip/wsjt/work/wsjtx-2.3.0/hamlib-prefix/src/hamlib/src/usb_port.c:98: undefined reference to `libusb_get_device_descriptor'
+ld: /tmp/WRKOBJDIR/wip/wsjt/work/wsjtx-2.3.0/hamlib-prefix/src/hamlib/src/usb_port.c:110: undefined reference to `libusb_open'
+k
diff --git a/wsjtx/distinfo b/wsjtx/distinfo
new file mode 100644
index 0000000000..e4da1eae67
--- /dev/null
+++ b/wsjtx/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (wsjtx-2.3.0.tgz) = 2caae6d1b74d31cd7f6bc507dd15f8cfd17c2ffb
+RMD160 (wsjtx-2.3.0.tgz) = 9f5dc6c80551e4a70f90671b8d5be7b070e41916
+SHA512 (wsjtx-2.3.0.tgz) = 1b521a7c81d235b2f17b2a314528f5f9fc8b29de95a2f7f5471104866ff13d138f9913666bc00de71f34ed16e692f0f4b93c878cc3538d30a52852e4c179702c
+Size (wsjtx-2.3.0.tgz) = 17245200 bytes
+SHA1 (patch-hamlib.patch) = 7378a49824bc9a37a4868bf749cd583e559d34a6
diff --git a/wsjtx/patches/patch-hamlib.patch b/wsjtx/patches/patch-hamlib.patch
new file mode 100644
index 0000000000..c851d17581
--- /dev/null
+++ b/wsjtx/patches/patch-hamlib.patch
@@ -0,0 +1,39 @@
+$NetBSD$
+
+
+patch PREFIX inside patch
+
+--- /dev/null	2021-03-22 22:25:49.591851345 +0900
++++ /tmp/WRKOBJDIR/wip/wsjt/work/wsjtx-2.3.0/hamlib.patch	2021-03-22 23:15:53.147421908 +0900
+@@ -0,0 +1,31 @@
++--- hamlib-prefix/src/hamlib/hamlib.pc.in.orig	2021-02-01 21:35:36.000000000 +0900
+++++ hamlib/hamlib.pc.in	2021-03-21 21:07:31.473290128 +0900
++@@ -9,5 +9,5 @@ URL: @PACKAGE_URL@
++ Version: @PACKAGE_VERSION@
++ Requires.private: @LIBUSB@
++ Cflags: -I${includedir} @PTHREAD_CFLAGS@
++-Libs: -L${libdir} -lhamlib
+++Libs: -L${libdir} ${libdir}/libhamlib.a
++ Libs.private: @MATH_LIBS@ @DL_LIBS@ @NET_LIBS@ @PTHREAD_LIBS@
++--- hamlib-prefix/src/hamlib/configure.ac.orig	2021-02-01 21:35:36.000000000 +0900
+++++ hamlib/configure.ac	2021-03-21 21:03:16.858039431 +0900
++@@ -278,6 +278,11 @@ AS_CASE(["$host_os"],
++ 	AM_LDFLAGS="${AM_LDFLAGS} -L/usr/local/lib"
++ 	AC_SUBST([AM_LDFLAGS])],
++ 
+++    [netbsd*], [
+++	AM_CPPFLAGS="-I@PREFIX@/include ${AM_CPPFLAGS}"" 
+++	AM_LDFLAGS="-L@PREFIX@/lib -lusb-1.0 ${AMD_LDFLAGS}"
+++	AC_SUBST([AM_LDFLAGSX])],
+++
++     [darwin* | rhapsody*], [
++ 	# Tell the OS X linker to allocate enough space inside the
++ 	# libhamlib.X.dylib shared object for install_name_tool(1) to
++@@ -321,6 +326,7 @@ AC_ARG_WITH([libusb],
++ 
++ AC_MSG_RESULT([$cf_with_libusb])
++ 
+++LIBUSB="-L@PREFIX@/lib -lusb-1.0"
++ LIBUSB=""
++ AC_ARG_VAR([LIBUSB_CFLAGS], [C compiler flags for libusb, overriding configure defaults])
++ AC_ARG_VAR([LIBUSB_LIBS], [linker flags for libusb, overriding configure check (useful for specifying static libusb-1.0.a (see INSTALL))])


Home | Main Index | Thread Index | Old Index