aboutsummaryrefslogtreecommitdiff
path: root/devel/py-pyicu/Makefile
blob: b2744124591661f5c6202d5fb5a737b14f1579ce (plain) (blame)
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
# Created by: bland@FreeBSD.org

PORTNAME=	pyicu
PORTVERSION=	2.4.3
PORTREVISION=	1
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:3.6+
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>