Update comms/geoid to version 1.0_7
[dports.git] / comms / xastir / Makefile
1 # Created by: Carl Makin <carl@stagecraft.cx>
2 # $FreeBSD$
3
4 PORTNAME=       xastir
5 PORTVERSION=    2.0.4
6 PORTREVISION=   7
7 CATEGORIES=     comms hamradio
8 MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}-stable/${PORTNAME}-${PORTVERSION}
9
10 MAINTAINER=     carl@stagecraft.cx
11 COMMENT=        X Amateur Station Tracking and Information Reporting
12
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
18
19 GNU_CONFIGURE=  yes
20 USES=           gettext gmake motif
21
22 SUB_FILES=      pkg-message
23
24 OPTIONS_DEFINE= SHAPELIB DBFAWK MAGICK CURL GEOTIFF GDAL GPSMAN FESTIVAL \
25                     RTREE ERRORPOP BDB OPTCFLAGS
26
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)
39
40 OPTIONS_DEFAULT=        SHAPELIB DBFAWK MAGICK CURL RTREE BDB
41
42 .include <bsd.port.pre.mk>
43
44 .if ${PORT_OPTIONS:MSHAPELIB}
45 LIB_DEPENDS+=   libshp.so:${PORTSDIR}/devel/shapelib
46 .else
47 CONFIGURE_ARGS+=        --without-shapelib
48 .endif
49
50 .if ${PORT_OPTIONS:MMAGICK}
51 LIB_DEPENDS+=   libGraphicsMagickWand.so:${PORTSDIR}/graphics/GraphicsMagick
52 .else
53 CONFIGURE_ARGS+=        --without-imagemagick --without-graphicsmagick
54 .endif
55
56 .if ${PORT_OPTIONS:MDBFAWK}
57 LIB_DEPENDS+=   libpcre.so:${PORTSDIR}/devel/pcre
58 .else
59 CONFIGURE_ARGS+=        --without-dbfawk
60 .endif
61
62 .if ${PORT_OPTIONS:MCURL}
63 LIB_DEPENDS+=   libcurl.so:${PORTSDIR}/ftp/curl
64 .endif
65
66 .if ${PORT_OPTIONS:MGEOTIFF}
67 LIB_DEPENDS+=   libgeotiff.so:${PORTSDIR}/graphics/libgeotiff
68 .endif
69
70 .if ${PORT_OPTIONS:MGDAL}
71 LIB_DEPENDS+=   libgdal.so:${PORTSDIR}/graphics/gdal
72 .else
73 CONFIGURE_ARGS+=        --without-gdal
74 .endif
75
76 .if ${PORT_OPTIONS:MGPSMAN}
77 BUILD_DEPENDS+= ${LOCALBASE}/share/doc/gpsmanshp/GPSManSHP.pdf:${PORTSDIR}/graphics/gpsmanshp
78 SHAPELIB=       true
79 .else
80 CONFIGURE_ARGS+=        --without-gpsman
81 .endif
82
83 .if ${PORT_OPTIONS:MFESTIVAL}
84 BUILD_DEPENDS+= festival:${PORTSDIR}/audio/festival
85 .else
86 CONFIGURE_ARGS+=        --without-festival
87 .endif
88
89 .if ${PORT_OPTIONS:MRTREE}
90 CONFIGURE_ARGS+=        --with-rtree
91 .endif
92
93 .if ${PORT_OPTIONS:MERRORPOP}
94 CONFIGURE_ARGS+=        --with-errorpopups
95 .endif
96
97 .if ${PORT_OPTIONS:MBDB}
98 USE_BDB=                41+
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}
102 .endif
103
104 .if ${PORT_OPTIONS:MOPTCFLAGS}
105 CFLAGS+=        -O2 -pipe
106 .endif
107
108 .if ${ARCH} == "sparc64"
109 BROKEN=         Does not compile on sparc64
110 .endif
111
112 .include <bsd.port.post.mk>