blob: 95b022c85238ae96acf26caa873a1569730e1b8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
# $FreeBSD$
# Created by: Carl Makin <carl@stagecraft.cx>
PORTNAME= xastir
PORTVERSION= 2.0.4
CATEGORIES= comms hamradio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTNAME}-${PORTVERSION}
MAINTAINER= carl@stagecraft.cx
COMMENT= X Amateur Station Tracking and Information Reporting
BUILD_DEPENDS= xfontsel:${PORTSDIR}/x11-fonts/xfontsel
RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget
LIB_DEPENDS= tiff:${PORTSDIR}/graphics/tiff \
jpeg:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_MOTIF= yes
USE_GETTEXT= yes
MAKE_JOBS_SAFE= yes
MAN1= xastir.1 \
callpass.1 \
testdbfawk.1 \
xastir_udp_client.1
SUB_FILES= pkg-message
OPTIONS_DEFINE= SHAPELIB DBFAWK MAGICK CURL GEOTIFF GDAL GPSMAN FESTIVAL \
RTREE ERRORPOP BDB OPTCFLAGS
SHAPELIB_DESC= Include Shapelib support
DBFAWK_DESC= Include DBFAWK Support
MAGICK_DESC= Include GraphicsMagick Support
CURL_DESC= Include CURL Internet Image support
GEOTIFF_DESC= Include GeoTIFF Support
GDAL_DESC= Include GDAL Support
GPSMAN_DESC= Include GPSMAN Support
FESTIVAL_DESC= Include Festival Voice Synthesis Support
RTREE_DESC= Enable spatial indexing of shapefiles
ERRORPOP_DESC= Send error popups to stderr
BDB_DESC= Tiger Map Caching using Berkeley DB
OPTCFLAGS_DESC= Use optimized CFLAGS (-O2 -pipe)
OPTIONS_DEFAULT= SHAPELIB DBFAWK MAGICK CURL RTREE BDB
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MSHAPELIB}
LIB_DEPENDS+= shp:${PORTSDIR}/devel/shapelib
.else
CONFIGURE_ARGS+= --without-shapelib
.endif
.if ${PORT_OPTIONS:MMAGICK}
LIB_DEPENDS+= GraphicsMagickWand:${PORTSDIR}/graphics/GraphicsMagick13
.else
CONFIGURE_ARGS+= --without-imagemagick --without-graphicsmagick
.endif
.if ${PORT_OPTIONS:MDBFAWK}
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
.else
CONFIGURE_ARGS+= --without-dbfawk
.endif
.if ${PORT_OPTIONS:MCURL}
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
.endif
.if ${PORT_OPTIONS:MGEOTIFF}
LIB_DEPENDS+= geotiff:${PORTSDIR}/graphics/libgeotiff
.endif
.if ${PORT_OPTIONS:MGDAL}
LIB_DEPENDS+= gdal:${PORTSDIR}/graphics/gdal
.else
CONFIGURE_ARGS+= --without-gdal
.endif
.if ${PORT_OPTIONS:MGPSMAN}
BUILD_DEPENDS+= ${LOCALBASE}/share/doc/gpsmanshp/GPSManSHP.pdf:${PORTSDIR}/graphics/gpsmanshp
SHAPELIB= true
.else
CONFIGURE_ARGS+= --without-gpsman
.endif
.if ${PORT_OPTIONS:MFESTIVAL}
BUILD_DEPENDS+= festival:${PORTSDIR}/audio/festival
.else
CONFIGURE_ARGS+= --without-festival
.endif
.if ${PORT_OPTIONS:MRTREE}
CONFIGURE_ARGS+= --with-rtree
.endif
.if ${PORT_OPTIONS:MERRORPOP}
CONFIGURE_ARGS+= --with-errorpopups
.endif
.if ${PORT_OPTIONS:MBDB}
USE_BDB= 41+
WITH_BDB_HIGHEST= ${TRUE}
INVALID_BDB_VER= 2 3 40
CONFIGURE_ARGS+= --with-bdb-incdir=${BDB_INCLUDE_DIR} --with-bdb-libdir=${BDB_LIB_DIR}
.endif
.if ${PORT_OPTIONS:MOPTCFLAGS}
CFLAGS+= -O2 -pipe
.endif
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|