Fix build after iconv conversion on head.

Approved by:	portmgr (bapt, implicit)
This commit is contained in:
Guido Falsi 2013-09-06 13:07:07 +00:00
parent beae873ea6
commit 4749779675
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=326495
2 changed files with 13 additions and 3 deletions

View file

@ -15,15 +15,25 @@ COMMENT= DB-API 2.0 interface for SQLite 3.x with Spatialite 3.x
LIB_DEPENDS= spatialite:${PORTSDIR}/databases/spatialite
USES= iconv
USE_PYTHON= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGNAME= pyspatialite
AMALGAMATION_NAME= libspatialite-amalgamation-${PORTVERSION}
.include <bsd.port.pre.mk>
.if empty(ICONV_LIB)
ICONV_APPEND=
.else
ICONV_APPEND= ,'iconv'
.endif
post-patch:
@${REINPLACE_CMD} -e "s|pyspatialite-doc|${DOCSDIR}|g" \
-e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/setup.py
-e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
-e "s|%%ICONV%%|${ICONV_APPEND}|" ${WRKSRC}/setup.py
@${MV} ${WRKDIR}/${AMALGAMATION_NAME} ${WRKSRC}/amalgamation
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View file

@ -5,7 +5,7 @@
include_dirs = []
library_dirs = []
-libraries = ['geos','geos_c','proj']
+libraries = ['geos','geos_c','proj','iconv']
+libraries = ['geos','geos_c','proj'%%ICONV%%]
runtime_library_dirs = []
extra_objects = []
define_macros = []