aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/apr/Makefile3
-rw-r--r--devel/apr/files/patch-apr_atomic.h20
-rw-r--r--devel/apr/files/patch-apr_hints.m412
-rw-r--r--devel/apr0/Makefile3
-rw-r--r--devel/apr0/files/patch-apr_atomic.h20
-rw-r--r--devel/apr0/files/patch-apr_hints.m412
-rw-r--r--devel/apr1/Makefile3
-rw-r--r--devel/apr1/files/patch-apr_atomic.h20
-rw-r--r--devel/apr1/files/patch-apr_hints.m412
-rw-r--r--devel/apr2/Makefile3
-rw-r--r--devel/apr2/files/patch-apr_atomic.h20
-rw-r--r--devel/apr2/files/patch-apr_hints.m412
12 files changed, 140 insertions, 0 deletions
diff --git a/devel/apr/Makefile b/devel/apr/Makefile
index b5c62bae6e21..323a0be16573 100644
--- a/devel/apr/Makefile
+++ b/devel/apr/Makefile
@@ -7,6 +7,7 @@
PORTNAME= apr
PORTVERSION= 0.9.4
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.apache.org/dist/apr/
DISTFILES= apr-${PORTVERSION}.tar.gz apr-util-${PORTVERSION}.tar.gz
@@ -24,6 +25,8 @@ USE_GMAKE= yes
USE_LIBTOOL_VER= 14
LIBTOOLFILES= # none
INSTALLS_SHLIB= yes
+CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" \
+ LIBS="${PTHREAD_LIBS}"
WRKSRC= ${WRKDIR}
diff --git a/devel/apr/files/patch-apr_atomic.h b/devel/apr/files/patch-apr_atomic.h
new file mode 100644
index 000000000000..c4e031f3ffd5
--- /dev/null
+++ b/devel/apr/files/patch-apr_atomic.h
@@ -0,0 +1,20 @@
+--- apr-0.9.4/include/apr_atomic.h.orig Sun Nov 2 01:57:08 2003
++++ apr-0.9.4/include/apr_atomic.h Sun Nov 2 02:20:37 2003
+@@ -206,10 +206,16 @@
+
+ #define apr_atomic_t apr_uint32_t
+ #define apr_atomic_add(mem, val) atomic_add_int(mem,val)
+-#define apr_atomic_dec(mem) atomic_subtract_int(mem,1)
+ #define apr_atomic_inc(mem) atomic_add_int(mem,1)
+ #define apr_atomic_set(mem, val) atomic_set_int(mem, val)
+ #define apr_atomic_read(mem) (*mem)
++
++#define apr_atomic_dec(mem) \
++({ \
++ atomic_subtract_int(mem,1); \
++ *(int *)mem; \
++ })
++
+
+ #elif (defined(__linux__) || defined(__EMX__)) && defined(__i386__) && !APR_FORCE_ATOMIC_GENERIC
+
diff --git a/devel/apr/files/patch-apr_hints.m4 b/devel/apr/files/patch-apr_hints.m4
new file mode 100644
index 000000000000..4adc12fafe34
--- /dev/null
+++ b/devel/apr/files/patch-apr_hints.m4
@@ -0,0 +1,12 @@
+--- apr-0.9.4/build/apr_hints.m4.orig Sun Nov 2 01:23:53 2003
++++ apr-0.9.4/build/apr_hints.m4 Sun Nov 2 01:24:44 2003
+@@ -135,9 +135,7 @@
+ APR_ADDTO(CFLAGS, [-funsigned-char])
+ ;;
+ esac
+- APR_SETIFNULL(enable_threads, [no])
+ APR_SETIFNULL(apr_lock_method, [USE_FLOCK_SERIALIZE])
+- APR_ADDTO(CPPFLAGS, [-D_REENTRANT -D_THREAD_SAFE])
+ ;;
+ *-next-nextstep*)
+ APR_SETIFNULL(CFLAGS, [-O])
diff --git a/devel/apr0/Makefile b/devel/apr0/Makefile
index b5c62bae6e21..323a0be16573 100644
--- a/devel/apr0/Makefile
+++ b/devel/apr0/Makefile
@@ -7,6 +7,7 @@
PORTNAME= apr
PORTVERSION= 0.9.4
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.apache.org/dist/apr/
DISTFILES= apr-${PORTVERSION}.tar.gz apr-util-${PORTVERSION}.tar.gz
@@ -24,6 +25,8 @@ USE_GMAKE= yes
USE_LIBTOOL_VER= 14
LIBTOOLFILES= # none
INSTALLS_SHLIB= yes
+CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" \
+ LIBS="${PTHREAD_LIBS}"
WRKSRC= ${WRKDIR}
diff --git a/devel/apr0/files/patch-apr_atomic.h b/devel/apr0/files/patch-apr_atomic.h
new file mode 100644
index 000000000000..c4e031f3ffd5
--- /dev/null
+++ b/devel/apr0/files/patch-apr_atomic.h
@@ -0,0 +1,20 @@
+--- apr-0.9.4/include/apr_atomic.h.orig Sun Nov 2 01:57:08 2003
++++ apr-0.9.4/include/apr_atomic.h Sun Nov 2 02:20:37 2003
+@@ -206,10 +206,16 @@
+
+ #define apr_atomic_t apr_uint32_t
+ #define apr_atomic_add(mem, val) atomic_add_int(mem,val)
+-#define apr_atomic_dec(mem) atomic_subtract_int(mem,1)
+ #define apr_atomic_inc(mem) atomic_add_int(mem,1)
+ #define apr_atomic_set(mem, val) atomic_set_int(mem, val)
+ #define apr_atomic_read(mem) (*mem)
++
++#define apr_atomic_dec(mem) \
++({ \
++ atomic_subtract_int(mem,1); \
++ *(int *)mem; \
++ })
++
+
+ #elif (defined(__linux__) || defined(__EMX__)) && defined(__i386__) && !APR_FORCE_ATOMIC_GENERIC
+
diff --git a/devel/apr0/files/patch-apr_hints.m4 b/devel/apr0/files/patch-apr_hints.m4
new file mode 100644
index 000000000000..4adc12fafe34
--- /dev/null
+++ b/devel/apr0/files/patch-apr_hints.m4
@@ -0,0 +1,12 @@
+--- apr-0.9.4/build/apr_hints.m4.orig Sun Nov 2 01:23:53 2003
++++ apr-0.9.4/build/apr_hints.m4 Sun Nov 2 01:24:44 2003
+@@ -135,9 +135,7 @@
+ APR_ADDTO(CFLAGS, [-funsigned-char])
+ ;;
+ esac
+- APR_SETIFNULL(enable_threads, [no])
+ APR_SETIFNULL(apr_lock_method, [USE_FLOCK_SERIALIZE])
+- APR_ADDTO(CPPFLAGS, [-D_REENTRANT -D_THREAD_SAFE])
+ ;;
+ *-next-nextstep*)
+ APR_SETIFNULL(CFLAGS, [-O])
diff --git a/devel/apr1/Makefile b/devel/apr1/Makefile
index b5c62bae6e21..323a0be16573 100644
--- a/devel/apr1/Makefile
+++ b/devel/apr1/Makefile
@@ -7,6 +7,7 @@
PORTNAME= apr
PORTVERSION= 0.9.4
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.apache.org/dist/apr/
DISTFILES= apr-${PORTVERSION}.tar.gz apr-util-${PORTVERSION}.tar.gz
@@ -24,6 +25,8 @@ USE_GMAKE= yes
USE_LIBTOOL_VER= 14
LIBTOOLFILES= # none
INSTALLS_SHLIB= yes
+CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" \
+ LIBS="${PTHREAD_LIBS}"
WRKSRC= ${WRKDIR}
diff --git a/devel/apr1/files/patch-apr_atomic.h b/devel/apr1/files/patch-apr_atomic.h
new file mode 100644
index 000000000000..c4e031f3ffd5
--- /dev/null
+++ b/devel/apr1/files/patch-apr_atomic.h
@@ -0,0 +1,20 @@
+--- apr-0.9.4/include/apr_atomic.h.orig Sun Nov 2 01:57:08 2003
++++ apr-0.9.4/include/apr_atomic.h Sun Nov 2 02:20:37 2003
+@@ -206,10 +206,16 @@
+
+ #define apr_atomic_t apr_uint32_t
+ #define apr_atomic_add(mem, val) atomic_add_int(mem,val)
+-#define apr_atomic_dec(mem) atomic_subtract_int(mem,1)
+ #define apr_atomic_inc(mem) atomic_add_int(mem,1)
+ #define apr_atomic_set(mem, val) atomic_set_int(mem, val)
+ #define apr_atomic_read(mem) (*mem)
++
++#define apr_atomic_dec(mem) \
++({ \
++ atomic_subtract_int(mem,1); \
++ *(int *)mem; \
++ })
++
+
+ #elif (defined(__linux__) || defined(__EMX__)) && defined(__i386__) && !APR_FORCE_ATOMIC_GENERIC
+
diff --git a/devel/apr1/files/patch-apr_hints.m4 b/devel/apr1/files/patch-apr_hints.m4
new file mode 100644
index 000000000000..4adc12fafe34
--- /dev/null
+++ b/devel/apr1/files/patch-apr_hints.m4
@@ -0,0 +1,12 @@
+--- apr-0.9.4/build/apr_hints.m4.orig Sun Nov 2 01:23:53 2003
++++ apr-0.9.4/build/apr_hints.m4 Sun Nov 2 01:24:44 2003
+@@ -135,9 +135,7 @@
+ APR_ADDTO(CFLAGS, [-funsigned-char])
+ ;;
+ esac
+- APR_SETIFNULL(enable_threads, [no])
+ APR_SETIFNULL(apr_lock_method, [USE_FLOCK_SERIALIZE])
+- APR_ADDTO(CPPFLAGS, [-D_REENTRANT -D_THREAD_SAFE])
+ ;;
+ *-next-nextstep*)
+ APR_SETIFNULL(CFLAGS, [-O])
diff --git a/devel/apr2/Makefile b/devel/apr2/Makefile
index b5c62bae6e21..323a0be16573 100644
--- a/devel/apr2/Makefile
+++ b/devel/apr2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= apr
PORTVERSION= 0.9.4
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.apache.org/dist/apr/
DISTFILES= apr-${PORTVERSION}.tar.gz apr-util-${PORTVERSION}.tar.gz
@@ -24,6 +25,8 @@ USE_GMAKE= yes
USE_LIBTOOL_VER= 14
LIBTOOLFILES= # none
INSTALLS_SHLIB= yes
+CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" \
+ LIBS="${PTHREAD_LIBS}"
WRKSRC= ${WRKDIR}
diff --git a/devel/apr2/files/patch-apr_atomic.h b/devel/apr2/files/patch-apr_atomic.h
new file mode 100644
index 000000000000..c4e031f3ffd5
--- /dev/null
+++ b/devel/apr2/files/patch-apr_atomic.h
@@ -0,0 +1,20 @@
+--- apr-0.9.4/include/apr_atomic.h.orig Sun Nov 2 01:57:08 2003
++++ apr-0.9.4/include/apr_atomic.h Sun Nov 2 02:20:37 2003
+@@ -206,10 +206,16 @@
+
+ #define apr_atomic_t apr_uint32_t
+ #define apr_atomic_add(mem, val) atomic_add_int(mem,val)
+-#define apr_atomic_dec(mem) atomic_subtract_int(mem,1)
+ #define apr_atomic_inc(mem) atomic_add_int(mem,1)
+ #define apr_atomic_set(mem, val) atomic_set_int(mem, val)
+ #define apr_atomic_read(mem) (*mem)
++
++#define apr_atomic_dec(mem) \
++({ \
++ atomic_subtract_int(mem,1); \
++ *(int *)mem; \
++ })
++
+
+ #elif (defined(__linux__) || defined(__EMX__)) && defined(__i386__) && !APR_FORCE_ATOMIC_GENERIC
+
diff --git a/devel/apr2/files/patch-apr_hints.m4 b/devel/apr2/files/patch-apr_hints.m4
new file mode 100644
index 000000000000..4adc12fafe34
--- /dev/null
+++ b/devel/apr2/files/patch-apr_hints.m4
@@ -0,0 +1,12 @@
+--- apr-0.9.4/build/apr_hints.m4.orig Sun Nov 2 01:23:53 2003
++++ apr-0.9.4/build/apr_hints.m4 Sun Nov 2 01:24:44 2003
+@@ -135,9 +135,7 @@
+ APR_ADDTO(CFLAGS, [-funsigned-char])
+ ;;
+ esac
+- APR_SETIFNULL(enable_threads, [no])
+ APR_SETIFNULL(apr_lock_method, [USE_FLOCK_SERIALIZE])
+- APR_ADDTO(CPPFLAGS, [-D_REENTRANT -D_THREAD_SAFE])
+ ;;
+ *-next-nextstep*)
+ APR_SETIFNULL(CFLAGS, [-O])