bcallah 6ddd86ab7e Import comms/dump1090, a simple ADS-B Mode-S decoder for RTLSDR devices.
ok benoit@

Dump 1090 is an ADS-B Mode-S decoder specifically designed for RTLSDR
devices.

The main features are:
* Robust decoding of weak messages.
* Network support: TCP30003 stream (MSG5...), Raw packets, HTTP.
* Embedded HTTP server that displays the currently detected aircrafts
  on Google Maps.
* Single bit errors correction using the 24 bit CRC.
* Ability to decode DF11, DF17 messages.
* Ability to decode DF formats like DF0, DF4, DF5, DF16, DF20 and DF21
  where the checksum is xored with the ICAO address by brute forcing
  the checksum field using recently seen ICAO addresses.
* Decode raw IQ samples from file (using --ifile command line switch).
* Interactive command-line-interfae mode where aircrafts currently
  detected are shown as a list refreshing as more data arrives.
* CPR coordinates decoding and track calculation from velocity.
* TCP server streaming and receiving raw data to/from connected clients
  (using --net).
2020-07-27 16:45:31 +00:00

40 lines
943 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2020/07/27 16:45:31 bcallah Exp $
COMMENT = simple ADS-B Mode-S decoder for RTLSDR devices
DISTNAME = ${GH_PROJECT}-0.0.0.20200203
CATEGORIES = comms
# No releases...
GH_ACCOUNT = antirez
GH_PROJECT = dump1090
GH_COMMIT = de61bd564f1aa929bae414a70e421acd0b81789a
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# BSD
PERMIT_PACKAGE = Yes
WANTLIB += c m pthread rtlsdr usb-1.0
LIB_DEPENDS = comms/rtl-sdr
USE_GMAKE = Yes
MAKE_FLAGS = CC="${CC}"
NO_TEST = Yes
# Easier web page access in standalone mode
do-gen:
sed -i 's,gmap.html,${LOCALBASE}/share/dump1090/gmap.html,g' \
${WRKSRC}/dump1090.c
# No install routine
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dump1090 ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/dump1090/tools
${INSTALL_DATA} ${WRKSRC}/gmap.html ${PREFIX}/share/dump1090
${INSTALL_DATA} ${WRKSRC}/tools/debug.html \
${PREFIX}/share/dump1090/tools
.include <bsd.port.mk>