2009-08-10 02:29:51 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.30 2009/08/10 06:33:02 kili 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}
|
2009-02-17 02:45:11 -05:00
|
|
|
PKGNAME-main= gpsd-${VERSION}p0
|
2009-08-10 02:29:51 -04:00
|
|
|
PKGNAME-motif= gpsd-motif-${VERSION}p1
|
2007-02-08 18:03:38 -05:00
|
|
|
PKGNAME-php= gpsd-php-${VERSION}
|
2009-03-23 16:17:57 -04:00
|
|
|
PKGNAME-python= gpsd-python-${VERSION}p1
|
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
|
|
|
|
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
|
2009-02-17 02:45:11 -05:00
|
|
|
WANTLIB-motif= ICE Xaw8 Xau Xdmcp Xext Xft Xmu Xp Xpm Xrender X11 SM Xt \
|
2009-08-10 02:29:51 -04:00
|
|
|
c m pthread expat fontconfig freetype iconv \
|
|
|
|
pthread-stubs xcb z
|
2007-02-08 18:03:38 -05:00
|
|
|
LIB_DEPENDS-motif= Xm::x11/openmotif gps::misc/gpsd
|
2006-11-13 06:20:24 -05:00
|
|
|
USE_X11= Yes
|
2009-02-10 18:23:27 -05:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${X11BASE}/lib -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
|
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
|
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/
|
|
|
|
|
|
|
|
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>
|
2007-02-08 18:03:38 -05:00
|
|
|
|