aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-02-27 20:45:31 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-02-27 20:45:31 +0800
commitb70a782917e5ad76b504e098b6d17d234b86f12d (patch)
tree9babc9610cd87a96d9093802e57b6ba82859fbd4 /misc
parent345f5f41aee01dc1d56f2155872dc657d18ea808 (diff)
downloadfreebsd-ports-gnome-b70a782917e5ad76b504e098b6d17d234b86f12d.tar.gz
freebsd-ports-gnome-b70a782917e5ad76b504e098b6d17d234b86f12d.tar.zst
freebsd-ports-gnome-b70a782917e5ad76b504e098b6d17d234b86f12d.zip
- Add LICENSE
- Simplify extract - Fix install - Regenerate patches
Diffstat (limited to 'misc')
-rw-r--r--misc/amfm/Makefile13
-rw-r--r--misc/amfm/files/patch-Makefile4
-rw-r--r--misc/amfm/files/patch-amfm.c6
3 files changed, 11 insertions, 12 deletions
diff --git a/misc/amfm/Makefile b/misc/amfm/Makefile
index 1f61c4e8ca42..624e4809b350 100644
--- a/misc/amfm/Makefile
+++ b/misc/amfm/Makefile
@@ -12,16 +12,15 @@ EXTRACT_SUFX= .c
MAINTAINER= ports@FreeBSD.org
COMMENT= THANKO USB AM/FM Radio controller
-LIB_DEPENDS= libhid.so:devel/libhid
+LICENSE= NONE
-NO_WRKSUBDIR= yes
+LIB_DEPENDS= libhid.so:devel/libhid
-EXTRACT_CMD= ${CP}
-EXTRACT_BEFORE_ARGS= -p
-EXTRACT_AFTER_ARGS= ${WRKSRC}
+do-extract:
+ @${MKDIR} ${WRKSRC}
+ @${CP} ${DISTDIR}/${DISTFILES} ${WRKSRC}/
do-install:
- @${INSTALL} ${WRKSRC}/amfm ${STAGEDIR}${PREFIX}/bin/amfm
- @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/amfm
+ ${INSTALL_PROGRAM} ${WRKSRC}/amfm ${STAGEDIR}${PREFIX}/bin/amfm
.include <bsd.port.mk>
diff --git a/misc/amfm/files/patch-Makefile b/misc/amfm/files/patch-Makefile
index a0ab3151daf8..2fe060af7387 100644
--- a/misc/amfm/files/patch-Makefile
+++ b/misc/amfm/files/patch-Makefile
@@ -1,5 +1,5 @@
---- ./Makefile.orig 2009-06-28 14:24:15.000000000 +0900
-+++ ./Makefile 2009-06-28 14:26:05.000000000 +0900
+--- Makefile.orig 2017-02-27 12:28:56 UTC
++++ Makefile
@@ -0,0 +1,8 @@
+CFLAGS=-I${PREFIX}/include -L${PREFIX}/lib -lhid
+TARGET=amfm
diff --git a/misc/amfm/files/patch-amfm.c b/misc/amfm/files/patch-amfm.c
index 75483ad5bd8f..5a771fd4d0d8 100644
--- a/misc/amfm/files/patch-amfm.c
+++ b/misc/amfm/files/patch-amfm.c
@@ -1,5 +1,5 @@
---- ./amfm.c.orig 2009-06-28 13:47:21.000000000 +0900
-+++ ./amfm.c 2009-06-28 14:24:15.000000000 +0900
+--- amfm.c.orig 2017-02-27 12:28:56 UTC
++++ amfm.c
@@ -12,6 +12,7 @@
#include <stdio.h>
@@ -8,7 +8,7 @@
#include <unistd.h>
#include <hid.h>
-@@ -28,7 +29,7 @@
+@@ -28,7 +29,7 @@ int main(int argc, const char** argv) {
HIDInterface* hid;
HIDInterfaceMatcher matcher = { RADIO_VENDID, RADIO_DEVID, NULL, NULL, 0 };