pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/xalan-c Make it build on DragonFly.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ecccfff7587f
branches:  trunk
changeset: 392748:ecccfff7587f
user:      hasso <hasso%pkgsrc.org@localhost>
date:      Fri May 08 12:30:47 2009 +0000

description:
Make it build on DragonFly.

diffstat:

 textproc/xalan-c/distinfo         |   5 +++-
 textproc/xalan-c/patches/patch-aa |  40 +++++++++++++++++++++++++++++++++++++++
 textproc/xalan-c/patches/patch-ac |  40 +++++++++++++++++++++++++++++++++++++++
 textproc/xalan-c/patches/patch-ad |  39 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 123 insertions(+), 1 deletions(-)

diffs (145 lines):

diff -r a2f3abdd8688 -r ecccfff7587f textproc/xalan-c/distinfo
--- a/textproc/xalan-c/distinfo Fri May 08 11:21:40 2009 +0000
+++ b/textproc/xalan-c/distinfo Fri May 08 12:30:47 2009 +0000
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.7 2008/01/24 07:17:33 xtraeme Exp $
+$NetBSD: distinfo,v 1.8 2009/05/08 12:30:47 hasso Exp $
 
 SHA1 (Xalan-C_1_10_0-src.tar.gz) = 3fc63045048176e0ab00ce8aa0d15b2c1e5d646b
 RMD160 (Xalan-C_1_10_0-src.tar.gz) = 537ba0be6a14e47eb4453c2d813b31ec416835ab
 Size (Xalan-C_1_10_0-src.tar.gz) = 1554940 bytes
+SHA1 (patch-aa) = f3cbda9268269c83b643e5d52f183948cfc45a99
 SHA1 (patch-ab) = e67667ba44e8f5cc9beb45a459f52ae1f3a5be59
