diff options
author | hasso <hasso@pkgsrc.org> | 2009-05-08 12:30:47 +0000 |
---|---|---|
committer | hasso <hasso@pkgsrc.org> | 2009-05-08 12:30:47 +0000 |
commit | 08dcac07ca65485e7acf0deae2b4af7e0fd42edd (patch) | |
tree | 28061504f968e8afd0ebf81cd166e45e8bc610b8 | |
parent | 7d95f16f503ad619a53a6979ae911e095e0c2e2e (diff) | |
download | pkgsrc-08dcac07ca65485e7acf0deae2b4af7e0fd42edd.tar.gz |
Make it build on DragonFly.
-rw-r--r-- | textproc/xalan-c/distinfo | 5 | ||||
-rw-r--r-- | textproc/xalan-c/patches/patch-aa | 40 | ||||
-rw-r--r-- | textproc/xalan-c/patches/patch-ac | 40 | ||||
-rw-r--r-- | textproc/xalan-c/patches/patch-ad | 39 |
4 files changed, 123 insertions, 1 deletions
diff --git a/textproc/xalan-c/distinfo b/textproc/xalan-c/distinfo index be979ae0e85..a19c9272a58 100644 --- a/textproc/xalan-c/distinfo +++ b/textproc/xalan-c/distinfo @@ -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 --git a/textproc/xalan-c/patches/patch-aa b/textproc/xalan-c/patches/patch-aa new file mode 100644 index 00000000000..be3ca9f8f2f --- /dev/null +++ b/textproc/xalan-c/patches/patch-aa @@ -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 --git a/textproc/xalan-c/patches/patch-ac b/textproc/xalan-c/patches/patch-ac new file mode 100644 index 00000000000..f116d1fce9c --- /dev/null +++ b/textproc/xalan-c/patches/patch-ac @@ -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 --git a/textproc/xalan-c/patches/patch-ad b/textproc/xalan-c/patches/patch-ad new file mode 100644 index 00000000000..37abd674915 --- /dev/null +++ b/textproc/xalan-c/patches/patch-ad @@ -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) |