2010-11-05 04:24:49 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.38 2010/11/05 08:24:50 sthen 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
|
|
|
|
COMMENT-motif= motif-based test apps using gpsd
|
|
|
|
COMMENT-php= web-based gpsd monitor in php
|
|
|
|
COMMENT-python= python bindings for gpsd
|
2005-09-04 20:34:59 -04:00
|
|
|
|
2009-02-10 18:23:27 -05:00
|
|
|
VERSION= 2.38
|
2005-09-04 20:34:59 -04:00
|
|
|
DISTNAME= gpsd-${VERSION}
|
2010-09-01 02:20:56 -04:00
|
|
|
PKGNAME-main= gpsd-${VERSION}
|
2010-08-30 13:11:35 -04:00
|
|
|
REVISION-main = 1
|
|
|
|
PKGNAME-motif= gpsd-motif-${VERSION}
|
|
|
|
REVISION-motif = 4
|
2007-02-08 18:03:38 -05:00
|
|
|
PKGNAME-php= gpsd-php-${VERSION}
|
2010-08-30 13:11:35 -04:00
|
|
|
PKGNAME-python= gpsd-python-${VERSION}
|
|
|
|
REVISION-python = 3
|
2008-07-25 16:25:59 -04:00
|
|
|
SHARED_LIBS= gps 18.0
|
2006-11-02 02:03:29 -05:00
|
|
|
CATEGORIES= misc geo
|
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
|
|
|
|
|
|
|
USE_LIBTOOL= yes
|
2010-10-18 16:52:05 -04: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 \
|
|
|
|
--disable-garmintxt
|
2005-09-04 20:34:59 -04:00
|
|
|
|
2007-02-08 18:03:38 -05:00
|
|
|
PSEUDO_FLAVORS= no_motif no_python
|
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
|
|
|
|
2007-02-08 18:03:38 -05:00
|
|
|
BUILD_DEPENDS= ::textproc/libxslt \
|
|
|
|
::textproc/docbook \
|
|
|
|
::textproc/docbook-xsl
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_motif}
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
|
|
|
.else
|
2006-11-23 02:52:15 -05:00
|
|
|
MULTI_PACKAGES+= -motif
|
2010-04-24 16:18:39 -04:00
|
|
|
WANTLIB-motif= ICE Xaw7 Xau Xdmcp Xext Xft Xmu Xpm Xrender X11 SM Xt \
|
2009-12-16 09:59:40 -05:00
|
|
|
c m pthread expat fontconfig freetype iconv jpeg png \
|
2010-11-05 04:24:49 -04:00
|
|
|
pthread-stubs xcb z Xm gps
|
|
|
|
LIB_DEPENDS-motif= ::x11/openmotif ::misc/gpsd
|
2009-02-10 18:23:27 -05:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
|
2009-12-16 09:59:40 -05:00
|
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -lm"
|
2007-02-08 18:03:38 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_python}
|
2007-09-04 17:06:07 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-python
|
2006-11-23 02:52:15 -05:00
|
|
|
.else
|
2007-02-08 18:03:38 -05:00
|
|
|
MULTI_PACKAGES+= -python
|
|
|
|
MODULES= lang/python
|
2010-05-11 14:36:13 -04:00
|
|
|
RUN_DEPENDS-python= ::misc/gpsd
|
2009-02-17 02:45:11 -05:00
|
|
|
WANTLIB-python=
|
2007-02-08 18:03:38 -05:00
|
|
|
RUN_DEPENDS-main=
|
|
|
|
RUN_DEPENDS-motif=
|
2005-09-04 20:34:59 -04:00
|
|
|
.endif
|
|
|
|
|
2006-11-23 02:52:15 -05:00
|
|
|
WANTLIB-main= m ncurses c pthread
|
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= *
|
|
|
|
RUN_DEPENDS-php= :php5-gd-*:www/php5/extensions,-gd
|
|
|
|
PREFIX-php= /var/www/
|
|
|
|
|
2010-05-11 14:36:13 -04:00
|
|
|
PYTHON_SCRIPTS= gpsprof gps.py gpsfake gpscat
|
|
|
|
|
|
|
|
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>
|