2007-09-04 17:06:07 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.15 2007/09/04 21:06:07 jolan Exp $
|
2005-09-04 20:34:59 -04:00
|
|
|
|
2006-11-23 02:52:15 -05:00
|
|
|
COMMENT-main= "service daemon that monitors one or more GPSes"
|
2005-09-04 20:34:59 -04:00
|
|
|
COMMENT-motif= "motif-based test apps using gpsd"
|
2007-02-08 18:03:38 -05:00
|
|
|
COMMENT-php= "web-based gpsd monitor in php"
|
|
|
|
COMMENT-python= "python bindings for gpsd"
|
2005-09-04 20:34:59 -04:00
|
|
|
|
2007-02-08 18:03:38 -05:00
|
|
|
VERSION= 2.34
|
2005-09-04 20:34:59 -04:00
|
|
|
DISTNAME= gpsd-${VERSION}
|
2007-02-08 18:03:38 -05:00
|
|
|
PKGNAME-main= gpsd-${VERSION}
|
|
|
|
PKGNAME-motif= gpsd-motif-${VERSION}
|
|
|
|
PKGNAME-php= gpsd-php-${VERSION}
|
2007-02-15 13:37:07 -05:00
|
|
|
PKGNAME-python= gpsd-python-${VERSION}p0
|
2006-01-13 19:28:45 -05:00
|
|
|
SHARED_LIBS= gps 16.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
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS+= --disable-ntpshm
|
|
|
|
|
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
|
2007-02-08 18:03:38 -05:00
|
|
|
WANTLIB-motif= ICE Xaw X11 SM Xt c m pthread
|
|
|
|
LIB_DEPENDS-motif= Xm::x11/openmotif gps::misc/gpsd
|
2006-11-13 06:20:24 -05:00
|
|
|
USE_X11= Yes
|
2005-09-04 20:34:59 -04:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
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
|
|
|
|
PATCH_LIST= nopython-* patch-*
|
2006-11-23 02:52:15 -05:00
|
|
|
.else
|
2007-02-08 18:03:38 -05:00
|
|
|
MULTI_PACKAGES+= -python
|
|
|
|
MODULES= lang/python
|
|
|
|
LIB_DEPENDS-python= gps::misc/gpsd
|
2007-02-15 13:37:07 -05:00
|
|
|
WANTLIB-python= c m pthread
|
2007-02-08 18:03:38 -05:00
|
|
|
RUN_DEPENDS-main=
|
|
|
|
RUN_DEPENDS-motif=
|
|
|
|
CONFIGURE_ENV+= PYTHON="${MODPY_BIN}"
|
2007-09-04 17:06:07 -04:00
|
|
|
PATCH_LIST= python-* patch-*
|
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/
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${WRKINST}/var/www/gpsd
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/gpsd.php ${WRKINST}/var/www/gpsd
|
2005-09-04 20:34:59 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2007-02-08 18:03:38 -05:00
|
|
|
|