freebsd-ports/devel/py-icu/Makefile
Alexander Nedotsukov 3c1991f7d2 Add support for ICU 4.4
PR:	148843
2010-07-26 11:55:19 +00:00

41 lines
947 B
Makefile

# New ports collection makefile for: py-icu
# Date created: 26 Sep 2008
# Whom: bland@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= icu
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_CHEESESHOP}
MASTER_SITE_SUBDIR= source/P/PyICU
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= PyICU-${PORTVERSION}
MAINTAINER= bland@FreeBSD.org
COMMENT= Python extension wrapping IBM's ICU C++ API
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
PYDISTUTILS_PKGNAME= PyICU
PYEASYINSTALL_ARCHDEP= yes
MAKE_ENV+= \
PYICU_INCLUDES="${PREFIX}/include" \
PYICU_CFLAGS="-w" \
PYICU_LFLAGS="-L${PREFIX}/lib" \
PYICU_LIBRARIES="icui18n:icuuc:icudata"
OPTIONS= ICU4 "Use ICU 4.x instead of 3.8" off
.include <bsd.port.pre.mk>
.if defined(WITH_ICU4) || exists(${LOCALBASE}/lib/libicudata.so.44)
LIB_DEPENDS+= icudata:${PORTSDIR}/devel/icu4
.else
LIB_DEPENDS+= icudata:${PORTSDIR}/devel/icu
.endif
.include <bsd.port.post.mk>