openbsd-ports/misc/gpsd/Makefile
2006-11-13 11:20:24 +00:00

54 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.11 2006/11/13 11:20:25 steven Exp $
COMMENT= "service daemon that monitors one or more GPSes"
COMMENT-motif= "motif-based test apps using gpsd"
VERSION= 2.33
DISTNAME= gpsd-${VERSION}
#PKGNAME= gpsd-${VERSION}
PKGNAME-motif= gpsd-motif-${VERSION}
SHARED_LIBS= gps 16.0
CATEGORIES= misc geo
HOMEPAGE= http://gpsd.berlios.de/
MAINTAINER= Chris Kuethe <ckuethe@openbsd.org>
WANTLIB= m ncurses c pthread
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_BERLIOS:=gpsd/}
USE_LIBTOOL= yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --disable-ntpshm
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include"
PSEUDO_FLAVORS= no_motif
FLAVOR?=
.if !${FLAVOR:L:Mno_motif}
USE_X11= Yes
MULTI_PACKAGES= -motif
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
BUILD_DEPENDS= ::x11/openmotif
.endif
SUBPACKAGE?=
.if defined(PACKAGING)
. if ${SUBPACKAGE} == "-motif"
WANTLIB= ICE Xaw X11 SM Xt c m pthread
LIB_DEPENDS= Xm::x11/openmotif \
gps::misc/gpsd
. endif
.endif
.include <bsd.port.mk>