pkgsrc/geography/gpsd/Makefile
gdt 34b068b8e1 geography/gpsd: Update to 3.19
pkgsrc changes:
  patches were applied upstream

3.19: 2019-07-01
  Rearrange rawdata_t.  Bump the API because gps_data_t changed.
  Report sequence-ID fields in type 7 and 13 AIS messages.
  Preliminary support for SiRFstar V
  Improve error modeling.
  Update pseudo NMEA to v3.0, with fractional time.
  Improve cycle detection, mostly for NMEA.
  Move epe from gps_data_t to be near its friends in gps_fix_t.
  Preliminary u-blox 9 support.
  Add qErr in gps_data_t to store PPS quantization error.
  Add Android (AOSP) support
  Improved multi gnss and multi signal support.
  NMEA 4.10 multi gnss multi signal support.
  The arguments to "ubxtool -p P" have been expanded and changed.
  New options, -g, -x, -z, added to ubxtool for u-blox 9 support.
2019-07-02 13:44:05 +00:00

82 lines
2.4 KiB
Makefile

# $NetBSD: Makefile,v 1.45 2019/07/02 13:44:05 gdt Exp $
DISTNAME= gpsd-3.19
CATEGORIES= geography
MASTER_SITES= http://download-mirror.savannah.gnu.org/releases/gpsd/
# will probably switch to https://gitlab.com/gpsd/gpsd/releases
MAINTAINER= gdt@NetBSD.org
HOMEPAGE= https://gpsd.io/
COMMENT= GPS information daemon
LICENSE= modified-bsd
PY_PATCHPLIST= yes
USE_TOOLS+= pkg-config gmake
USE_LIBTOOL= yes
USE_LANGUAGES= c99 c++
# \todo Separate upstream's build into configure and build.
NO_CONFIGURE= yes
# Note that gpsd is documented to use ncurses, not curses.
FAKE_NCURSES= yes
# gpsd uses syncok. Insist on an implementation that provides it.
USE_CURSES= syncok
# Documentation depends
BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
# \todo Decide if buildlink3 is more appropriate.
DEPENDS+= ${PYPKGPREFIX}-gobject3-[0-9]*:../../devel/py-gobject3
DEPENDS+= ${PYPKGPREFIX}-serial-[0-9]*:../../comms/py-serial
CFLAGS.SunOS= -DLOG_PERROR=0
# Configure phase arguments:
SCONS_ARGS+= leapfetch=no # Do not use the net at build time.
SCONS_ARGS+= target_python=${PYTHONBIN} # Use our python, not "python".
SUBST_CLASSES+= pyenv
SUBST_MESSAGE.pyenv= Fixing path in Python scripts
SUBST_STAGE.pyenv= pre-build # We don't configure :-(
SUBST_FILES.pyenv+= gegps
SUBST_FILES.pyenv+= gpscat
SUBST_FILES.pyenv+= gpsfake
SUBST_FILES.pyenv+= gpsprof
SUBST_FILES.pyenv+= ubxtool
SUBST_FILES.pyenv+= xgps
SUBST_FILES.pyenv+= xgpsspeed
SUBST_FILES.pyenv+= zerk
SUBST_FILES.pyenv+= test_misc.py
SUBST_SED.pyenv= -e 's,/usr/bin/env python.*$$,${PYTHONBIN},'
# \todo: Determine if CC/CXX are needed (e.g, when using other than gcc).
# CC=${CC:Q} CXX=${CXX:Q}
do-build:
cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${SCONSBIN} \
prefix=${PREFIX} mandir=${PREFIX}/${PKGMANDIR} \
${SCONS_ARGS} \
-j${MAKE_JOBS:U1}
do-install:
cd ${WRKSRC} && \
${SETENV} ${INSTALL_ENV} ${SCONSBIN} install
do-test:
cd ${WRKSRC} && \
${SETENV} ${INSTALL_ENV} ${SCONSBIN} check
# \todo Change to TOOLS or BUILD_DEPENDS after scons support is improved.
.include "../../devel/scons/buildlink3.mk"
.include "../../devel/libusb1/buildlink3.mk"
.include "../../devel/ncurses/buildlink3.mk"
.include "../../graphics/py-cairo/buildlink3.mk"
.include "../../lang/python/extension.mk"
# \todo Resolve mk/curses not invoking ncurses builtin processing.
#.include "../../mk/curses.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"