Lines 6-32
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= spatialite |
8 |
PORTNAME= spatialite |
9 |
PORTVERSION= 2.2 |
9 |
PORTVERSION= 3.0.1 |
10 |
PORTREVISION= 7 |
|
|
11 |
CATEGORIES= databases geography |
10 |
CATEGORIES= databases geography |
12 |
MASTER_SITES= http://www.gaia-gis.it/${PORTNAME}-${PORTVERSION}/ |
11 |
MASTER_SITES= http://www.gaia-gis.it/gaia-sins/ |
|
|
12 |
DISTNAME= lib${PORTNAME}-${PORTVERSION} |
13 |
|
13 |
|
14 |
MAINTAINER= wenheping@gmail.com |
14 |
MAINTAINER= wenheping@gmail.com |
15 |
COMMENT= Spatial Extensions for SQLite |
15 |
COMMENT= Spatial Extensions for SQLite |
16 |
|
16 |
|
17 |
LIB_DEPENDS= geos_c.8:${PORTSDIR}/graphics/geos \ |
17 |
LIB_DEPENDS= geos_c.8:${PORTSDIR}/graphics/geos \ |
18 |
proj.7:${PORTSDIR}/graphics/proj \ |
18 |
proj.7:${PORTSDIR}/graphics/proj \ |
19 |
iconv.3:${PORTSDIR}/converters/libiconv |
19 |
freexl.1:${PORTSDIR}/databases/freexl |
20 |
|
20 |
|
|
|
21 |
EXTRACT_SUFX = .tar.gz |
22 |
WRKSRC= ${WRKDIR}/lib${PORTNAME}-${PORTVERSION} |
21 |
GNU_CONFIGURE= yes |
23 |
GNU_CONFIGURE= yes |
22 |
USE_GMAKE= yes |
24 |
USE_GMAKE= yes |
23 |
CFLAGS+= -I${LOCALBASE}/include |
25 |
USE_SQLITE= yes |
24 |
LDFLAGS+= -L${LOCALBASE}/lib -liconv |
26 |
USE_ICONV= yes |
25 |
CONFIGURE_ARGS+=CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" |
27 |
|
|
|
28 |
CPPFLAGS+= -I${LOCALBASE}/include |
29 |
LDFLAGS+= -L${LOCALBASE}/lib |
30 |
CONFIGURE_ARGS+=CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
26 |
USE_LDCONFIG= yes |
31 |
USE_LDCONFIG= yes |
27 |
|
32 |
|
28 |
post-patch: |
33 |
post-patch: |
29 |
@${REINPLACE_CMD} -e 's#-ldl##g' ${WRKSRC}/src/sqlite3/Makefile.in |
34 |
@${REINPLACE_CMD} -e 's|-ldl| |' ${WRKSRC}/src/Makefile.am |
30 |
@${REINPLACE_CMD} -e 's#-ldl##g' ${WRKSRC}/src/shell/Makefile.in |
35 |
@${REINPLACE_CMD} -e 's|-ldl| |' ${WRKSRC}/src/Makefile.in |
31 |
|
36 |
@${REINPLACE_CMD} -e 's|-ldl| |' ${WRKSRC}/configure |
32 |
.include <bsd.port.mk> |
37 |
.include <bsd.port.mk> |