freebsd-ports/comms/xastir/Makefile
Boris Samorodov 904fa3fd12 Fix an optional dependancy so it installs what it really needs
(astro/gpsman -> graphics/gpsmanshp).

PR:		103516
Submitted by:	Carl Makin <carl at stagecraft.cx> (maintainer)
2006-09-23 23:44:15 +00:00

141 lines
3.1 KiB
Makefile

# New ports collection makefile for: xastir
# Date created: 17th June 2004
# Whom: Carl Makin <carl@stagecraft.cx>
#
# $FreeBSD$
#
PORTNAME= xastir
PORTVERSION= 1.8.2
PORTREVISION= 1
CATEGORIES= comms hamradio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= xastir
MAINTAINER= carl@stagecraft.cx
COMMENT= X Amateur Station Tracking and Information Reporting
RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
jpeg:${PORTSDIR}/graphics/jpeg \
png:${PORTSDIR}/graphics/png
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_MOTIF= yes
USE_GETTEXT= yes
MAN1= xastir.1
SUB_FILES= pkg-message
OPTIONS= SHAPELIB "Include Shapelib support" On \
PCRE "Include Perl Compat Regular Expression Support" On \
DBFAWK "Include DBFAWK Support" On \
MAGICK "Include ImageMagick Support" On \
CURL "Include CURL Internet Image support" On \
GDAL "Include GDAL Support" Off \
GPSMAN "Include GPSMAN Support" Off \
FESTIVAL "Include Festival Voice Synthesis Support" Off \
RTREE "Enable spatial indexing of shapefiles" Off \
ERRORPOP "Send error popups to stderr" Off \
DB40 "Tiger Map Caching using Berkeley DB v4.0" Off \
DB41 "Tiger Map Caching using Berkeley DB v4.1" Off \
DB42 "Tiger Map Caching using Berkeley DB v4.2" Off \
DB43 "Tiger Map Caching using Berkeley DB v4.3" Off \
OPTCFLAGS "Use optimized CFLAGS (-O2 -pipe)" Off
.include <bsd.port.pre.mk>
.if defined(WITH_FESTIVAL)
RUN_DEPENDS+= festival:${PORTSDIR}/audio/festival
.else
CONFIGURE_ARGS+= --without-festival
.endif
.if defined(WITH_GPSMAN)
RUN_DEPENDS+= gpsmanshp:${PORTSDIR}/graphics/gpsmanshp
WITH_SHAPELIB= true
.undef WITHOUT_SHAPELIB
.else
CONFIGURE_ARGS+= --without-gpsman
.endif
.if defined(WITHOUT_SHAPELIB)
CONFIGURE_ARGS+= --without-shapelib
.else
LIB_DEPENDS+= shp.1:${PORTSDIR}/devel/shapelib
.endif
.if defined(WITHOUT_MAGICK)
CONFIGURE_ARGS+= --without-imagemagick
.else
LIB_DEPENDS+= Magick.10:${PORTSDIR}/graphics/ImageMagick
.endif
.if defined(WITHOUT_DBFAWK)
CONFIGURE_ARGS+= --without-dbfawk
WITH_PCRE= true
.undef WITHOUT_PCRE
.endif
.if defined(WITHOUT_PCRE)
CONFIGURE_ARGS+= --without-pcre
.else
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
.endif
.if !defined(WITHOUT_CURL)
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
.endif
.if defined(WITH_GDAL)
LIB_DEPENDS+= gdal:${PORTSDIR}/graphics/gdal
.else
CONFIGURE_ARGS+= --without-gdal
.endif
.if defined(WITH_RTREE)
CONFIGURE_ARGS+= --with-rtree
.endif
.if defined(WITH_ERRORPOP)
CONFIGURE_ARGS+= --with-errorpopups
.endif
.if defined(WITH_DB40)
USE_BDB= 40
.endif
.if defined(WITH_DB41)
USE_BDB= 41
.endif
.if defined(WITH_DB42)
USE_BDB= 42
.endif
.if defined(WITH_DB43)
USE_BDB= 43
.endif
.if defined(WITH_DB40) || defined(WITH_DB41) || defined(WITH_DB42) || defined(WITH_DB43)
CONFIGURE_ARGS+= --with-bdb-incdir=${BDB_INCLUDE_DIR}
.endif
.if defined(WITH_OPTIMIZED_CFLAGS)
WITH_OPTCFLAGS= true
.endif
# OPTIMIZED_CFLAGS is too big for the OPTIONS variable to draw on the screen.
.if defined(WITH_OPTCFLAGS)
CFLAGS+= -O2 -pipe
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-O2||' ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>