summaryrefslogtreecommitdiff
path: root/package/srelay/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-12-12 00:43:43 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-12 00:43:43 +0100
commit965bf8becf63a12169cd964973e3a56fd96e21fe (patch)
tree5c9459da5196712c9153304804a1b44510b6e00b /package/srelay/patches
parent070cac9d32fa7a0f7f4d52eddec901d248cdfae3 (diff)
a bunch of FreeBSD compatibility patches
Diffstat (limited to 'package/srelay/patches')
-rw-r--r--package/srelay/patches/01-cross_compile.patch12
-rw-r--r--package/srelay/patches/patch-configure48
-rw-r--r--package/srelay/patches/patch-configure_in20
3 files changed, 48 insertions, 32 deletions
diff --git a/package/srelay/patches/01-cross_compile.patch b/package/srelay/patches/01-cross_compile.patch
deleted file mode 100644
index 03d7fa215..000000000
--- a/package/srelay/patches/01-cross_compile.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urN srelay-0.4.6/configure srelay-0.4.6.new/configure
---- srelay-0.4.6.orig/configure 2003-04-14 07:36:15.000000000 +0200
-+++ srelay-0.4.6/configure 2009-06-05 18:03:20.000000000 +0200
-@@ -1395,7 +1395,7 @@ _ACEOF
- ;;
- linux*)
- case "$build_cpu" in
-- i*86)
-+ i*86 | mips* | powerpc* | sparc* | x86_64*)
- OS=LINUX
- cat >>confdefs.h <<\_ACEOF
- #define LINUX 1
diff --git a/package/srelay/patches/patch-configure b/package/srelay/patches/patch-configure
new file mode 100644
index 000000000..b4a4e5999
--- /dev/null
+++ b/package/srelay/patches/patch-configure
@@ -0,0 +1,48 @@
+--- srelay-0.4.7b2.orig/configure 2009-08-30 15:06:32.000000000 +0200
++++ srelay-0.4.7b2/configure 2009-12-11 23:56:31.000000000 +0100
+@@ -1858,43 +1858,11 @@ test -n "$target_alias" &&
+ NONENONEs,x,x, &&
+ program_prefix=${target_alias}-
+
+-case "$build_os" in
+- freebsd*)
+- OS=FREEBSD
+- cat >>confdefs.h <<\_ACEOF
+-#define FREEBSD 1
+-_ACEOF
+-
+- ;;
+- solaris*)
+- OS=SOLARIS
+- cat >>confdefs.h <<\_ACEOF
+-#define SOLARIS 1
+-_ACEOF
+-
+- ;;
+- linux*)
+- case "$build_cpu" in
+- i*86)
+- OS=LINUX
+- cat >>confdefs.h <<\_ACEOF
++OS=LINUX
++cat >>confdefs.h <<\_ACEOF
+ #define LINUX 1
+ _ACEOF
+
+- ;;
+- esac
+- ;;
+- darwin*)
+- OS=MACOSX
+- cat >>confdefs.h <<\_ACEOF
+-#define MACOSX 1
+-_ACEOF
+-
+- ;;
+-esac
+-
+-CFLAGS="$CFLAGS -O2 -Wall"
+-
+ if test -d /usr/local/lib; then
+ LIBS="-L/usr/local/lib $LIBS"
+ fi
diff --git a/package/srelay/patches/patch-configure_in b/package/srelay/patches/patch-configure_in
deleted file mode 100644
index 46e2a9aeb..000000000
--- a/package/srelay/patches/patch-configure_in
+++ /dev/null
@@ -1,20 +0,0 @@
---- srelay-0.4.6.orig/configure.in 2003-04-14 07:36:15.000000000 +0200
-+++ srelay-0.4.6/configure.in 2009-06-05 18:11:26.000000000 +0200
-@@ -15,7 +15,7 @@ case "$build_os" in
- ;;
- linux*)
- case "$build_cpu" in
-- i*86)
-+ i*86 | mips* | powerpc* | sparc* | x86_64*)
- OS=LINUX
- AC_DEFINE(LINUX)
- ;;
-@@ -23,7 +23,7 @@ case "$build_os" in
- ;;
- esac
-
--CFLAGS="$CFLAGS -O2 -Wall"
-+CFLAGS="$CFLAGS -Wall"
- LDFLAGS="$LDFLAGS -s"
-
- dnl Local libralies.