freebsd-ports/converters/py-iconv/Makefile

34 lines
780 B
Makefile
Raw Normal View History

# Created by: Hye-Shik Chang <perky@python.or.kr>
# $FreeBSD$
PORTNAME= iconv
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= converters python
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= perky
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DIST_SUBDIR= python
MAINTAINER= ports@FreeBSD.org
COMMENT= Iconv wrapper with Unicode codec for Python
USES= iconv
USE_PYTHON= yes
2002-04-29 14:57:09 +02:00
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
.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
.include <bsd.port.mk>