summaryrefslogtreecommitdiff
path: root/textproc/icu
diff options
context:
space:
mode:
authorryoon <ryoon>2014-07-18 10:28:11 +0000
committerryoon <ryoon>2014-07-18 10:28:11 +0000
commitb75e89ef297a461e1dfc86fdcbd3cd088ce4122d (patch)
tree7d9221e04c4a94e4c45064331d6fa8db7730d386 /textproc/icu
parent7e11d0db848819c5346516eaad40a28c10ff31d0 (diff)
downloadpkgsrc-b75e89ef297a461e1dfc86fdcbd3cd088ce4122d.tar.gz
Fix SCO OpenSrver 5.0.7/3.2 build.
Add configuration for SCOOSR5.
Diffstat (limited to 'textproc/icu')
-rw-r--r--textproc/icu/Makefile6
-rw-r--r--textproc/icu/distinfo11
-rw-r--r--textproc/icu/patches/patch-acinclude.m416
-rw-r--r--textproc/icu/patches/patch-common_uposixdefs.h21
-rw-r--r--textproc/icu/patches/patch-config_mh-scoosr577
-rw-r--r--textproc/icu/patches/patch-configure14
-rw-r--r--textproc/icu/patches/patch-configure.ac12
7 files changed, 137 insertions, 20 deletions
diff --git a/textproc/icu/Makefile b/textproc/icu/Makefile
index 9b39dec390e..8153023f963 100644
--- a/textproc/icu/Makefile
+++ b/textproc/icu/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.92 2014/06/08 09:09:01 obache Exp $
+# $NetBSD: Makefile,v 1.93 2014/07/18 10:28:11 ryoon Exp $
DISTNAME= icu4c-53_1-src
PKGNAME= ${DISTNAME:S/4c//:S/-src//:S/_/./g}
@@ -75,6 +75,10 @@ PLIST_SUBST+= MH_NAME=mh-darwin
PLIST_SUBST+= MH_NAME=mh-haiku
.elif ${OPSYS} == "IRIX"
PLIST_SUBST+= MH_NAME=mh-irix
+.elif ${OPSYS} == "Cygwin"
+PLIST_SUBST+= MH_NAME=mh-cygwin
+.elif ${OS_VARIANT} == "SCOOSR5"
+PLIST_SUBST+= MH_NAME=mh-scoosr5
.elif ${OPSYS} == "OSF1"
PLIST_SUBST+= MH_NAME=mh-alpha-osf
.elif ${OPSYS} == "QNX"
diff --git a/textproc/icu/distinfo b/textproc/icu/distinfo
index 5d10aa21310..fea82039060 100644
--- a/textproc/icu/distinfo
+++ b/textproc/icu/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.48 2014/06/08 09:08:19 obache Exp $
+$NetBSD: distinfo,v 1.49 2014/07/18 10:28:11 ryoon Exp $
SHA1 (icu4c-53_1-src.tgz) = 7eca017fdd101e676d425caaf28ef862d3655e0f
RMD160 (icu4c-53_1-src.tgz) = 9bd1b4bdc2010545c76a927dcf46049686beeab9
@@ -6,14 +6,15 @@ Size (icu4c-53_1-src.tgz) = 23218952 bytes
SHA1 (patch-aa) = dc4adcbd6e3115b0f58c7452f408fcab2dd77f45
SHA1 (patch-ab) = 32f0e4c241535e37e4cad9b871ed3d36b4184199
SHA1 (patch-ac) = e7cee161315321d2580074054d87714b55319886
-SHA1 (patch-acinclude.m4) = 40ddfb09cbc951928296c35e8a4303cf7fbe7e17
+SHA1 (patch-acinclude.m4) = a6993fefca751d7e63e60130cdcd69f3adbc0589
SHA1 (patch-ad) = c2a9469bf896b5f0702d5795c3b1c2b394893663
SHA1 (patch-af) = dcfbaf16844292a9ae57536ae2fb62fd1659d067
SHA1 (patch-common_putilimp.h) = a68faa97c2bffeecaca1586e26f5bbe48e71b262
SHA1 (patch-common_umutex.h) = 096d3e15ef7b84533456af4570ed70747a4ef70c
SHA1 (patch-common_unicode_platform.h) = 82786dff790782eb07cdc527061de33e771ec63c
-SHA1 (patch-common_uposixdefs.h) = abe1989ea4312702e5d0172b662409957b3e2d91
+SHA1 (patch-common_uposixdefs.h) = 02dedd10282961dec66673069796122b447dac33
SHA1 (patch-config_icu-config-bottom) = 168b89ee9180d4ae545125866ee91eb004010501
+SHA1 (patch-config_mh-scoosr5) = 47703dcc184f58c0382da3225f849424ab74d472
SHA1 (patch-config_mh-solaris-gcc) = f81fec8f0d232b9125c7ea7ec334b78872aa2025
-SHA1 (patch-configure) = 6888d11d4e0eb809c50780fec7fbff53861d1901
-SHA1 (patch-configure.ac) = 8a273518838ecb38378ca4577f8b93985e4e86b6
+SHA1 (patch-configure) = aae0978c1eb1b2bafa229ba0f2e9d581554f80b2
+SHA1 (patch-configure.ac) = ea7586eb8131ff53a483b5bd7ca162886e9045f1
diff --git a/textproc/icu/patches/patch-acinclude.m4 b/textproc/icu/patches/patch-acinclude.m4
index 4e573719d62..d5f7fc15377 100644
--- a/textproc/icu/patches/patch-acinclude.m4
+++ b/textproc/icu/patches/patch-acinclude.m4
@@ -1,11 +1,19 @@
-$NetBSD: patch-acinclude.m4,v 1.1 2013/12/04 21:02:23 richard Exp $
+$NetBSD: patch-acinclude.m4,v 1.2 2014/07/18 10:28:11 ryoon Exp $
Solaris seems to need -std=c99 with recent pkgsrc so keep it
and at the same time fix a typo involving CXXFLAGS.
---- acinclude.m4.orig 2013-10-04 20:54:58.000000000 +0000
+--- acinclude.m4.orig 2013-09-13 21:36:38.000000000 +0000
+++ acinclude.m4
-@@ -262,7 +262,7 @@ AC_DEFUN([AC_CHECK_64BIT_LIBS],
+@@ -69,6 +69,7 @@ powerpc*-*-linux*)
+ *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;;
+ *-*-nto*) icu_cv_host_frag=mh-qnx ;;
+ *-ncr-*) icu_cv_host_frag=mh-mpras ;;
++*-*-sco3.2v5*) icu_cv_host_frag=mh-scoosr5 ;;
+ *) icu_cv_host_frag=mh-unknown ;;
+ esac
+ ]
+@@ -262,7 +263,7 @@ AC_DEFUN([AC_CHECK_64BIT_LIBS],
if test "$CAN_BUILD_64" != yes; then
# Nope. back out changes.
CFLAGS="${CFLAGS_OLD}"
@@ -14,7 +22,7 @@ and at the same time fix a typo involving CXXFLAGS.
# 2. try xarch=v9 [deprecated]
## TODO: cross compile: the following won't work.
SPARCV9=`isainfo -n 2>&1 | grep sparcv9`
-@@ -457,9 +457,6 @@ AC_DEFUN([AC_CHECK_STRICT_COMPILE],
+@@ -457,9 +458,6 @@ AC_DEFUN([AC_CHECK_STRICT_COMPILE],
if test "$GCC" = yes
then
case "${host}" in
diff --git a/textproc/icu/patches/patch-common_uposixdefs.h b/textproc/icu/patches/patch-common_uposixdefs.h
index 22d34bc766a..85d20a822db 100644
--- a/textproc/icu/patches/patch-common_uposixdefs.h
+++ b/textproc/icu/patches/patch-common_uposixdefs.h
@@ -1,12 +1,23 @@
-$NetBSD: patch-common_uposixdefs.h,v 1.1 2012/05/08 16:10:39 hans Exp $
+$NetBSD: patch-common_uposixdefs.h,v 1.2 2014/07/18 10:28:11 ryoon Exp $
---- common/uposixdefs.h.orig 2012-04-05 22:46:18.000000000 +0200
-+++ common/uposixdefs.h 2012-05-08 15:28:20.516380420 +0200
-@@ -52,9 +52,11 @@
+--- common/uposixdefs.h.orig 2013-10-04 20:49:24.000000000 +0000
++++ common/uposixdefs.h
+@@ -42,8 +42,10 @@
+ * and define _XOPEN_SOURCE to different values depending on __STDC_VERSION__.
+ * In C++ source code (e.g., putil.cpp), __STDC_VERSION__ is not defined at all.
+ */
++#if !defined(_SCO_DS)
+ # define _XOPEN_SOURCE 600
+ #endif
++#endif
+
+ /*
+ * Make sure things like readlink and such functions work.
+@@ -52,9 +54,11 @@
*
* z/OS needs this definition for timeval and to get usleep.
*/
-+#ifndef __sun
++#if !defined(__sun) && !defined(_SCO_DS)
#if !defined(_XOPEN_SOURCE_EXTENDED)
# define _XOPEN_SOURCE_EXTENDED 1
#endif
diff --git a/textproc/icu/patches/patch-config_mh-scoosr5 b/textproc/icu/patches/patch-config_mh-scoosr5
new file mode 100644
index 00000000000..ff317079983
--- /dev/null
+++ b/textproc/icu/patches/patch-config_mh-scoosr5
@@ -0,0 +1,77 @@
+$NetBSD: patch-config_mh-scoosr5,v 1.1 2014/07/18 10:28:11 ryoon Exp $
+
+--- config/mh-scoosr5.orig 2014-03-07 11:43:35.000000000 +0000
++++ config/mh-scoosr5
+@@ -0,0 +1,72 @@
++## -*-makefile-*-
++## SCO OpenServer 5.0.7/3.2-specific setup using gcc
++## Copyright (c) 1999-2010, International Business Machines Corporation and
++## others. All Rights Reserved.
++
++## Flags for position independent code
++SHAREDLIBCFLAGS = -fPIC
++SHAREDLIBCXXFLAGS = -fPIC
++SHAREDLIBCPPFLAGS = -DPIC
++
++## Commands to generate dependency files
++GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS) $(CFLAGS)
++GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS) $(CXXFLAGS)
++
++## These are the library specific LDFLAGS
++LDFLAGSICUDT=-nodefaultlibs -nostdlib
++
++## Additional flags when building libraries and with threads
++THREADSCPPFLAGS = -D_REENTRANT
++
++## Compiler switch to embed a runtime search path
++LD_RPATH= -R'$$'ORIGIN
++LD_RPATH_PRE= -R
++
++## Compiler switch to embed a library name
++LD_SONAME = -h $(notdir $(MIDDLE_SO_TARGET))
++
++## Shared library options
++LD_SOOPTIONS= -Wl,-Bsymbolic
++
++## Shared object suffix
++SO= so
++## Non-shared intermediate object suffix
++STATIC_O = ao
++
++## Compilation rules
++%.$(STATIC_O): $(srcdir)/%.c
++ $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
++%.o: $(srcdir)/%.c
++ $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
++
++%.$(STATIC_O): $(srcdir)/%.cpp
++ $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
++%.o: $(srcdir)/%.cpp
++ $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
++
++
++## Dependency rules
++%.d : $(srcdir)/%.c
++ @echo "generating dependency information for $<"
++ @$(SHELL) -ec '$(GEN_DEPS.c) $< \
++ | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
++ [ -s $@ ] || rm -f $@'
++
++%.d : $(srcdir)/%.cpp
++ @echo "generating dependency information for $<"
++ @$(SHELL) -ec '$(GEN_DEPS.cc) $< \
++ | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
++ [ -s $@ ] || rm -f $@'
++
++## Versioned libraries rules
++
++%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
++ $(RM) $@ && ln -s ${<F} $@
++%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
++ $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
++
++## Remove shared library 's'
++STATIC_PREFIX_WHEN_USED =
++STATIC_PREFIX =
++
++## End SCO OpenServer 5.0.7/3.2-specific setup
diff --git a/textproc/icu/patches/patch-configure b/textproc/icu/patches/patch-configure
index 5229a202e4c..3bcf9034f25 100644
--- a/textproc/icu/patches/patch-configure
+++ b/textproc/icu/patches/patch-configure
@@ -1,4 +1,4 @@
-$NetBSD: patch-configure,v 1.4 2014/05/05 21:25:11 ryoon Exp $
+$NetBSD: patch-configure,v 1.5 2014/07/18 10:28:11 ryoon Exp $
Portability fix.
Solaris seems to need -std=c99 with recent pkgsrc so keep it
@@ -25,7 +25,15 @@ and at the same time fix a typo involving CXXFLAGS.
# 2. try xarch=v9 [deprecated]
## TODO: cross compile: the following won't work.
SPARCV9=`isainfo -n 2>&1 | grep sparcv9`
-@@ -5452,6 +5449,29 @@ if test "x$ac_cv_header_elf_h" = "xyes";
+@@ -4942,6 +4939,7 @@ rm -f core conftest.err conftest.$ac_obj
+ *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;;
+ *-*-nto*) icu_cv_host_frag=mh-qnx ;;
+ *-ncr-*) icu_cv_host_frag=mh-mpras ;;
++-*-sco3.2v5*) icu_cv_host_frag=mh-scoosr5 ;;
+ *) icu_cv_host_frag=mh-unknown ;;
+ esac
+
+@@ -5452,6 +5450,29 @@ if test "x$ac_cv_header_elf_h" = "xyes";
CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
fi
@@ -55,7 +63,7 @@ and at the same time fix a typo involving CXXFLAGS.
U_ENABLE_DYLOAD=1
enable=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins" >&5
-@@ -7442,13 +7462,13 @@ fi
+@@ -7442,13 +7463,13 @@ fi
# Now that we're done using CPPFLAGS etc. for tests, we can change it
# for build.
diff --git a/textproc/icu/patches/patch-configure.ac b/textproc/icu/patches/patch-configure.ac
index 904183763d7..fa193d5c6e8 100644
--- a/textproc/icu/patches/patch-configure.ac
+++ b/textproc/icu/patches/patch-configure.ac
@@ -1,4 +1,4 @@
-$NetBSD: patch-configure.ac,v 1.2 2014/05/05 21:25:11 ryoon Exp $
+$NetBSD: patch-configure.ac,v 1.3 2014/07/18 10:28:11 ryoon Exp $
* Detect NetBSD libatomic
* test(1) portability fix
@@ -24,7 +24,15 @@ $NetBSD: patch-configure.ac,v 1.2 2014/05/05 21:25:11 ryoon Exp $
U_ENABLE_DYLOAD=1
enable=yes
AC_MSG_CHECKING([whether to enable dynamic loading of plugins])
-@@ -1249,13 +1261,13 @@ fi
+@@ -1232,6 +1244,7 @@ case "${host}" in
+ *-*-beos) platform=U_BEOS ;;
+ *-*-irix*) platform=U_IRIX ;;
+ *-ncr-*) platform=U_MPRAS ;;
++ *-*-sco3.2v5*) platform=USCOOSR5 ;;
+ *) platform=U_UNKNOWN_PLATFORM ;;
+ esac
+ AC_SUBST(ICUDATA_CHAR)
+@@ -1249,13 +1262,13 @@ fi
# Now that we're done using CPPFLAGS etc. for tests, we can change it
# for build.