blob: 2b8ef066bed2047923fbe873f920793698dca873 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# $NetBSD: Makefile,v 1.32 2004/04/13 16:39:11 sketch Exp $
#
DISTNAME= icu-2.8
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}/
MASTER_SITES= 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_BUILDLINK3= YES
USE_PKGINSTALL= YES
USE_LANGUAGES= c c++
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
CONVRTRS_EG= ${CONVRTRS_EG_DIR}/convrtrs.txt
CONVRTRS_EG_DIR= ${PREFIX}/share/examples/icu
SUPPORT_FILES+= ${CONVRTRS_EG} ${PKG_SYSCONFDIR}/convrtrs.txt
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} != "native"
CONFIGURE_ARGS+= --disable-threads
.endif
.include "../../mk/compiler.mk"
.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD"
PLIST_SUBST+= MH_NAME=mh-bsd-gcc
.elif ${OPSYS} == "Linux"
PLIST_SUBST+= MH_NAME=mh-linux
.elif ${OPSYS} == "SunOS"
. if !empty(CC_VERSION:Mgcc*)
PLIST_SUBST+= MH_NAME=mh-solaris-gcc
. else
PLIST_SUBST+= MH_NAME=mh-solaris
. endif
.elif ${OPSYS} == "IRIX"
PLIST_SUBST+= MH_NAME=mh-irix
.else
# For unknown systems, set the filename to mh-unknown so that the user
# gets a warning about missing files.
PLIST_SUBST+= MH_NAME=mh-unknown
.endif
post-install:
${INSTALL_DATA_DIR} ${CONVRTRS_EG_DIR}
${INSTALL_DATA} ${WRKSRC}/data/mappings/convrtrs.txt ${CONVRTRS_EG}
.include "../../mk/bsd.pkg.mk"
|