summaryrefslogtreecommitdiff
path: root/lang/STk/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2006-01-12 15:04:18 +0000
committerjoerg <joerg>2006-01-12 15:04:18 +0000
commitd48aa143ed1c45bfb0963e242432767889c2114a (patch)
tree9b925d575af65ef5dd3e9f37eae800d9271fcd4e /lang/STk/patches
parentba76ff7a455bb5841e44b14838a70a1f8cecb6b3 (diff)
downloadpkgsrc-d48aa143ed1c45bfb0963e242432767889c2114a.tar.gz
Add DragonFly supoprt. On FreeBSD, dlerror() can be used as well.
Diffstat (limited to 'lang/STk/patches')
-rw-r--r--lang/STk/patches/patch-ac26
-rw-r--r--lang/STk/patches/patch-ae18
-rw-r--r--lang/STk/patches/patch-an13
3 files changed, 44 insertions, 13 deletions
diff --git a/lang/STk/patches/patch-ac b/lang/STk/patches/patch-ac
index db197bdbf58..97c6b7ebb7b 100644
--- a/lang/STk/patches/patch-ac
+++ b/lang/STk/patches/patch-ac
@@ -1,8 +1,8 @@
-$NetBSD: patch-ac,v 1.3 2003/05/10 00:26:34 jtb Exp $
+$NetBSD: patch-ac,v 1.4 2006/01/12 15:04:18 joerg Exp $
---- configure.orig
+--- configure.orig 1999-09-26 15:02:14.000000000 +0000
+++ configure
-@@ -565,7 +565,11 @@
+@@ -565,7 +565,11 @@ echo "#define STK_VERSION \"$VERSION\""
# determine the kind of the machine which is running this script
os=`uname -s`
version=`uname -r`
@@ -15,16 +15,28 @@ $NetBSD: patch-ac,v 1.3 2003/05/10 00:26:34 jtb Exp $
case $os in
Linux*)
-@@ -691,7 +695,7 @@
+@@ -580,6 +584,9 @@ case $os in
+ case $machine in
+ i*86) machine=ix86;;
+ esac;;
++ DragonFly*)
++ version=${OS_VERSION}
++ ;;
+ SunOS*)
+ case $version in
+ 4.1.*) version=4.1.X;;
+@@ -691,8 +698,9 @@ case $MACHINE in
ULTRIX*) OS=ULTRIX;;
HP*) OS=HPUX; DFLGS="$DFLGS -Dhpux";;
Linux*) OS=LINUX;;
- NetBSD-1*) OS=NETBSD1;;
+ NetBSD*) OS=NETBSD;;
FreeBSD*) OS=FREEBSD;;
++ DragonFly*) OS=DRAGONFLY;;
IRIX-5*) OS=IRIX5;;
IRIX*-6*) OS=IRIX5;;
-@@ -1874,7 +1878,7 @@
+ CYGWIN32*) OS=WIN32; FLAVOR=win; DFLGS="$DFLGS -DCYGWIN32";;
+@@ -1878,7 +1886,7 @@ fi
if test "$x_libraries" != ""
then
@@ -33,7 +45,7 @@ $NetBSD: patch-ac,v 1.3 2003/05/10 00:26:34 jtb Exp $
fi
XLIBSW="$XLIBSW $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
-@@ -2269,11 +2273,12 @@
+@@ -2273,11 +2281,12 @@ case $OS in
SH_LDFLAGS="-shared -o"
SH_LOADER="ld"
SH_SUFFIX='so' ;;
@@ -42,7 +54,7 @@ $NetBSD: patch-ac,v 1.3 2003/05/10 00:26:34 jtb Exp $
- SH_LDFLAGS="-Bshareable -o"
- SH_LOADER="ld"
- SH_SUFFIX='so';;
-+ NETBSD)
++ NETBSD | DRAGONFLY)
+ SH_CCFLAGS="-fPIC"
+ SH_LDFLAGS="-shared -o"
+ SH_LOADER="cc"
diff --git a/lang/STk/patches/patch-ae b/lang/STk/patches/patch-ae
index d51faa407c5..67d7507165e 100644
--- a/lang/STk/patches/patch-ae
+++ b/lang/STk/patches/patch-ae
@@ -1,8 +1,8 @@
-$NetBSD: patch-ae,v 1.1 2003/05/10 00:26:34 jtb Exp $
+$NetBSD: patch-ae,v 1.2 2006/01/12 15:04:18 joerg Exp $
---- Src/dynload.c.orig
+--- Src/dynload.c.orig 1999-09-26 15:02:14.000000000 +0000
+++ Src/dynload.c
-@@ -46,11 +46,15 @@
+@@ -46,16 +46,19 @@
# include <dld.h>
#endif
@@ -19,16 +19,22 @@ $NetBSD: patch-ae,v 1.1 2003/05/10 00:26:34 jtb Exp $
# define DLOPEN_COMPATIBLE
#endif
-@@ -172,7 +176,7 @@
+-#if defined(FREEBSD)
+-# define dlerror() "error unknown" /* dlerror() isn't implemented in FreeBSD too */
++#if defined(FREEBSD) || defined(DRAGONFLY)
+ # define DLOPEN_COMPATIBLE
+ #endif
+
+@@ -172,7 +175,7 @@ static void load_and_call(char *path, ch
#endif /* MSC_VER WIN32 */
-#if defined(SUNOS4) || defined(SUNOS5) || defined(NETBSD1) || defined(FREEBSD) || defined(IRIX5) || defined(OSF1) ||defined(LINUX_ELF)
-+#if defined(SUNOS4) || defined(SUNOS5) || defined(NETBSD) || defined(FREEBSD) || defined(IRIX5) || defined(OSF1) ||defined(LINUX_ELF)
++#if defined(SUNOS4) || defined(SUNOS5) || defined(NETBSD) || defined(FREEBSD) || defined(IRIX5) || defined(OSF1) ||defined(LINUX_ELF) || defined(DRAGONFLY)
#define MAKE_STAT_PTR(p) (STk_make_Cpointer(ANONYMOUS_STAT_PTR_ID, (p), TRUE))
#define MAKE_DYN_PTR(p) (STk_make_Cpointer(ANONYMOUS_DYN_PTR_ID, (p), FALSE))
-@@ -360,7 +364,7 @@
+@@ -360,7 +363,7 @@ void STk_load_object_file(char *path)
for (p = path, slash = p-1; *p; p++) /* Find position of last '/' */
if (*p == '/') slash = p;
diff --git a/lang/STk/patches/patch-an b/lang/STk/patches/patch-an
new file mode 100644
index 00000000000..cb6254d0294
--- /dev/null
+++ b/lang/STk/patches/patch-an
@@ -0,0 +1,13 @@
+$NetBSD: patch-an,v 1.1 2006/01/12 15:04:18 joerg Exp $
+
+--- Src/dump.c.orig 2006-01-12 14:35:48.000000000 +0000
++++ Src/dump.c
+@@ -22,7 +22,7 @@
+
+ int STk_dumped_core = 0;
+
+-#if defined (SUNOS4) || defined(FREEBSD) || defined(LINUX)
++#if defined (SUNOS4) || defined(FREEBSD) || defined(LINUX) || defined(DRAGONFLY)
+ static caddr_t current_break = (caddr_t) -1;
+ static long data_size = 0;
+ static long data_start = 0;