2017-04-10 11:46:32 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.59 2017/04/10 11:46:34 sthen Exp $
|
2014-09-16 19:56:09 +00:00
|
|
|
|
2014-10-17 08:35:10 +00:00
|
|
|
NOT_FOR_ARCHS= ${GCC3_ARCHS}
|
2007-07-19 21:52:09 +00:00
|
|
|
|
|
|
|
COMMENT= International Components for Unicode
|
|
|
|
|
2017-02-28 09:24:58 +00:00
|
|
|
VERSION= 58.2
|
2009-01-27 22:11:15 +00:00
|
|
|
DISTNAME= icu4c-${VERSION:S/./_/g}-src
|
2010-11-20 19:56:47 +00:00
|
|
|
PKGNAME= icu4c-${VERSION}
|
2017-03-04 10:51:00 +00:00
|
|
|
REVISION= 0
|
2014-10-17 08:35:10 +00:00
|
|
|
|
|
|
|
MAJ_V= ${VERSION:R}
|
2017-03-04 10:51:00 +00:00
|
|
|
SO_VERSION= 12.0
|
2016-12-05 16:15:56 +00:00
|
|
|
.for _lib in icudata icui18n icuio icutest icutu icuuc
|
2007-07-19 21:52:09 +00:00
|
|
|
SHARED_LIBS+= ${_lib} ${SO_VERSION}
|
|
|
|
.endfor
|
2014-10-17 08:35:10 +00:00
|
|
|
SUBST_VARS+= MAJ_V VERSION
|
|
|
|
|
2007-07-19 21:52:09 +00:00
|
|
|
CATEGORIES= textproc devel
|
2012-09-26 19:49:39 +00:00
|
|
|
DPB_PROPERTIES= parallel
|
2007-07-19 21:52:09 +00:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.icu-project.org
|
|
|
|
|
2012-06-22 09:51:22 +00:00
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
2007-07-19 21:52:09 +00:00
|
|
|
|
|
|
|
# ICU
|
|
|
|
# http://source.icu-project.org/repos/icu/icu/trunk/license.html
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2011-06-14 10:12:48 +00:00
|
|
|
|
2017-04-10 11:46:32 +00:00
|
|
|
WANTLIB= c m pthread ${LIBCXX}
|
2007-07-19 21:52:09 +00:00
|
|
|
|
2009-01-27 22:11:15 +00:00
|
|
|
MASTER_SITES= http://download.icu-project.org/files/icu4c/${VERSION}/ \
|
2008-10-31 09:56:15 +00:00
|
|
|
${MASTER_SITE_SOURCEFORGE:=icu/}
|
2007-07-19 21:52:09 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE= gnu
|
2016-03-11 20:28:21 +00:00
|
|
|
CONFIGURE_ARGS= --enable-static \
|
2009-01-27 22:11:15 +00:00
|
|
|
--disable-extras \
|
|
|
|
--disable-samples
|
|
|
|
|
2012-03-29 13:38:12 +00:00
|
|
|
SEPARATE_BUILD= Yes
|
2007-07-19 21:52:09 +00:00
|
|
|
WRKDIST= ${WRKDIR}/icu
|
|
|
|
WRKSRC= ${WRKDIST}/source
|
|
|
|
|
2014-10-17 08:35:10 +00:00
|
|
|
MAKE_FLAGS= SO_TARGET_VERSION=${SO_VERSION} \
|
2009-01-27 22:11:15 +00:00
|
|
|
SO_TARGET_VERSION_MAJOR=${SO_VERSION:R} \
|
|
|
|
PKGDATA_INVOKE_OPTS="SO_TARGET_VERSION=${SO_VERSION} SO_TARGET_VERSION_MAJOR=${SO_VERSION:R}"
|
|
|
|
|
2014-11-03 12:29:31 +00:00
|
|
|
# icupkg segfaults during the build
|
|
|
|
.if ${MACHINE_ARCH} == "arm"
|
|
|
|
CFLAGS += -O1 -fno-stack-protector
|
2015-12-29 12:38:27 +00:00
|
|
|
CXXFLAGS += -O1 -fno-stack-protector
|
2014-11-03 12:29:31 +00:00
|
|
|
.endif
|
|
|
|
|
2012-07-05 10:05:34 +00:00
|
|
|
.include <bsd.port.arch.mk>
|
2014-10-17 08:35:10 +00:00
|
|
|
PKG_ARGS += -Dbe=0 -Dle=0
|
|
|
|
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "powerpc"
|
|
|
|
CONFIGURE_ARGS += --with-data-packaging=archive
|
|
|
|
. if ${PROPERTIES:Mbe}
|
|
|
|
PKG_ARGS += -Dbe=1
|
2014-10-17 12:36:33 +00:00
|
|
|
TEST_ENV += ICU_DATA="${WRKBUILD}/data/out/build/icudt${MAJ_V}b"
|
2014-10-17 08:35:10 +00:00
|
|
|
. else
|
|
|
|
PKG_ARGS += -Dle=1
|
2014-10-17 12:36:33 +00:00
|
|
|
TEST_ENV += ICU_DATA="${WRKBUILD}/data/out/build/icudt${MAJ_V}l"
|
2014-10-17 08:35:10 +00:00
|
|
|
. endif
|
2012-07-05 10:05:34 +00:00
|
|
|
.endif
|
|
|
|
|
2015-06-01 06:58:00 +00:00
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=889781
|
|
|
|
.if ${PROPERTIES:Mbe}
|
|
|
|
CONFIGURE_ENV += CPPFLAGS="-DU_IS_BIG_ENDIAN=1"
|
|
|
|
.endif
|
|
|
|
|
2009-01-27 22:11:15 +00:00
|
|
|
post-install:
|
2010-04-05 21:40:24 +00:00
|
|
|
# Bug #7506, #7567 and #7574, libicutest is not installed
|
2011-06-14 10:12:48 +00:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/tools/ctestfw/libicutest.a ${PREFIX}/lib/
|
|
|
|
${INSTALL_DATA} \
|
|
|
|
${WRKBUILD}/tools/ctestfw/libicutest.so.${LIBicutest_VERSION} \
|
2016-04-11 09:46:48 +00:00
|
|
|
${PREFIX}/lib/
|
2010-04-05 21:40:24 +00:00
|
|
|
# who needs those annoying symlinks ?
|
2009-01-27 22:11:15 +00:00
|
|
|
find ${PREFIX}/lib -type l -name 'libicu*.so*' -exec rm '{}' \;
|
2007-07-19 21:52:09 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|