mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
- Add LICENSE
- Simplify extract - Fix install - Regenerate patches
This commit is contained in:
parent
c8bcc72772
commit
5e7a3f62f0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434928
@ -12,16 +12,15 @@ EXTRACT_SUFX= .c
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= THANKO USB AM/FM Radio controller
|
||||
|
||||
LICENSE= NONE
|
||||
|
||||
LIB_DEPENDS= libhid.so:devel/libhid
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
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>
|
||||
|
@ -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
|
||||
|
@ -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 };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user