2012-04-01 19:38:57 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.47 2012/04/01 19:38:57 sthen Exp $
|
2005-09-05 00:34:59 +00:00
|
|
|
|
2007-09-15 23:54:16 +00:00
|
|
|
COMMENT-main= service daemon that monitors one or more GPSes
|
2010-11-25 08:55:24 +00:00
|
|
|
COMMENT-x11= GUI test apps using gpsd
|
2007-09-15 23:54:16 +00:00
|
|
|
COMMENT-php= web-based gpsd monitor in php
|
2005-09-05 00:34:59 +00:00
|
|
|
|
2010-11-25 08:55:24 +00:00
|
|
|
VERSION= 2.95
|
2005-09-05 00:34:59 +00:00
|
|
|
DISTNAME= gpsd-${VERSION}
|
2010-09-01 06:20:56 +00:00
|
|
|
PKGNAME-main= gpsd-${VERSION}
|
2010-11-25 08:55:24 +00:00
|
|
|
PKGNAME-x11= gpsd-x11-${VERSION}
|
2007-02-08 23:03:38 +00:00
|
|
|
PKGNAME-php= gpsd-php-${VERSION}
|
2010-11-25 08:55:24 +00:00
|
|
|
SHARED_LIBS= gps 19.0 \
|
|
|
|
gpsd 0.0
|
2006-11-02 07:03:29 +00:00
|
|
|
CATEGORIES= misc geo
|
2005-09-05 00:34:59 +00:00
|
|
|
|
2012-01-26 08:03:56 +00:00
|
|
|
REVISION-main= 2
|
2011-11-16 15:56:36 +00:00
|
|
|
REVISION-php= 2
|
2011-06-08 17:31:05 +00:00
|
|
|
|
2005-09-05 00:34:59 +00:00
|
|
|
HOMEPAGE= http://gpsd.berlios.de/
|
|
|
|
|
2006-10-27 23:47:23 +00:00
|
|
|
MAINTAINER= Chris Kuethe <ckuethe@openbsd.org>
|
2005-09-05 00:34:59 +00:00
|
|
|
|
2006-11-23 07:52:15 +00:00
|
|
|
# BSD
|
2005-09-05 00:34:59 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2006-08-01 18:38:22 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_BERLIOS:=gpsd/}
|
2005-09-05 00:34:59 +00:00
|
|
|
|
2011-07-08 21:02:33 +00:00
|
|
|
MODULES += lang/python lang/php
|
2012-04-01 19:38:57 +00:00
|
|
|
MODPHP_BUILDDEP= No
|
2005-09-05 00:34:59 +00:00
|
|
|
USE_LIBTOOL= yes
|
2010-11-19 07:23:05 +00:00
|
|
|
USE_GROFF = Yes
|
2005-09-05 00:34:59 +00:00
|
|
|
CONFIGURE_STYLE= gnu
|
2008-01-04 18:57:07 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-ntpshm \
|
|
|
|
--enable-gpsd-user=_gpsd \
|
2010-11-25 08:55:24 +00:00
|
|
|
--enable-tnt \
|
|
|
|
--enable-oceanserver
|
2005-09-05 00:34:59 +00:00
|
|
|
|
2010-11-25 08:55:24 +00:00
|
|
|
PSEUDO_FLAVORS = no_x11
|
2005-09-05 00:34:59 +00:00
|
|
|
FLAVOR?=
|
|
|
|
|
2007-02-08 23:03:38 +00:00
|
|
|
MULTI_PACKAGES= -main -php
|
2006-11-23 07:52:15 +00:00
|
|
|
|
2010-11-19 07:23:05 +00:00
|
|
|
BUILD_DEPENDS= textproc/libxslt \
|
|
|
|
textproc/docbook \
|
|
|
|
textproc/docbook-xsl
|
2007-02-08 23:03:38 +00:00
|
|
|
|
2011-07-08 21:02:33 +00:00
|
|
|
RUN_DEPENDS-main= ${MODPY_RUN_DEPENDS}
|
|
|
|
|
2010-11-25 08:55:24 +00:00
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
2007-02-08 23:03:38 +00:00
|
|
|
CONFIGURE_ARGS+= --without-x
|
2010-11-25 08:55:24 +00:00
|
|
|
CONFIGURE_ENV += LDFLAGS="-lm -pthread -lutil"
|
2007-02-08 23:03:38 +00:00
|
|
|
.else
|
2010-11-25 08:55:24 +00:00
|
|
|
MULTI_PACKAGES += -x11
|
|
|
|
RUN_DEPENDS-x11 = ${BASE_PKGPATH}
|
2009-02-10 23:23:27 +00:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
|
2010-11-25 08:55:24 +00:00
|
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -lm -pthread -lutil"
|
2007-02-08 23:03:38 +00:00
|
|
|
.endif
|
|
|
|
|
2010-11-25 08:55:24 +00:00
|
|
|
WANTLIB-main= m ncurses c pthread stdc++ util
|
2005-09-05 00:34:59 +00:00
|
|
|
|
2007-02-08 23:03:38 +00: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 21:02:33 +00:00
|
|
|
RUN_DEPENDS-php= lang/php/${MODPHP_VERSION},-gd
|
2007-02-08 23:03:38 +00:00
|
|
|
PREFIX-php= /var/www/
|
|
|
|
|
2010-11-25 08:55:24 +00:00
|
|
|
PYTHON_SCRIPTS= gpsprof gps/gps.py gpsfake gpscat xgps gpsspeed
|
2010-05-11 18:36:13 +00: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 23:03:38 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${WRKINST}/var/www/gpsd
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/gpsd.php ${WRKINST}/var/www/gpsd
|
2008-01-22 11:42:19 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/gpsd_config.h ${PREFIX}/include
|
2005-09-05 00:34:59 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|