aboutsummaryrefslogtreecommitdiffstats
path: root/comms/dump1090/Makefile
blob: 13821e8d4b58bbdd522e1219a1ce61434083c1cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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

LICENSE=    BSD3CLAUSE

USE_GITHUB= yes
GH_ACCOUNT= antirez
GH_TAGNAME= 4c53e25

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>