# Created by: Wen Heping # $FreeBSD$ PORTNAME= spatialite PORTVERSION= 4.1.1 CATEGORIES= databases geography MASTER_SITES= http://www.gaia-gis.it/gaia-sins/ DISTNAME= lib${PORTNAME}-${PORTVERSION} MAINTAINER= coder@tuxfamily.org COMMENT= Spatial Extensions for SQLite LIB_DEPENDS= libgeos_c.so:${PORTSDIR}/graphics/geos \ libproj.so:${PORTSDIR}/graphics/proj \ libfreexl.so:${PORTSDIR}/textproc/freexl WRKSRC= ${WRKDIR}/lib${PORTNAME}-${PORTVERSION} GNU_CONFIGURE= yes USE_SQLITE= yes USES= gmake iconv USE_GCC= yes CPPFLAGS+= -I${WRKSRC}/src/headers -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} CONFIGURE_ARGS+=CFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" USE_LDCONFIG= yes NO_STAGE= yes 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 @${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|$$(prefix)/libdata/pkgconfig|' \ ${WRKSRC}/Makefile.in .include .if ${ARCH} == "powerpc" BROKEN= Does not compile on powerpc: invokes i386 assembler .endif .include