blob: 17c4401ee8cacd0db532aceefdce4f80a003f5b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Created by: bland@FreeBSD.org
# $FreeBSD$
PORTNAME= pyicu
PORTVERSION= 1.9.8
PORTREVISION= 6
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= PyICU-${PORTVERSION}
MAINTAINER= bland@FreeBSD.org
COMMENT= Python extension wrapping IBM's ICU C++ API #'
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libicudata.so:devel/icu
USES= compiler:c++11-lang python
USE_CXXSTD= c++11
USE_PYTHON= distutils autoplist
MAKE_ENV+= PYICU_INCLUDES="${LOCALBASE}/include" \
PYICU_CFLAGS="${CXXFLAGS:ts:}" \
PYICU_LFLAGS="-L${LOCALBASE}/lib"
CFLAGS+= -w -DPYICU_VER=\"${PORTVERSION}\"
pre-configure:
@if [ ! -e ${LOCALBASE}/lib/libicule.so ]; then \
${REINPLACE_CMD} "s/, 'icule'//" ${WRKSRC}/${PYSETUP}; \
fi
.include <bsd.port.mk>
|