+SHA1 (patch-ac) = 409cd366453b50d25c79def05c48ab45d2f77dd5
+SHA1 (patch-ad) = 9e892cf4dfacadd40b7dda2fcc94f65a785d92ff
diff -r a2f3abdd8688 -r ecccfff7587f textproc/xalan-c/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/xalan-c/patches/patch-aa Fri May 08 12:30:47 2009 +0000
@@ -0,0 +1,40 @@
+$NetBSD: patch-aa,v 1.5 2009/05/08 12:30:47 hasso Exp $
+
+--- runConfigure.orig  2009-05-08 14:32:39 +0300
++++ runConfigure       2009-05-08 14:33:38 +0300
+@@ -150,7 +150,7 @@ usage()
+     echo "runConfigure: Helper script to run \"configure\" for one of the supported platforms"
+     echo "Usage: runConfigure \"options\""
+     echo "       where options may be any of the following:"
+-    echo "       -p <platform> (accepts 'aix', 'linux', 'freebsd', 'netbsd', 'solaris',
++    echo "       -p <platform> (accepts 'aix', 'linux', 'freebsd', 'dragonfly', 'netbsd', 'solaris',
+             'hp-10', 'hp-11', 'hp-11-ia64', 'irix', 'tru64', 'macosx', 'os390', 'os400', 'cygwin')"
+     echo "       -c <C compiler name> (e.g. gcc, cc, xlc)"
+     echo "       -x <C++ compiler name> (e.g. g++, CC, xlC)"
+@@ -338,7 +338,7 @@ echo "Extra configure options: $configur
+ #
+ 
+ case $platform in
+-   aix | linux | freebsd | netbsd | solaris | hp-11 | hp-11-ia64 | irix | tru64 | macosx | os390 | os400 | cygwin)
++   aix | linux | freebsd | dragonfly | netbsd | solaris | hp-11 | hp-11-ia64 | irix | tru64 | macosx | os390 | os400 | cygwin)
+        # platform has been recognized
+        ;;
+    *)
+@@ -379,7 +379,7 @@ fi
+ 
+ #
+ #  aix | linux | hp-11 | hp-11-ia64 | solaris |
+-#  freebsd | netbsd | irix | openserver | unixware | os390 | os400 | ptx | tru64 | macosx
++#  freebsd | dragonfly | netbsd | irix | openserver | unixware | os390 | os400 | ptx | tru64 | macosx
+ #
+ if test $bitsToBuild = 64; then
+     bitstobuildDefines=" -DXML_BITSTOBUILD_64 "
+@@ -527,6 +527,8 @@ elif test $platform = "freebsd"; then
+       threadingLibs="-lpthread"
+       threadingDefines=""
+     fi
++elif test $platform = "dragonfly"; then
++    threadingLibs="-lpthread"
+ elif test $platform = "netbsd"; then
+     threadingLibs="-pthread -lpthread"
+ elif test $platform = "os400"; then
diff -r a2f3abdd8688 -r ecccfff7587f textproc/xalan-c/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/xalan-c/patches/patch-ac Fri May 08 12:30:47 2009 +0000
@@ -0,0 +1,40 @@
+$NetBSD: patch-ac,v 1.5 2009/05/08 12:30:47 hasso Exp $
+
+--- samples/runConfigure.orig  2009-05-08 14:24:05 +0300
++++ samples/runConfigure       2009-05-08 14:26:54 +0300
+@@ -35,7 +35,7 @@ usage()
+     echo "Usage: runConfigure \"options\""
+     echo "       where options may be any of the following:"
+     echo "       -p <platform> (accepts 'aix', 'linux', 'freebsd', 'netbsd', 'solaris',
+-            'hp-10', 'hp-11', 'irix', 'tru64', 'macosx')"
++            'hp-10', 'hp-11', 'irix', 'tru64', 'macosx', 'dragonfly')"
+     echo "       -c <C compiler name> (e.g. gcc, cc, xlc)"
+     echo "       -x <C++ compiler name> (e.g. g++, CC, xlC)"
+     echo "       -d (specifies that you want to build debug version)"
+@@ -156,7 +156,7 @@ echo "Extra configure options: $configur
+ #
+ 
+ case $platform in
+-   aix | linux | freebsd | netbsd | solaris | hp-10 | hp-11 | irix | tru64 | macosx)
++   aix | linux | freebsd | netbsd | solaris | hp-10 | hp-11 | irix | tru64 | macosx | dragonfly)
+        # platform has been recognized
+        ;;
+    *)
+@@ -193,7 +193,7 @@ fi
+ 
+ #
+ #  aix | linux | hp-11 | solaris |
+-#  hp-10 | freebsd | netbsd | irix | openserver | unixware | os400 | ptx | tru64 | macosx
++#  hp-10 | freebsd | netbsd | irix | openserver | unixware | os400 | ptx | tru64 | macosx | dragonfly
+ #
+ if test $bitsToBuild = 64; then
+     bitstobuildDefines=" -DXML_BITSTOBUILD_64 "
+@@ -304,6 +304,8 @@ elif test $platform = "netbsd"; then
+ elif test $platform = "hp-10"; then
+     threadingLibs="-lcma"
+     threadingDefines="-DXML_USE_DCE"
++elif test $platform = "dragonfly"; then
++    threadingLibs="-lpthread"
+ fi
+ 
+ 
diff -r a2f3abdd8688 -r ecccfff7587f textproc/xalan-c/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/xalan-c/patches/patch-ad Fri May 08 12:30:47 2009 +0000
@@ -0,0 +1,39 @@
+$NetBSD: patch-ad,v 1.5 2009/05/08 12:30:47 hasso Exp $
+
+--- Makefile.incl.in.orig      2009-05-08 14:46:22 +0300
++++ Makefile.incl.in   2009-05-08 14:46:58 +0300
+@@ -263,6 +263,34 @@ ifeq ($(PLATFORM), FREEBSD)
+   
+ endif
+ 
++#=============== DRAGONFLY SPECIFIC OPTIONS ======================
++
++ifeq ($(PLATFORM), DRAGONFLY)
++
++  SUPPORTED = TRUE
++  ALLLIBS = ${LIBS} -L/usr/local/lib
++  SHLIBSUFFIX=.so
++  PIC_OPTION = -fPIC
++
++  PLATFORM_COMPILE_OPTIONS = -D${PLATFORM} ${PIC_OPTION} ${WCSTOMBS}
++
++  # We need the ICU library if we are using the ICUBridge
++  ifdef XALAN_USE_ICU
++    LD_RPATH_PRE = -Wl,-rpath,
++    PLATFORM_LIB_LINK_OPTIONS = $(LD_RPATH_PRE)${ICUROOT}/lib
++    PLATFORM_LIB_LINK_OPTIONS += -licuuc -licudata -lgcc
++    ALLLIBS += -L${ICUROOT}
++  endif
++
++  CC1 = $(CXX) $(CXXFLAGS) $(PLATFORM_COMPILE_OPTIONS)
++  CC4 = $(CC) $(CFLAGS) $(PLATFORM_COMPILE_OPTIONS)
++  MAKE_SHARED = $(CXX) $(CXXFLAGS) -D${PLATFORM} -shared ${PIC_OPTION} ${LDFLAGS}
++  LINK = $(CXX) -D${PLATFORM} ${PIC_OPTION} ${LDFLAGS}
++  
++  MAKE_SHARED_LOC=$(MAKE_SHARED)
++  
++endif
++
+ #=============== NETBSD SPECIFIC OPTIONS ======================
+ 
+ ifeq ($(PLATFORM), NETBSD)



Home | Main Index | Thread Index | Old Index