freebsd-ports/databases/spatialite/Makefile
Sunpoet Po-Chuan Hsieh 5425357367 - Add missing USE_LDCONFIG
- Use USES=libtool
- Fix USE_PYTHON
- Convert to new options helper
- Bump PORTREVISION for package change
- Do not hard-coded PORTVERSION in PLIST
- Bump PORTREVISION for graphics/geos shlib change
2014-07-18 13:07:23 +00:00

36 lines
1 KiB
Makefile

# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD$
PORTNAME= spatialite
PORTVERSION= 4.1.1
PORTREVISION= 5
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
USES= gmake iconv pathfix pkgconfig libtool
USE_SQLITE= yes
USE_GNOME= libxml2
CFLAGS+= -I${WRKSRC}/src/headers -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
CONFIGURE_ARGS+=--enable-libxml2=yes CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
USE_LDCONFIG= 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
BROKEN_powerpc= Does not compile on powerpc: invokes i386 assembler
.include <bsd.port.mk>