aboutsummaryrefslogtreecommitdiff
path: root/comms/dump1090/Makefile
diff options
context:
space:
mode:
authorSteven Kreuzer <skreuzer@FreeBSD.org>2015-03-05 02:32:08 +0000
committerSteven Kreuzer <skreuzer@FreeBSD.org>2015-03-05 02:32:08 +0000
commitba3ec984e48455c5b3877540105b18ea73c21d40 (patch)
treedc8c602b9e1448bee1e70b5fa170d8607eed0944 /comms/dump1090/Makefile
parentefa8f99738a2c5f16be2031122b256aa803f6300 (diff)
downloadports-ba3ec984e48455c5b3877540105b18ea73c21d40.tar.gz
ports-ba3ec984e48455c5b3877540105b18ea73c21d40.zip
Notes
Diffstat (limited to 'comms/dump1090/Makefile')
-rw-r--r--comms/dump1090/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/comms/dump1090/Makefile b/comms/dump1090/Makefile
new file mode 100644
index 000000000000..88b8123d6c7e
--- /dev/null
+++ b/comms/dump1090/Makefile
@@ -0,0 +1,36 @@
+# Created by: Steven Kreuzer <skreuzer@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= dump1090
+PORTVERSION= 20150225
+CATEGORIES= comms
+
+MAINTAINER= skreuzer@FreeBSD.org
+COMMENT= Simple Mode S decoder for RTLSDR devices
+
+USE_GITHUB= yes
+GH_ACCOUNT= antirez
+GH_COMMIT= 4c53e25
+GH_TAGNAME= 4c53e251439f42135fc80fe000174f7accdb048c
+
+LICENSE= BSD3CLAUSE
+
+LIB_DEPENDS= librtlsdr.so:${PORTSDIR}/comms/rtl-sdr
+
+USES= gmake
+
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib -lrtlsdr -lusb -lpthread -lm
+
+PLIST_FILES= bin/dump1090 \
+ ${DATADIR}/gmap.html
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|gmap.html|${DATADIR}/gmap.html|" ${WRKSRC}/dump1090.c
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/gmap.html ${STAGEDIR}${DATADIR}
+
+.include <bsd.port.mk>