summaryrefslogtreecommitdiff
path: root/x11/qt3-libs/patches
diff options
context:
space:
mode:
authorskrll <skrll@pkgsrc.org>2002-05-29 19:09:55 +0000
committerskrll <skrll@pkgsrc.org>2002-05-29 19:09:55 +0000
commit0654af6a3ceefade5c7bc444bab5d006081d6cf7 (patch)
tree8df4793c06467f22851cfd641d42319c0c58af54 /x11/qt3-libs/patches
parent82104f6d023ae99eacc8d4e5a9ef5023792303cc (diff)
downloadpkgsrc-0654af6a3ceefade5c7bc444bab5d006081d6cf7.tar.gz
Various changes to help with KDE3.
o Enable thread support using pth-syscall and nathanw_sa. The later has problems which are being worked on. o Restructure the build of certain plugins so that qt3-libs comes with jpeg and mng support. o Introduce a BUILDLINK_DEPENDS_METHOD.qt3-tools variable that when set to build means we don't get a full dependency on qt3-tools.
Diffstat (limited to 'x11/qt3-libs/patches')
-rw-r--r--x11/qt3-libs/patches/patch-aa13
-rw-r--r--x11/qt3-libs/patches/patch-ad28
2 files changed, 28 insertions, 13 deletions
diff --git a/x11/qt3-libs/patches/patch-aa b/x11/qt3-libs/patches/patch-aa
deleted file mode 100644
index 062011360ef..00000000000
--- a/x11/qt3-libs/patches/patch-aa
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-aa,v 1.2 2002/05/04 13:30:10 drochner Exp $
-
---- Makefile.orig Mon Mar 18 05:58:44 2002
-+++ Makefile Fri May 3 17:38:21 2002
-@@ -63,7 +63,7 @@
- cd plugins/src && $(MAKE) uninstall
- plugins-install: sub-plugins
- cd plugins/src && $(MAKE) install
--sub-plugins: sub-src .qmake.cache FORCE
-+sub-plugins: .qmake.cache FORCE
- cd plugins/src && $(MAKE)
-
- #tutorials
diff --git a/x11/qt3-libs/patches/patch-ad b/x11/qt3-libs/patches/patch-ad
new file mode 100644
index 00000000000..c00ab0b972f
--- /dev/null
+++ b/x11/qt3-libs/patches/patch-ad
@@ -0,0 +1,28 @@
+$NetBSD: patch-ad,v 1.1 2002/05/29 19:09:56 skrll Exp $
+
+--- src/kernel/qthread_unix.cpp.orig Fri May 24 16:43:12 2002
++++ src/kernel/qthread_unix.cpp
+@@ -87,6 +87,7 @@
+ // helpers
+ #define Q_THREAD_SELF() pthread_self()
+ #define Q_THREAD_EXIT(a) pthread_exit((a))
++#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING)
+ #define Q_THREAD_CREATE(a) pthread_attr_t attr; \
+ pthread_attr_init(&attr); \
+ pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED); \
+@@ -94,6 +95,15 @@
+ (a) = pthread_create(&thread_id, &attr, start_thread, \
+ (void *) that); \
+ pthread_attr_destroy(&attr);
++#else
++#define Q_THREAD_CREATE(a) pthread_attr_t attr; \
++ pthread_attr_init(&attr); \
++ pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); \
++ (a) = pthread_create(&thread_id, &attr, start_thread, \
++ (void *) that); \
++ pthread_attr_destroy(&attr);
++#endif
++
+ #endif // Q_OS_SOLARIS
+
+