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