Changeset View
Changeset View
Standalone View
Standalone View
astro/gpsd/Makefile
# Created by: Anton Karpov <toxa@toxahost.ru> | # Created by: Anton Karpov <toxa@toxahost.ru> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= gpsd | PORTNAME= gpsd | ||||
PORTVERSION= 3.17 | PORTVERSION= 3.20 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= astro geography | CATEGORIES= astro geography | ||||
MASTER_SITES= SAVANNAH | MASTER_SITES= SAVANNAH | ||||
MAINTAINER= z7dr6ut7gs@snkmail.com | MAINTAINER= z7dr6ut7gs@snkmail.com | ||||
COMMENT= Daemon that monitors one or more GPSes attached to a host computer | COMMENT= Daemon that monitors one or more GPSes attached to a host computer | ||||
LICENSE= BSD3CLAUSE | LICENSE= BSD3CLAUSE | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
USES= cpe pathfix pkgconfig python:2.7 scons shebangfix | USES= cpe pathfix pkgconfig python:3.7 scons shebangfix | ||||
tcberner: ^ does it only work with python 3.7? | |||||
Done Inline ActionsUnfortunately for now, yes, since comms/py-serial and graphics/py-cairo are not flavored with py38 lbartoletti: Unfortunately for now, yes, since comms/py-serial and graphics/py-cairo are not flavored with… | |||||
CPE_VENDOR= gpsd_project | CPE_VENDOR= gpsd_project | ||||
USE_PYTHON= flavors | USE_PYTHON= flavors | ||||
USE_LDCONFIG= yes | |||||
USE_RC_SUBR= gpsd | USE_RC_SUBR= gpsd | ||||
SHEBANG_FILES= *.py gps/*.py gegps xgps gpscat xgpsspeed gpsprof \ | SHEBANG_FILES= *.py gps/*.py gegps xgps gpscat xgpsspeed gpsprof \ | ||||
gpsfake | gpsfake ubxtool zerk | ||||
MAKE_ARGS= prefix="${PREFIX}" mandir="man" pkgconfig="libdata/pkgconfig" \ | MAKE_ARGS= prefix="${PREFIX}" mandir="man" pkgconfig="libdata/pkgconfig" \ | ||||
manbuild=no target_python="${PYTHON_CMD}" qt=no | manbuild=no target_python="${PYTHON_CMD}" qt=no | ||||
MAKE_ENV= DESTDIR="${STAGEDIR}" | MAKE_ENV= DESTDIR="${STAGEDIR}" | ||||
PLIST_SUB= PYTHON_EGGINFO=gps-${PORTVERSION}.egg-info | PLIST_SUB= PYTHON_EGGINFO=gps-${PORTVERSION}.egg-info | ||||
OPTIONS_DEFINE= AIVDM ASHTECH CPPBIND DBUS EARTHMATE EVERMORE FURY FV18 GARMIN \ | OPTIONS_DEFINE= AIVDM ASHTECH CPPBIND DBUS EARTHMATE EVERMORE FURY FV18 GARMIN \ | ||||
GARMINTXT GEOSTAR GPSCLOCK IPV6 ITRAX MTK NAVCOM NCURSES \ | GARMINTXT GEOSTAR GPSCLOCK IPV6 ITRAX MTK NAVCOM NCURSES \ | ||||
NETFEED NMEA0183 NTP NTPSHM NTRIP OCEANSERVER ONCORE \ | NETFEED NMEA0183 NTP NTPSHM NTRIP OCEANSERVER ONCORE \ | ||||
PASSTHROUGH PPS PROFILING RECONFIGURE RTCM104V2 RTCM104V3 \ | PASSTHROUGH PPS PROFILING RECONFIGURE RTCM104V2 RTCM104V3 \ | ||||
SHMEXPORT SIRF SOCKEXPORT SUPERSTARII TIMING TNT TRIPMATE \ | SHMEXPORT SIRF SOCKEXPORT SUPERSTARII TIMING TNT TRIPMATE \ | ||||
TSIP UBLOX USB X11 | TSIP UBLOX USB X11 | ||||
OPTIONS_DEFAULT= AIVDM ASHTECH CPPBIND EARTHMATE EVERMORE FURY FV18 GARMIN \ | OPTIONS_DEFAULT= AIVDM ASHTECH CPPBIND EARTHMATE EVERMORE FURY FV18 GARMIN \ | ||||
GARMINTXT GEOSTAR GPSCLOCK ITRAX NAVCOM NCURSES NETFEED \ | GARMINTXT GEOSTAR GPSCLOCK ITRAX NAVCOM NCURSES NETFEED \ | ||||
NMEA0183 NTP NTPSHM NTRIP OCEANSERVER ONCORE PASSTHROUGH \ | NMEA0183 NTP NTPSHM NTRIP OCEANSERVER ONCORE PASSTHROUGH \ | ||||
RECONFIGURE RTCM104V2 RTCM104V3 SHMEXPORT SIRF SOCKEXPORT \ | RECONFIGURE RTCM104V2 RTCM104V3 SHMEXPORT SIRF SOCKEXPORT \ | ||||
SUPERSTARII TIMING TNT TRIPMATE TSIP UBLOX USB X11 | SUPERSTARII TIMING TNT TRIPMATE TSIP UBLOX USB X11 | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
AIVDM_DESC= Aivdm support | AIVDM_DESC= Aivdm support | ||||
ASHTECH_DESC= Ashtech support | ASHTECH_DESC= Ashtech support | ||||
CPPBIND_DESC= Build C++ bindings | CPPBIND_DESC= Build C++ bindings | ||||
EARTHMATE_DESC= DeLorme EarthMate Zodiac support | EARTHMATE_DESC= DeLorme EarthMate Zodiac support | ||||
EVERMORE_DESC= Evermore binary support | EVERMORE_DESC= Evermore binary support | ||||
FURY_DESC= Jackson Labs Fury and Firefly support | FURY_DESC= Jackson Labs Fury and Firefly support | ||||
▲ Show 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | |||||
TIMING_MAKE_ARGS_OFF= timing=no | TIMING_MAKE_ARGS_OFF= timing=no | ||||
# Client-side options | # Client-side options | ||||
NCURSES_MAKE_ARGS_OFF= ncurses=no | NCURSES_MAKE_ARGS_OFF= ncurses=no | ||||
NCURSES_USES= ncurses | NCURSES_USES= ncurses | ||||
RECONFIGURE_MAKE_ARGS_OFF= reconfigure=no | RECONFIGURE_MAKE_ARGS_OFF= reconfigure=no | ||||
CPPBIND_MAKE_ARGS_OFF= libgpsmm=no | CPPBIND_MAKE_ARGS_OFF= libgpsmm=no | ||||
X11_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>=0:graphics/py-cairo@${PY_FLAVOR} \ | X11_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>=0:graphics/py-cairo@${PY_FLAVOR} \ | ||||
${PYTHON_PKGNAMEPREFIX}gobject3>=0:devel/py-gobject3@${PY_FLAVOR} | ${PYTHON_PKGNAMEPREFIX}gobject3>=0:devel/py-gobject3@${PY_FLAVOR} \ | ||||
#X11_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>=0:graphics/py-cairo@${PY_FLAVOR} | ${PYTHON_PKGNAMEPREFIX}serial>=0:comms/py-serial@${PY_FLAVOR} | ||||
X11_USES= gnome | X11_USES= gnome | ||||
X11_USE= GNOME=gtk30 | X11_USE= GNOME=gtk30 | ||||
X11_MAKE_ARGS_OFF= xgps=no | |||||
# Build control | # Build control | ||||
PROFILING_MAKE_ARGS= profiling=yes | PROFILING_MAKE_ARGS= profiling=yes | ||||
# generates .py[co] files for installed modules | # generates .py[co] files for installed modules | ||||
# if that's not done, ${PYTHON_SITELIBDIR}/gps will be polluted | # if that's not done, ${PYTHON_SITELIBDIR}/gps will be polluted | ||||
# with these files when module is imported from root user | # with these files when module is imported from root user | ||||
post-install: | post-install: | ||||
(cd ${STAGEDIR}${PREFIX} && \ | (cd ${STAGEDIR}${PREFIX} && \ | ||||
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ | ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ | ||||
-d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} && \ | -d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} && \ | ||||
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ | ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ | ||||
-d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}) | -d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}) | ||||
${RM} -r ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/gps/__pycache__ | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
^ does it only work with python 3.7?