openbsd-ports/comms/xastir/Makefile
2020-02-13 03:59:42 +00:00

56 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.40 2020/02/13 03:59:42 kmos Exp $
COMMENT= X amateur station tracking and info reporting
DISTNAME= xastir-2.0.6
REVISION= 4
CATEGORIES= comms hamradio geo
HOMEPAGE= http://www.xastir.org/
MAINTAINER= Aaron Bieber <abieber@openbsd.org>
PERMIT_PACKAGE= Yes
WANTLIB = GraphicsMagick ICE SM X11 Xext Xm Xpm Xt bz2 c curl db
WANTLIB += freetype gdal geotiff iconv intl lcms2 ltdl lzma m pcre proj
WANTLIB += pthread shp tiff z
MASTER_SITES= $(MASTER_SITE_SOURCEFORGE:=xastir/)
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.69
AUTOMAKE_VERSION= 1.11
MAKE_ENV+=MOTIFLIB='-L${LOCALBASE}/lib -lXm'
.if ${MACHINE} == "sparc64"
CFLAGS += -fno-tree-ter
.endif
# https://github.com/Xastir/Xastir/issues/47 proj 6
CFLAGS += -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1
CONFIGURE_ARGS= --with-shapelib \
--with-pcre \
--with-libproj \
--with-geotiff \
--with-dbfawk \
--with-rtree \
--with-x \
--without-ax25 \
--without-gpsman \
--without-festival \
--with-bdb-libdir=$(LOCALBASE)/lib/db4 \
--with-bdb-incdir=$(LOCALBASE)/include/db4
LIB_DEPENDS= net/curl \
devel/shapelib \
devel/geotiff \
geo/gdal \
graphics/GraphicsMagick \
databases/db/v4 \
devel/pcre \
x11/motif
.include <bsd.port.mk>