summaryrefslogtreecommitdiffstats
path: root/comms/xastir/Makefile
blob: 7433557a00ac01e3e65edc5b3df53e931feae908 (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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# New ports collection makefile for:	xastir
# Date created:				17th June 2004
# Whom:					Carl Makin <carl@stagecraft.cx>
#
# $FreeBSD$
#

PORTNAME=	xastir
PORTVERSION=	1.9.4
PORTREVISION=	3
CATEGORIES=	comms hamradio
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	xastir

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.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 \
		INCSHAPE "Use Shapelib included with Xastir" 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 \
		GEOTIFF "Include GeoTIFF Support" Off \
		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>

# Split this way to keep portlint happy.
.if defined(WITH_SHAPELIB)
.if defined(WITH_INCSHAPE)
CONFIGURE_ARGS+=	--with-internal-shapelib
.else
LIB_DEPENDS+=	shp.1:${PORTSDIR}/devel/shapelib
.endif
.else
CONFIGURE_ARGS+=	--without-shapelib
.endif

.if defined(WITHOUT_MAGICK)
CONFIGURE_ARGS+=	--without-imagemagick --without-graphicsmagick
.else
LIB_DEPENDS+=	MagickWand.2:${PORTSDIR}/graphics/ImageMagick
CONFIGURE_ARGS+=	--without-graphicsmagick
.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_GEOTIFF)
LIB_DEPENDS+=	geotiff:${PORTSDIR}/graphics/libgeotiff
.endif

.if defined(WITH_GDAL)
LIB_DEPENDS+=	gdal:${PORTSDIR}/graphics/gdal
.else
CONFIGURE_ARGS+=	--without-gdal
.endif

.if defined(WITH_GPSMAN)
BUILD_DEPENDS+=	${LOCALBASE}/share/doc/gpsmanshp/GPSManSHP.pdf:${PORTSDIR}/graphics/gpsmanshp
WITH_SHAPELIB=	true
.undef WITHOUT_SHAPELIB
.else
CONFIGURE_ARGS+=	--without-gpsman
.endif

.if defined(WITH_FESTIVAL)
BUILD_DEPENDS+=	festival:${PORTSDIR}/audio/festival
.else
CONFIGURE_ARGS+=	--without-festival
.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

.if ${ARCH} == "sparc64"
BROKEN=		Does not compile on sparc64
.endif

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud