1 # Created by: Carl Makin <carl@stagecraft.cx>
7 CATEGORIES= comms hamradio
8 MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTNAME}-${PORTVERSION}
10 MAINTAINER= carl@stagecraft.cx
11 COMMENT= X Amateur Station Tracking and Information Reporting
13 BUILD_DEPENDS= xfontsel:${PORTSDIR}/x11-fonts/xfontsel
14 RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget
15 LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff \
16 libjpeg.so:${PORTSDIR}/graphics/jpeg \
17 libpng15.so:${PORTSDIR}/graphics/png
20 USES= gettext gmake motif
22 SUB_FILES= pkg-message
24 OPTIONS_DEFINE= SHAPELIB DBFAWK MAGICK CURL GEOTIFF GDAL GPSMAN FESTIVAL \
25 RTREE ERRORPOP BDB OPTCFLAGS
27 SHAPELIB_DESC= Include Shapelib support
28 DBFAWK_DESC= Include DBFAWK Support
29 MAGICK_DESC= Include GraphicsMagick Support
30 CURL_DESC= Include CURL Internet Image support
31 GEOTIFF_DESC= Include GeoTIFF Support
32 GDAL_DESC= Include GDAL Support
33 GPSMAN_DESC= Include GPSMAN Support
34 FESTIVAL_DESC= Include Festival Voice Synthesis Support
35 RTREE_DESC= Enable spatial indexing of shapefiles
36 ERRORPOP_DESC= Send error popups to stderr
37 BDB_DESC= Tiger Map Caching using Berkeley DB
38 OPTCFLAGS_DESC= Use optimized CFLAGS (-O2 -pipe)
40 OPTIONS_DEFAULT= SHAPELIB DBFAWK MAGICK CURL RTREE BDB
42 .include <bsd.port.pre.mk>
44 .if ${PORT_OPTIONS:MSHAPELIB}
45 LIB_DEPENDS+= libshp.so:${PORTSDIR}/devel/shapelib
47 CONFIGURE_ARGS+= --without-shapelib
50 .if ${PORT_OPTIONS:MMAGICK}
51 LIB_DEPENDS+= libGraphicsMagickWand.so:${PORTSDIR}/graphics/GraphicsMagick
53 CONFIGURE_ARGS+= --without-imagemagick --without-graphicsmagick
56 .if ${PORT_OPTIONS:MDBFAWK}
57 LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre
59 CONFIGURE_ARGS+= --without-dbfawk
62 .if ${PORT_OPTIONS:MCURL}
63 LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl
66 .if ${PORT_OPTIONS:MGEOTIFF}
67 LIB_DEPENDS+= libgeotiff.so:${PORTSDIR}/graphics/libgeotiff
70 .if ${PORT_OPTIONS:MGDAL}
71 LIB_DEPENDS+= libgdal.so:${PORTSDIR}/graphics/gdal
73 CONFIGURE_ARGS+= --without-gdal
76 .if ${PORT_OPTIONS:MGPSMAN}
77 BUILD_DEPENDS+= ${LOCALBASE}/share/doc/gpsmanshp/GPSManSHP.pdf:${PORTSDIR}/graphics/gpsmanshp
80 CONFIGURE_ARGS+= --without-gpsman
83 .if ${PORT_OPTIONS:MFESTIVAL}
84 BUILD_DEPENDS+= festival:${PORTSDIR}/audio/festival
86 CONFIGURE_ARGS+= --without-festival
89 .if ${PORT_OPTIONS:MRTREE}
90 CONFIGURE_ARGS+= --with-rtree
93 .if ${PORT_OPTIONS:MERRORPOP}
94 CONFIGURE_ARGS+= --with-errorpopups
97 .if ${PORT_OPTIONS:MBDB}
99 WITH_BDB_HIGHEST= ${TRUE}
100 INVALID_BDB_VER= 2 3 40
101 CONFIGURE_ARGS+= --with-bdb-incdir=${BDB_INCLUDE_DIR} --with-bdb-libdir=${BDB_LIB_DIR}
104 .if ${PORT_OPTIONS:MOPTCFLAGS}
108 .if ${ARCH} == "sparc64"
109 BROKEN= Does not compile on sparc64
112 .include <bsd.port.post.mk>