aboutsummaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authortcberner <tcberner@FreeBSD.org>2016-11-19 19:53:23 +0800
committertcberner <tcberner@FreeBSD.org>2016-11-19 19:53:23 +0800
commit357537ba116027cd559b2ee21aee6b45aa49c47c (patch)
treeb1acb8ba46802b4ec8cc1e5c1871c623fe20bc1e /comms
parent11970d4ccad935f35b8fa7c3a5d705bc9d63f5bc (diff)
downloadfreebsd-ports-gnome-357537ba116027cd559b2ee21aee6b45aa49c47c.tar.gz
freebsd-ports-gnome-357537ba116027cd559b2ee21aee6b45aa49c47c.tar.zst
freebsd-ports-gnome-357537ba116027cd559b2ee21aee6b45aa49c47c.zip
Simplify Makefile of comms/jsdr
Instead of doing a manual do-configure / do-build / do-install targets, copy a small 'jsdr.pro' file to WRKSRC and then rely on USES=qmake to do the rest. The version-suffix of the two binaries spectrum-viewer and fmreceiver was dropped in the process (why was it there?) -- and therefore the PORTREVISION is bumped. PR: 214642 Approved by: rakuco (mentor)
Diffstat (limited to 'comms')
-rw-r--r--comms/jsdr/Makefile37
-rw-r--r--comms/jsdr/files/patch-jsdr.pro11
-rw-r--r--comms/jsdr/files/patch-make-x64_fmreceiver_fmreceiver.pro6
-rw-r--r--comms/jsdr/files/patch-make-x64_mini-receiver_mini-receiver.pro6
-rw-r--r--comms/jsdr/files/patch-make-x64_spectrum-viewer_spectrum-viewer.pro6
-rw-r--r--comms/jsdr/files/patch-make-x64_swreceiver_swreceiver.pro6
6 files changed, 31 insertions, 41 deletions
diff --git a/comms/jsdr/Makefile b/comms/jsdr/Makefile
index c2285e1d06d2..4ec6136db6f0 100644
--- a/comms/jsdr/Makefile
+++ b/comms/jsdr/Makefile
@@ -3,7 +3,7 @@
PORTNAME= jsdr
PORTVERSION= 4.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= comms audio hamradio
MASTER_SITES= http://www.sdr-j.tk/ \
LOCAL/nox/
@@ -19,44 +19,15 @@ LIB_DEPENDS+= libqwt.so:x11-toolkits/qwt5 \
libsndfile.so:audio/libsndfile \
libfftw3.so:math/fftw3
-USES= tar:tgz
+USES= qmake tar:tgz
USE_QT4= gui qt3support qmake_build moc_build rcc_build uic_build
PORTDOCS= *
-PLIST_FILES+= bin/swreceiver bin/spectrum-viewer-${PORTVERSION} \
- bin/mini-receiver bin/fmreceiver-${PORTVERSION}
+PLIST_FILES+= bin/swreceiver bin/spectrum-viewer \
+ bin/mini-receiver bin/fmreceiver
OPTIONS_DEFINE= DOCS
-do-configure:
- cd ${WRKSRC}/make-x64/swreceiver && ${SETENV} ${MAKE_ENV} \
- ${QMAKE} ${QMAKE_ARGS}
- cd ${WRKSRC}/make-x64/fmreceiver && ${SETENV} ${MAKE_ENV} \
- ${QMAKE} ${QMAKE_ARGS}
- cd ${WRKSRC}/make-x64/spectrum-viewer && ${SETENV} ${MAKE_ENV} \
- ${QMAKE} ${QMAKE_ARGS}
- cd ${WRKSRC}/make-x64/mini-receiver && ${SETENV} ${MAKE_ENV} \
- ${QMAKE} ${QMAKE_ARGS}
-
-do-build:
- cd ${WRKSRC}/make-x64/swreceiver && ${SETENV} ${MAKE_ENV} \
- ${MAKE} ${_MAKE_JOBS}
- cd ${WRKSRC}/make-x64/fmreceiver && ${SETENV} ${MAKE_ENV} \
- ${MAKE} ${_MAKE_JOBS}
- cd ${WRKSRC}/make-x64/spectrum-viewer && ${SETENV} ${MAKE_ENV} \
- ${MAKE} ${_MAKE_JOBS}
- cd ${WRKSRC}/make-x64/mini-receiver && ${SETENV} ${MAKE_ENV} \
- ${MAKE} ${_MAKE_JOBS}
-
-do-install:
- ${INSTALL} ${WRKSRC}/make-x64/swreceiver/swreceiver \
- ${WRKSRC}/make-x64/mini-receiver/mini-receiver \
- ${STAGEDIR}${PREFIX}/bin
- ${INSTALL} ${WRKSRC}/make-x64/spectrum-viewer/spectrum-viewer \
- ${STAGEDIR}${PREFIX}/bin/spectrum-viewer-${PORTVERSION}
- ${INSTALL} ${WRKSRC}/make-x64/fmreceiver/fmreceiver \
- ${STAGEDIR}${PREFIX}/bin/fmreceiver-${PORTVERSION}
-
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
diff --git a/comms/jsdr/files/patch-jsdr.pro b/comms/jsdr/files/patch-jsdr.pro
new file mode 100644
index 000000000000..3387a40cf2fa
--- /dev/null
+++ b/comms/jsdr/files/patch-jsdr.pro
@@ -0,0 +1,11 @@
+--- jsdr.pro.orig 2016-11-18 22:17:37 UTC
++++ jsdr.pro
+@@ -0,0 +1,8 @@
++TEMPLATE = subdirs
++
++SUBDIRS = make-x64/swreceiver \
++ make-x64/fmreceiver \
++ make-x64/spectrum-viewer \
++ make-x64/mini-receiver
++
++CONFIG += ordered
diff --git a/comms/jsdr/files/patch-make-x64_fmreceiver_fmreceiver.pro b/comms/jsdr/files/patch-make-x64_fmreceiver_fmreceiver.pro
index afe489446380..f72538a64469 100644
--- a/comms/jsdr/files/patch-make-x64_fmreceiver_fmreceiver.pro
+++ b/comms/jsdr/files/patch-make-x64_fmreceiver_fmreceiver.pro
@@ -1,6 +1,6 @@
---- make-x64/fmreceiver/fmreceiver.pro.orig
+--- make-x64/fmreceiver/fmreceiver.pro.orig 2012-09-16 16:23:45 UTC
+++ make-x64/fmreceiver/fmreceiver.pro
-@@ -137,9 +137,16 @@ LIBS += -lstdc++
+@@ -137,9 +137,18 @@ LIBS += -lstdc++
#}
#for fedora use the second set
@@ -17,6 +17,8 @@
+ INCLUDEPATH += ${LOCALBASE}/include
+ QMAKE_LIBDIR += ${LOCALBASE}/lib
+ LIBS+= -lqwt -lusb -lrt -lportaudio -lsndfile -lsamplerate -lfftw3
++ target.path = $$INSTALL_ROOT/$$PREFIX/bin
++ INSTALLS += target
}
diff --git a/comms/jsdr/files/patch-make-x64_mini-receiver_mini-receiver.pro b/comms/jsdr/files/patch-make-x64_mini-receiver_mini-receiver.pro
index db0bb8498dd2..e900291ffb8b 100644
--- a/comms/jsdr/files/patch-make-x64_mini-receiver_mini-receiver.pro
+++ b/comms/jsdr/files/patch-make-x64_mini-receiver_mini-receiver.pro
@@ -1,6 +1,6 @@
---- make-x64/mini-receiver/mini-receiver.pro.orig
+--- make-x64/mini-receiver/mini-receiver.pro.orig 2012-10-02 08:15:01 UTC
+++ make-x64/mini-receiver/mini-receiver.pro
-@@ -108,9 +108,16 @@ LIBS += -lstdc++
+@@ -108,9 +108,18 @@ LIBS += -lstdc++
#}
#for fedora use the second set
@@ -17,6 +17,8 @@
+ INCLUDEPATH += ${LOCALBASE}/include
+ QMAKE_LIBDIR += ${LOCALBASE}/lib
+ LIBS+= -lqwt -lusb -lrt -lportaudio -lsndfile -lsamplerate -lfftw3
++ target.path = $$INSTALL_ROOT/$$PREFIX/bin
++ INSTALLS += target
}
diff --git a/comms/jsdr/files/patch-make-x64_spectrum-viewer_spectrum-viewer.pro b/comms/jsdr/files/patch-make-x64_spectrum-viewer_spectrum-viewer.pro
index bdff81d0289e..407f60b3d8b6 100644
--- a/comms/jsdr/files/patch-make-x64_spectrum-viewer_spectrum-viewer.pro
+++ b/comms/jsdr/files/patch-make-x64_spectrum-viewer_spectrum-viewer.pro
@@ -1,6 +1,6 @@
---- make-x64/spectrum-viewer/spectrum-viewer.pro.orig
+--- make-x64/spectrum-viewer/spectrum-viewer.pro.orig 2012-10-02 08:19:58 UTC
+++ make-x64/spectrum-viewer/spectrum-viewer.pro
-@@ -83,10 +83,16 @@ LIBS += -lsamplerate
+@@ -83,10 +83,18 @@ LIBS += -lsamplerate
#}
#for fedora use the second set
@@ -18,6 +18,8 @@
+unix { INCLUDEPATH += ${LOCALBASE}/include/qwt
+ INCLUDEPATH += ${LOCALBASE}/include
+ LIBS+= -lqwt -lusb -lrt -lfftw3 -lsamplerate
++ target.path = $$INSTALL_ROOT/$$PREFIX/bin
++ INSTALLS += target
}
diff --git a/comms/jsdr/files/patch-make-x64_swreceiver_swreceiver.pro b/comms/jsdr/files/patch-make-x64_swreceiver_swreceiver.pro
index 6647b07315b3..730260c1b208 100644
--- a/comms/jsdr/files/patch-make-x64_swreceiver_swreceiver.pro
+++ b/comms/jsdr/files/patch-make-x64_swreceiver_swreceiver.pro
@@ -1,6 +1,6 @@
---- make-x64/swreceiver/swreceiver.pro.orig
+--- make-x64/swreceiver/swreceiver.pro.orig 2012-09-16 16:12:33 UTC
+++ make-x64/swreceiver/swreceiver.pro
-@@ -180,13 +180,19 @@ LIBS += -lwinmm
+@@ -180,13 +180,21 @@ LIBS += -lwinmm
#}
#for Fedora use the second set
@@ -26,5 +26,7 @@
+ INCLUDEPATH += ${LOCALBASE}/include
+ QMAKE_LIBDIR += ${LOCALBASE}/lib
+ LIBS += -lqwt -lrt -lsndfile -lsamplerate -lportaudio -lusb -lfftw3
++ target.path = $$INSTALL_ROOT/$$PREFIX/bin
++ INSTALLS += target
+}