aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2005-08-23 00:19:30 +0800
committergarga <garga@FreeBSD.org>2005-08-23 00:19:30 +0800
commit5edab947ac8f6bda44b552bcf71396c4abc635ce (patch)
tree05d1cc9819d780b8c3823eac102f1d4557379c9e
parentb8b600256578655cb1bb9f35268bbff6d674e083 (diff)
downloadfreebsd-ports-gnome-5edab947ac8f6bda44b552bcf71396c4abc635ce.tar.gz
freebsd-ports-gnome-5edab947ac8f6bda44b552bcf71396c4abc635ce.tar.zst
freebsd-ports-gnome-5edab947ac8f6bda44b552bcf71396c4abc635ce.zip
- Unbreak it on FreeBSD >= 6.x
PR: ports/85088 Submitted by: Johan van Selst <johans@stack.nl> Approved by: portmgr (linimon)
-rw-r--r--devel/ngpt/Makefile12
-rw-r--r--devel/ngpt/files/patch-pthread.h.in10
-rw-r--r--devel/ngpt/files/patch-uthread_spinlock.c14
3 files changed, 26 insertions, 10 deletions
diff --git a/devel/ngpt/Makefile b/devel/ngpt/Makefile
index f32416990959..c32a48d79c49 100644
--- a/devel/ngpt/Makefile
+++ b/devel/ngpt/Makefile
@@ -21,14 +21,6 @@ CONFIGURE_ARGS= --enable-tests=no --enable-maintainer=no --enable-pthread \
--disable-kernel-patch
USE_GMAKE= yes
-.include <bsd.port.pre.mk>
+ONLY_FOR_ARCHS= amd64 i386
-.if ${ARCH} != "i386" && ${ARCH} != "amd64"
-BROKEN= "Does not compile on !i386 and !amd64"
-.endif
-
-.if ${OSVERSION} >= 600031
-BROKEN= "Does not compile on FreeBSD >= 6.0"
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/ngpt/files/patch-pthread.h.in b/devel/ngpt/files/patch-pthread.h.in
new file mode 100644
index 000000000000..993d3dfb4979
--- /dev/null
+++ b/devel/ngpt/files/patch-pthread.h.in
@@ -0,0 +1,10 @@
+--- pthread.h.in.orig Thu Aug 18 13:49:14 2005
++++ pthread.h.in Thu Aug 18 13:49:07 2005
+@@ -50,6 +50,7 @@
+ #define _SYS_PTHREAD_H_
+ #define SYS_PTHREAD_INCLUDED
+ #define _SYS_PTHREAD_INCLUDED
++#define _SYS__PTHREADTYPES_H_
+ #ifdef _PTHREAD_PRIVATE
+ #define BITS_PTHREADTYPES_H
+ #define _BITS_PTHREADTYPES_H
diff --git a/devel/ngpt/files/patch-uthread_spinlock.c b/devel/ngpt/files/patch-uthread_spinlock.c
new file mode 100644
index 000000000000..5d1fa80cffa9
--- /dev/null
+++ b/devel/ngpt/files/patch-uthread_spinlock.c
@@ -0,0 +1,14 @@
+--- uthread_spinlock.c.orig Thu Aug 18 13:45:38 2005
++++ uthread_spinlock.c Thu Aug 18 13:44:36 2005
+@@ -33,10 +33,10 @@
+ *
+ */
+
++#include <pthread.h>
+ #include <stdio.h>
+ #include <sched.h>
+ #include <unistd.h>
+-#include <pthread.h>
+ #include <string.h>
+ #include "spinlock.h"
+