1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/converters/py-iconv/Makefile
Tijl Coosemans 6ead27eb95 Remove libiconv.so.3 compatibility link that was added in r374303 to
prevent massive PORTREVISION bumps.  Bump dependent ports that have not
been bumped since.
2016-12-08 19:23:24 +00:00

34 lines
792 B
Makefile

# Created by: Hye-Shik Chang <perky@python.or.kr>
# $FreeBSD$
PORTNAME= iconv
PORTVERSION= 1.0
PORTREVISION= 2
CATEGORIES= converters python
MASTER_SITES= LOCAL/perky
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DIST_SUBDIR= python
MAINTAINER= ports@FreeBSD.org
COMMENT= Iconv wrapper with Unicode codec for Python
USES= iconv python:2
USE_PYTHON= autoplist distutils
.if empty(ICONV_LIB)
SETUPINFO= ,library_dirs=["${LOCALBASE}/lib"],\
include_dirs=["${LOCALBASE}/include"]
.else
SETUPINFO= ,libraries=["iconv"],library_dirs=["${LOCALBASE}/lib"],\
include_dirs=["${LOCALBASE}/include"]
.endif
post-patch:
${REINPLACE_CMD} 's!^\(.*ext_mod.*\)\()]\)$$!\1${SETUPINFO}\2!g'\
${WRKSRC}/setup.py
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/iconv.so
.include <bsd.port.mk>