diff options
Diffstat (limited to 'devel/icu4/Makefile')
-rw-r--r-- | devel/icu4/Makefile | 85 |
1 files changed, 70 insertions, 15 deletions
diff --git a/devel/icu4/Makefile b/devel/icu4/Makefile index ca96539232f1..54e3c1e0b44e 100644 --- a/devel/icu4/Makefile +++ b/devel/icu4/Makefile @@ -6,27 +6,82 @@ # PORTNAME= icu -PORTVERSION= 1.7 -PORTREVISION= 1 +PORTVERSION= 3.2 CATEGORIES= devel -MASTER_SITES= http://oss.software.ibm.com/developerworks/opensource/icu/project/download/${PORTVERSION}/ -EXTRACT_SUFX= .tgz +MASTER_SITES= ftp://www-126.ibm.com/pub/icu/${PORTVERSION}/ +EXTRACT_SUFX= -d02.tgz MAINTAINER= ports@FreeBSD.org -COMMENT= International Components for Unicode (from IBM)(old version) +COMMENT= International Components for Unicode (from IBM) -WRKSRC= ${WRKDIR}/${PORTNAME}/source -GNU_CONFIGURE= yes -USE_GMAKE= yes +INSTALLS_SHLIB= yes +NO_FILTER_SHLIBS= yes -CONFIGURE_ARGS+=--disable-shared --enable-static -CONFIGURE_ENV= CXXFLAGS="-O3" -CONFIGURE_ENV+= CFLAGS="-O3" +WRKSRC= ${WRKDIR}/icu +ICUWRKSRC= ${WRKSRC}/source +CONFIGURE_WRKSRC= ${ICUWRKSRC} +BUILD_WRKSRC= ${ICUWRKSRC} +INSTALL_WRKSRC= ${ICUWRKSRC} -.include <bsd.port.pre.mk> +GNU_CONFIGURE= yes +CONFIGURE_SCRIPT= runConfigureICU +CONFIGURE_ARGS+= ${OPSYS} +CONFIGURE_ARGS+= --enable-shared +CONFIGURE_ARGS+= --enable-static +CONFIGURE_ARGS+= --enable-samples=no --enable-tests=yes +.if defined(NO_THREADS) +CONFIGURE_ARGS+= --enable-threads=no +.else +CONFIGURE_ENV+= THREADSCPPFLAGS="${PTHREAD_CFLAGS}" \ + THREADSCFLAGS="${PTHREAD_CFLAGS}" \ + THREADSCXXFLAGS="${PTHREAD_CFLAGS}" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" +.endif +USE_GMAKE= yes +CONFIGURE_ENV+= CFLAGS="${CFLAGS}" CC="${CC}" CXX="${CXX}" + +MAN1+= gencnval.1 +MAN1+= genrb.1 +MAN1+= icu-config.1 +MAN1+= makeconv.1 +MAN1+= pkgdata.1 +MAN1+= uconv.1 +MAN8+= decmn.8 +MAN8+= genccode.8 +MAN8+= gencmn.8 +MAN8+= gennames.8 +MAN8+= gennorm.8 +MAN8+= genprops.8 +MAN8+= gensprep.8 +MAN8+= genuca.8 + +ICUMAJOR= ${PORTVERSION:S/.//:R} +PLIST_SUB+= ICUMAJOR=${ICUMAJOR} +PLIST_SUB+= ICUVER=${PORTVERSION} -.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "sparc64" -IGNORE= "does not build on this architecture, use devel/icu2 instead" +pre-fetch: +.if !defined(BATCH) && !defined(PACKAGE_BUILDING) + # + # You may use the following build options by defining + # them on the command line with -D + # + # NO_THREADS do not build a thread enabled library + # .endif -.include <bsd.port.post.mk> +pre-patch: +# VPATH does not work due to IBM's mistake: + ${LN} -s ${FILESDIR}/*.ucm ${WRKSRC}/source/data/mappings/ + @for l in ${FILESDIR}/*.ucm ; do \ + echo UCM_SOURCE_LOCAL+=`basename $$l` >> \ + ${WRKSRC}/source/data/mappings/ucmlocal.mk ; \ + done + +post-build test: + ${GMAKE} -C ${ICUWRKSRC}/test +.for t in intltest iotest cintltst + cd ${ICUWRKSRC}/test/$t && ${SETENV} \ + LD_LIBRARY_PATH=${ICUWRKSRC}/lib:${ICUWRKSRC}/tools/ctestfw ./$t +.endfor + +.include <bsd.port.mk> |