summaryrefslogtreecommitdiff
path: root/textproc/icu/Makefile
blob: 56fd129024a54b576f7a6df6a5d09bf49f8f9b50 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# $NetBSD: Makefile,v 1.28 2004/01/24 15:13:20 grant Exp $
#

DISTNAME=	icu-2.6.1
CATEGORIES=	textproc
#
# The IBM site has long delays that can cause ftp to timeout.  Use the
# backup FTP repositories in preference to the IBM one.
#
MASTER_SITES=	${MASTER_SITE_BACKUP} \
		ftp://www-126.ibm.com/pub/icu/${PKGVERSION}/
EXTRACT_SUFX=	.tgz

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://oss.software.ibm.com/icu/
COMMENT=	Robust and full-featured Unicode services

WRKSRC=			${WRKDIR}/${PKGBASE}/source
USE_GNU_TOOLS+=		make
USE_BUILDLINK2=		YES
USE_PKGINSTALL=		YES
TEST_TARGET=		check

GNU_CONFIGURE=		YES
CONFIGURE_ARGS+=	--enable-static

# ICU's configure script will automatically append "/icu" to the sysconfdir.
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFBASEDIR}
PKG_SYSCONFSUBDIR=	icu

SUPPORT_FILES+=		${PREFIX}/share/examples/icu/convrtrs.txt \
			${PKG_SYSCONFDIR}/convrtrs.txt

.include "../../mk/pthread.buildlink2.mk"

.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} != "native"
CONFIGURE_ARGS+=	--disable-threads
.endif

.include "../../mk/bsd.prefs.mk"

.if !empty(CC_VERSION:Mgcc-3*)
CXXFLAGS:=		${CXXFLAGS:C/-O[0-9]*/-O/g}
CFLAGS:=		${CFLAGS:C/-Os/-O/g}
CXXFLAGS:=		${CXXFLAGS:C/-Os/-O/g}
CFLAGS:=		${CFLAGS:C/-O[0-9]*/-O/g}
CONFIGURE_ENV+=		CXXFLAGS="${CXXFLAGS}"
CONFIGURE_ENV+=		CFLAGS="${CFLAGS}"
.endif

.include "../../mk/bsd.pkg.mk"