summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-10-12 17:52:26 +0000
committerjoerg <joerg@pkgsrc.org>2005-10-12 17:52:26 +0000
commit471536f0c0e292620ba6d3391d4279d8df99e50c (patch)
tree918d6e79d744fbd02575409f317db75b99c00c0c /x11
parent267b973fcf60a366004f87da077951d7ce4f4bb2 (diff)
downloadpkgsrc-471536f0c0e292620ba6d3391d4279d8df99e50c.tar.gz
Add DragonFly support. We need to override the libtool magic, otherwise
libltdl would be used and the startup time be in the dimensions of 10 minutes. Fix the detection of isnan and isinf, both are type-variadic macros under C99 and don't have to exist as external symbols. NetBSD is protected by the compatibily symbols, but would fail the test if they ever go away.
Diffstat (limited to 'x11')
-rw-r--r--x11/kdelibs3/patches/patch-ad10
-rw-r--r--x11/kdelibs3/patches/patch-ae151
-rw-r--r--x11/kdelibs3/patches/patch-ch22
-rw-r--r--x11/kdelibs3/patches/patch-ci13
4 files changed, 187 insertions, 9 deletions
diff --git a/x11/kdelibs3/patches/patch-ad b/x11/kdelibs3/patches/patch-ad
index 37258d973bf..d6d86fbc562 100644
--- a/x11/kdelibs3/patches/patch-ad
+++ b/x11/kdelibs3/patches/patch-ad
@@ -1,13 +1,15 @@
-$NetBSD: patch-ad,v 1.6 2003/09/21 12:14:19 markd Exp $
+$NetBSD: patch-ad,v 1.7 2005/10/12 17:52:26 joerg Exp $
--- kinit/setproctitle.h.orig 2000-02-12 03:17:07.000000000 +1300
+++ kinit/setproctitle.h
-@@ -72,7 +72,7 @@
+@@ -71,8 +71,8 @@
+ # define SPT_PADCHAR '\0' /* pad process title with nulls */
#endif
- #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
-# if defined(__NetBSD__) && (NetBSD > 199307 || NetBSD0_9 > 1)
-+# if defined(__NetBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
++# if defined(__NetBSD__) || defined(__DragonFly__)
# undef SPT_TYPE
# define SPT_TYPE SPT_BUILTIN /* setproctitle is in libc */
# endif
diff --git a/x11/kdelibs3/patches/patch-ae b/x11/kdelibs3/patches/patch-ae
index 4fc4014aeaf..43f6b15ea15 100644
--- a/x11/kdelibs3/patches/patch-ae
+++ b/x11/kdelibs3/patches/patch-ae
@@ -1,8 +1,107 @@
-$NetBSD: patch-ae,v 1.6 2004/09/13 13:52:12 markd Exp $
+$NetBSD: patch-ae,v 1.7 2005/10/12 17:52:26 joerg Exp $
---- configure.orig 2004-08-14 12:25:11.000000000 +1200
+--- configure.orig 2005-07-20 21:20:28.000000000 +0000
+++ configure
-@@ -47040,7 +47040,7 @@ echo "${ECHO_T}$kde_cv_path" >&6
+@@ -7524,7 +7524,7 @@ darwin* | rhapsody*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+-freebsd*)
++freebsd* | dragonfly*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+@@ -10263,7 +10263,7 @@ if test -z "$aix_libpath"; then aix_libp
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+- freebsd*)
++ freebsd* | dragonfly*)
+ archive_cmds='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+@@ -10828,7 +10828,7 @@ freebsd*-gnu*)
+ dynamic_linker='GNU ld.so'
+ ;;
+
+-freebsd*)
++freebsd* | dragonfly*)
+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+ version_type=freebsd-$objformat
+ case $version_type in
+@@ -13181,7 +13181,7 @@ if test -z "$aix_libpath"; then aix_libp
+ freebsd-elf*)
+ archive_cmds_need_lc_CXX=no
+ ;;
+- freebsd*)
++ freebsd* | dragonfly*)
+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+ # conventions
+ ld_shlibs_CXX=yes
+@@ -14494,7 +14494,7 @@ freebsd*-gnu*)
+ dynamic_linker='GNU ld.so'
+ ;;
+
+-freebsd*)
++freebsd* | dragonfly*)
+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+ version_type=freebsd-$objformat
+ case $version_type in
+@@ -17020,7 +17020,7 @@ if test -z "$aix_libpath"; then aix_libp
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+- freebsd*)
++ freebsd* | dragonfly*)
+ archive_cmds_F77='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
+ hardcode_libdir_flag_spec_F77='-R$libdir'
+ hardcode_direct_F77=yes
+@@ -17585,7 +17585,7 @@ freebsd*-gnu*)
+ dynamic_linker='GNU ld.so'
+ ;;
+
+-freebsd*)
++freebsd* | dragonfly*)
+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+ version_type=freebsd-$objformat
+ case $version_type in
+@@ -19313,7 +19313,7 @@ if test -z "$aix_libpath"; then aix_libp
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+- freebsd*)
++ freebsd* | dragonfly*)
+ archive_cmds_GCJ='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
+ hardcode_direct_GCJ=yes
+@@ -19878,7 +19878,7 @@ freebsd*-gnu*)
+ dynamic_linker='GNU ld.so'
+ ;;
+
+-freebsd*)
++freebsd* | dragonfly*)
+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+ version_type=freebsd-$objformat
+ case $version_type in
+@@ -23115,7 +23115,7 @@ else
+ linux*)
+ libltdl_cv_sys_dlopen_deplibs=yes
+ ;;
+- netbsd*|openbsd*|freebsd*)
++ netbsd*|openbsd*|freebsd*|dragonfly*)
+ libltdl_cv_sys_dlopen_deplibs=yes
+ ;;
+ solaris*)
+@@ -43145,7 +43145,7 @@ echo "$as_me: error: Fast malloc is not
+ esac
+ case $target_os in
+ linux*) ;;
+- freebsd*) ;;
++ freebsd*|dragonfly*) ;;
+ *)
+ if test "$kde_fast_malloc" = "notgiven"; then
+ kde_fast_malloc=no
+@@ -48909,7 +48909,7 @@ echo "${ECHO_T}$kde_cv_path" >&6
gssapi_flavor=HEIMDAL
fi
else
@@ -11,7 +110,7 @@ $NetBSD: patch-ae,v 1.6 2004/09/13 13:52:12 markd Exp $
gssapi_incdir=NO
for i in $search_incs;
-@@ -47083,7 +47083,7 @@ done
+@@ -48952,7 +48952,7 @@ done
GSSAPI_LIBS="-L$gssapi_libdir "
test "$USE_RPATH" = yes && GSSAPI_RPATH="-R $gssapi_libdir"
fi
@@ -20,7 +119,7 @@ $NetBSD: patch-ae,v 1.6 2004/09/13 13:52:12 markd Exp $
with_gssapi=FOUND
gssapi_flavor=HEIMDAL
break
-@@ -47127,7 +47127,7 @@ echo "${ECHO_T}searched but not found" >
+@@ -48996,7 +48996,7 @@ echo "${ECHO_T}searched but not found" >
GSSAPI_LIBS="${GSSAPI_LIBS}-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${LIBRESOLV}"
else
gssapi_flavor=HEIMDAL
@@ -29,3 +128,45 @@ $NetBSD: patch-ae,v 1.6 2004/09/13 13:52:12 markd Exp $
fi
fi
if test "x$gssapi_flavor" = "xMIT" ; then
+@@ -49186,18 +49186,12 @@ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
++#include <math.h>
+
+-/* Override any gcc2 internal prototype to avoid an error. */
+-#ifdef __cplusplus
+-extern "C"
+-#endif
+-/* We use char because int might match the return type of a gcc2
+- builtin and then its argument prototype would still apply. */
+-char isinf ();
+ int
+ main ()
+ {
+-isinf ();
++isinf (0.0);
+ ;
+ return 0;
+ }
+@@ -49408,18 +49402,12 @@ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
++#include <math.h>
+
+-/* Override any gcc2 internal prototype to avoid an error. */
+-#ifdef __cplusplus
+-extern "C"
+-#endif
+-/* We use char because int might match the return type of a gcc2
+- builtin and then its argument prototype would still apply. */
+-char isnan ();
+ int
+ main ()
+ {
+-isnan ();
++isnan (0.0);
+ ;
+ return 0;
+ }
diff --git a/x11/kdelibs3/patches/patch-ch b/x11/kdelibs3/patches/patch-ch
new file mode 100644
index 00000000000..e3e98e33300
--- /dev/null
+++ b/x11/kdelibs3/patches/patch-ch
@@ -0,0 +1,22 @@
+$NetBSD: patch-ch,v 1.3 2005/10/12 17:52:26 joerg Exp $
+
+--- kdecore/kpty.cpp.orig 2005-08-16 21:00:45.000000000 +0000
++++ kdecore/kpty.cpp
+@@ -95,7 +95,7 @@ extern "C" {
+ # endif
+ #endif
+
+-#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__)
++#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined(__DragonFly__)
+ # define _tcgetattr(fd, ttmode) ioctl(fd, TIOCGETA, (char *)ttmode)
+ #else
+ # if defined(_HPUX_SOURCE) || defined(__Lynx__)
+@@ -105,7 +105,7 @@ extern "C" {
+ # endif
+ #endif
+
+-#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__)
++#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined(__DragonFly__)
+ # define _tcsetattr(fd, ttmode) ioctl(fd, TIOCSETA, (char *)ttmode)
+ #else
+ # ifdef _HPUX_SOURCE
diff --git a/x11/kdelibs3/patches/patch-ci b/x11/kdelibs3/patches/patch-ci
new file mode 100644
index 00000000000..9bb16063852
--- /dev/null
+++ b/x11/kdelibs3/patches/patch-ci
@@ -0,0 +1,13 @@
+$NetBSD: patch-ci,v 1.3 2005/10/12 17:52:26 joerg Exp $
+
+--- kdecore/kprocess.cpp.orig 2005-08-16 21:01:53.000000000 +0000
++++ kdecore/kprocess.cpp
+@@ -768,7 +768,7 @@ void KProcess::setUseShell(bool useShell
+ d->shell = shell;
+ else
+ // #ifdef NON_FREE // ... as they ship non-POSIX /bin/sh
+-#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__GNU__)
++#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__GNU__) && !defined(__DragonFly__)
+ // Solaris POSIX ...
+ if (!access( "/usr/xpg4/bin/sh", X_OK ))
+ d->shell = "/usr/xpg4/bin/sh";