Lines 2-73
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= icu |
4 |
PORTNAME= icu |
5 |
PORTVERSION= 55.1 |
5 |
DISTVERSION= 57_1 |
|
|
6 |
PORTREVISION= 3 |
6 |
PORTEPOCH= 1 |
7 |
PORTEPOCH= 1 |
7 |
CATEGORIES= devel |
8 |
CATEGORIES= devel |
8 |
MASTER_SITES= http://download.icu-project.org/files/icu4c/${PORTVERSION}/ \ |
9 |
MASTER_SITES= http://download.icu-project.org/files/icu4c/${PORTVERSION}/ |
9 |
SF/${PORTNAME}/ICU4C/${PORTVERSION}/ |
10 |
DISTNAME= icu4c-${DISTVERSION}-src |
10 |
DISTNAME= icu4c-${PORTVERSION:S/./_/g} |
|
|
11 |
EXTRACT_SUFX= -src.tgz |
12 |
|
11 |
|
13 |
MAINTAINER= office@FreeBSD.org |
12 |
MAINTAINER= office@FreeBSD.org |
14 |
COMMENT= International Components for Unicode (from IBM) |
13 |
COMMENT= International Components for Unicode (from IBM) |
15 |
|
14 |
|
16 |
LICENSE= ICU |
15 |
LICENSE= ICU |
17 |
LICENSE_NAME= ICU license |
16 |
LICENSE_NAME= ICU license |
18 |
LICENSE_FILE= ${WRKSRC}/../license.html |
17 |
LICENSE_FILE= ${WRKSRC}/../LICENSE |
19 |
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
18 |
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
20 |
|
19 |
|
21 |
OPTIONS_DEFINE= THREADS |
|
|
22 |
OPTIONS_DEFAULT= THREADS |
23 |
THREADS_DESC= Build thread-safe version of the library |
24 |
|
25 |
USE_LDCONFIG= yes |
26 |
|
27 |
WRKSRC= ${WRKDIR}/icu/source |
28 |
|
29 |
GNU_CONFIGURE= yes |
20 |
GNU_CONFIGURE= yes |
30 |
CONFIGURE_ARGS+= --with-data-packaging=library \ |
21 |
CONFIGURE_ARGS+=--with-data-packaging=archive \ |
31 |
--disable-samples \ |
22 |
--disable-renaming \ |
32 |
--enable-release \ |
23 |
--disable-samples \ |
33 |
--enable-shared \ |
24 |
--enable-static |
34 |
--enable-static |
25 |
CPPFLAGS+= -DICU_NO_USER_DATA_OVERRIDE |
35 |
|
26 |
MAKE_ARGS= VERBOSE=1 |
36 |
.if defined(X_BUILD_FOR) |
27 |
TEST_TARGET= check |
37 |
CONFIGURE_ARGS+= --with-cross-build |
28 |
USES= compiler:c++0x gmake pathfix tar:tgz |
38 |
.endif |
29 |
USE_LDCONFIG= yes |
39 |
|
30 |
WRKSRC= ${WRKDIR}/icu/source |
40 |
|
|
|
41 |
USES= gmake pathfix |
42 |
|
31 |
|
43 |
ICUMAJOR= ${PORTVERSION:C/\..*//} |
32 |
ICUMAJOR= ${PORTVERSION:C/\..*//} |
44 |
PLIST_SUB+= ICUMAJOR=${ICUMAJOR} ICUVER=${PORTVERSION} |
33 |
PLIST_SUB+= ICUMAJOR=${ICUMAJOR} ICUVER=${PORTVERSION} |
45 |
|
34 |
|
46 |
# This builds thread-safe, but not the thread-using version: |
|
|
47 |
THREADS_CONFIGURE_ON= --enable-weak-threads |
48 |
THREADS_CONFIGURE_OFF= --enable-threads=no |
49 |
|
50 |
.include <bsd.port.options.mk> |
35 |
.include <bsd.port.options.mk> |
51 |
|
36 |
|
52 |
# For all Bigendian systems, set CPPFLAGS so that icu compiles and checks correctly |
37 |
.if ${ARCH} == "mips" || ${ARCH} == "mips64" || ${ARCH} == "sparc64" \ |
53 |
.if ${ARCH} == "mips" || ${ARCH} == "mips64" || ${ARCH} == "sparc64" || ${ARCH} == "powerpc" || ${ARCH} == "powerpc64" |
38 |
|| ${ARCH} == "powerpc" || ${ARCH} == "powerpc64" |
54 |
CPPFLAGS+= -DU_IS_BIG_ENDIAN=1 |
39 |
PLIST_FILES+= %%DATADIR%%/%%ICUVER%%/icudt%%ICUMAJOR%%b.dat |
55 |
.endif |
40 |
.else |
56 |
|
41 |
PLIST_FILES+= %%DATADIR%%/%%ICUVER%%/icudt%%ICUMAJOR%%l.dat |
57 |
post-patch: |
|
|
58 |
@${REINPLACE_CMD} -e '/CXXFLAGS=/s/-ansi//' \ |
59 |
${WRKSRC}/configure |
60 |
.if ! ${PORT_OPTIONS:MTHREADS} |
61 |
@${REINPLACE_CMD} -e 's,\(THREADSC.*FLAGS\).*,\1=,g' ${WRKSRC}/config/mh-bsd-gcc |
62 |
.endif |
42 |
.endif |
63 |
|
43 |
|
64 |
iotest cintltst intltest: |
|
|
65 |
# Performing the ${.TARGET} test |
66 |
-${MAKE_CMD} -C ${WRKSRC}/test |
67 |
cd ${WRKSRC}/test/${.TARGET} && ${SETENV} \ |
68 |
LD_LIBRARY_PATH=${WRKSRC}/lib:${WRKSRC}/tools/ctestfw \ |
69 |
./${.TARGET} |
70 |
|
71 |
post-stage: |
44 |
post-stage: |
72 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/g* \ |
45 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/g* \ |
73 |
${STAGEDIR}${PREFIX}/bin/*conv \ |
46 |
${STAGEDIR}${PREFIX}/bin/*conv \ |
Lines 75-82
post-stage:
Link Here
|
75 |
${STAGEDIR}${PREFIX}/bin/derb \ |
48 |
${STAGEDIR}${PREFIX}/bin/derb \ |
76 |
${STAGEDIR}${PREFIX}/bin/pkgdata |
49 |
${STAGEDIR}${PREFIX}/bin/pkgdata |
77 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/* |
50 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/* |
78 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libicuda*.so.* |
|
|
79 |
|
80 |
test regression-test: iotest cintltst intltest |
81 |
|
51 |
|
82 |
.include <bsd.port.mk> |
52 |
.include <bsd.port.mk> |