38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
# Created by: Wen Heping <wenheping@gmail.com>
|
|
|
|
PORTNAME= spatialite
|
|
PORTVERSION= 5.0.1
|
|
CATEGORIES= databases geography
|
|
MASTER_SITES= http://www.gaia-gis.it/gaia-sins/libspatialite-sources/
|
|
DISTNAME= lib${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= lbartoletti@FreeBSD.org
|
|
COMMENT= Spatial Extensions for SQLite
|
|
|
|
LICENSE= GPLv2 # Only GPLv2 since we enable rttopo and gcp
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libgeos_c.so:graphics/geos \
|
|
libproj.so:graphics/proj \
|
|
libfreexl.so:textproc/freexl \
|
|
libminizip.so:archivers/minizip \
|
|
librttopo.so:devel/librttopo
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= gmake gnome iconv libtool pathfix pkgconfig sqlite
|
|
USE_GNOME= libxml2
|
|
|
|
CFLAGS+= -I${WRKSRC}/src/headers -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
|
|
CONFIGURE_ARGS+= --enable-gcp=yes --enable-libxml2=yes --enable-rttopo=yes \
|
|
CFLAGS="${CFLAGS}" \
|
|
LDFLAGS="${LDFLAGS}"
|
|
USE_LDCONFIG= yes
|
|
INSTALL_TARGET=install-strip
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-ldl| |' ${WRKSRC}/src/Makefile.am
|
|
@${REINPLACE_CMD} -e 's|-ldl| |' ${WRKSRC}/src/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|-ldl| |' ${WRKSRC}/configure
|
|
|
|
.include <bsd.port.mk>
|