2011-09-16 06:31:20 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.44 2011/09/16 10:31:23 espie Exp $
|
2005-09-04 20:34:59 -04:00
|
|
|
|
2007-09-15 19:54:16 -04:00
|
|
|
COMMENT-main= service daemon that monitors one or more GPSes
|
2010-11-25 03:55:24 -05:00
|
|
|
COMMENT-x11= GUI test apps using gpsd
|
2007-09-15 19:54:16 -04:00
|
|
|
COMMENT-php= web-based gpsd monitor in php
|
2005-09-04 20:34:59 -04:00
|
|
|
|
2010-11-25 03:55:24 -05:00
|
|
|
VERSION= 2.95
|
2005-09-04 20:34:59 -04:00
|
|
|
DISTNAME= gpsd-${VERSION}
|
2010-09-01 02:20:56 -04:00
|
|
|
PKGNAME-main= gpsd-${VERSION}
|
2010-11-25 03:55:24 -05:00
|
|
|
PKGNAME-x11= gpsd-x11-${VERSION}
|
2007-02-08 18:03:38 -05:00
|
|
|
PKGNAME-php= gpsd-php-${VERSION}
|
2010-11-25 03:55:24 -05:00
|
|
|
SHARED_LIBS= gps 19.0 \
|
|
|
|
gpsd 0.0
|
2006-11-02 02:03:29 -05:00
|
|
|
CATEGORIES= misc geo
|
2005-09-04 20:34:59 -04:00
|
|
|
|
2011-09-16 06:31:20 -04:00
|
|
|
REVISION-main= 1
|
2011-07-22 06:20:10 -04:00
|
|
|
REVISION-php= 1
|
2011-06-08 13:31:05 -04:00
|
|
|
|
2005-09-04 20:34:59 -04:00
|
|
|
HOMEPAGE= http://gpsd.berlios.de/
|
|
|
|
|
2006-10-27 19:47:23 -04:00
|
|
|
MAINTAINER= Chris Kuethe <ckuethe@openbsd.org>
|
2005-09-04 20:34:59 -04:00
|
|
|
|
2006-11-23 02:52:15 -05:00
|
|
|
# BSD
|
2005-09-04 20:34:59 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2006-08-01 14:38:22 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_BERLIOS:=gpsd/}
|
2005-09-04 20:34:59 -04:00
|
|
|
|
2011-07-08 17:02:33 -04:00
|
|
|
MODULES += lang/python lang/php
|
2005-09-04 20:34:59 -04:00
|
|
|
USE_LIBTOOL= yes
|
2010-11-19 02:23:05 -05:00
|
|
|
USE_GROFF = Yes
|
2005-09-04 20:34:59 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2008-01-04 13:57:07 -05:00
|
|
|
CONFIGURE_ARGS+= --disable-ntpshm \
|
|
|
|
--enable-gpsd-user=_gpsd \
|
2010-11-25 03:55:24 -05:00
|
|
|
--enable-tnt \
|
|
|
|
--enable-oceanserver
|
2005-09-04 20:34:59 -04:00
|
|
|
|
2010-11-25 03:55:24 -05:00
|
|
|
PSEUDO_FLAVORS = no_x11
|
2005-09-04 20:34:59 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2007-02-08 18:03:38 -05:00
|
|
|
MULTI_PACKAGES= -main -php
|
2006-11-23 02:52:15 -05:00
|
|
|
|
2010-11-19 02:23:05 -05:00
|
|
|
BUILD_DEPENDS= textproc/libxslt \
|
|
|
|
textproc/docbook \
|
|
|
|
textproc/docbook-xsl
|
2007-02-08 18:03:38 -05:00
|
|
|
|
2011-07-08 17:02:33 -04:00
|
|
|
RUN_DEPENDS-main= ${MODPY_RUN_DEPENDS}
|
|
|
|
|
2010-11-25 03:55:24 -05:00
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
2007-02-08 18:03:38 -05:00
|
|
|
CONFIGURE_ARGS+= --without-x
|
2010-11-25 03:55:24 -05:00
|
|
|
CONFIGURE_ENV += LDFLAGS="-lm -pthread -lutil"
|
2007-02-08 18:03:38 -05:00
|
|
|
.else
|
2010-11-25 03:55:24 -05:00
|
|
|
MULTI_PACKAGES += -x11
|
|
|
|
RUN_DEPENDS-x11 = ${BASE_PKGPATH}
|
2009-02-10 18:23:27 -05:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
|
2010-11-25 03:55:24 -05:00
|
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -lm -pthread -lutil"
|
2007-02-08 18:03:38 -05:00
|
|
|
.endif
|
|
|
|
|
2010-11-25 03:55:24 -05:00
|
|
|
WANTLIB-main= m ncurses c pthread stdc++ util
|
2005-09-04 20:34:59 -04:00
|
|
|
|
2007-02-08 18:03:38 -05:00
|
|
|
# the php display script doesn't depend on having any of gpsd around,
|
|
|
|
# it just sits there and looks pretty.
|
|
|
|
PKG_ARCH-php= *
|
2011-07-08 17:02:33 -04:00
|
|
|
RUN_DEPENDS-php= lang/php/${MODPHP_VERSION},-gd
|
2007-02-08 18:03:38 -05:00
|
|
|
PREFIX-php= /var/www/
|
|
|
|
|
2010-11-25 03:55:24 -05:00
|
|
|
PYTHON_SCRIPTS= gpsprof gps/gps.py gpsfake gpscat xgps gpsspeed
|
2010-05-11 14:36:13 -04:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
.for file in ${PYTHON_SCRIPTS}
|
|
|
|
perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},g' ${WRKSRC}/${file}
|
|
|
|
.endfor
|
|
|
|
|
2007-02-08 18:03:38 -05:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${WRKINST}/var/www/gpsd
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/gpsd.php ${WRKINST}/var/www/gpsd
|
2008-01-22 06:42:19 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/gpsd_config.h ${PREFIX}/include
|
2005-09-04 20:34:59 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|