mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
6b9f8403c2
- spatialite_gui: unbreak, now configures properly and is able to find libspatialite installed by databases/spatialite PR: ports/170893 [1] Submitted by: myself [1] Approved by: maintainer timeout
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# New ports collection makefile for: spatialite
|
|
# Date created: 11 July 2008
|
|
# Whom: Wen Heping <wenheping@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= spatialite
|
|
PORTVERSION= 3.0.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= databases geography
|
|
MASTER_SITES= http://www.gaia-gis.it/gaia-sins/
|
|
DISTNAME= lib${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= wenheping@gmail.com
|
|
COMMENT= Spatial Extensions for SQLite
|
|
|
|
LIB_DEPENDS= geos_c.8:${PORTSDIR}/graphics/geos \
|
|
proj.7:${PORTSDIR}/graphics/proj \
|
|
freexl.1:${PORTSDIR}/textproc/freexl
|
|
|
|
EXTRACT_SUFX = .tar.gz
|
|
WRKSRC= ${WRKDIR}/lib${PORTNAME}-${PORTVERSION}
|
|
GNU_CONFIGURE= yes
|
|
USE_GMAKE= yes
|
|
USE_SQLITE= yes
|
|
USE_ICONV= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CONFIGURE_ARGS+=CPPFLAGS="${CPPFLAGS}" 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
|
|
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|$$(prefix)/libdata/pkgconfig|' \
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 800000
|
|
BROKEN= does not build
|
|
.endif
|
|
|
|
.if ${ARCH} == "powerpc"
|
|
BROKEN= Does not compile on powerpc: invokes i386 assembler
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|