pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/quakeforge Fix libtool fragment in configure for...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3a84dbc88766
branches:  trunk
changeset: 512819:3a84dbc88766
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon May 15 23:33:22 2006 +0000

description:
Fix libtool fragment in configure for DragonFly.
Conditionalize Sun audio plugin on NetBSD and SunOS.

diffstat:

 games/quakeforge/Makefile         |    9 +++-
 games/quakeforge/PLIST            |    4 +-
 games/quakeforge/distinfo         |    3 +-
 games/quakeforge/patches/patch-ag |  101 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 113 insertions(+), 4 deletions(-)

diffs (167 lines):

diff -r 17aa9591ac80 -r 3a84dbc88766 games/quakeforge/Makefile
--- a/games/quakeforge/Makefile Mon May 15 23:26:17 2006 +0000
+++ b/games/quakeforge/Makefile Mon May 15 23:33:22 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2006/04/17 13:46:29 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2006/05/15 23:33:22 joerg Exp $
 
 DISTNAME=              quakeforge-0.5.5
 PKGREVISION=           5
@@ -13,6 +13,7 @@
 CONFIGURE_ARGS+=       --disable-ogg
 CONFIGURE_ARGS+=       --disable-xmms
 GNU_CONFIGURE=         YES
+USE_LANGUAGES=         c c++
 USE_TOOLS+=            bison gmake
 USE_LIBTOOL=           YES
 
@@ -29,6 +30,12 @@
 CONFIGURE_ARGS+=       --without-ipv6
 .endif
 
+.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
+PLIST_SUBST+=          COND_SUN=""
+.else
+PLIST_SUBST+=          COND_SUN="@comment "
+.endif
+
 pre-install:
        ${INSTALL_PROGRAM_DIR} ${PREFIX}/include/QF/plugin
        ${INSTALL_PROGRAM_DIR} ${PREFIX}/include/QF/ruamoko/gui
diff -r 17aa9591ac80 -r 3a84dbc88766 games/quakeforge/PLIST
--- a/games/quakeforge/PLIST    Mon May 15 23:26:17 2006 +0000
+++ b/games/quakeforge/PLIST    Mon May 15 23:33:22 2006 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2004/09/22 08:09:31 jlam Exp $
+@comment $NetBSD: PLIST,v 1.4 2006/05/15 23:33:22 joerg Exp $
 bin/bsp2img
 bin/hw-master
 bin/nq-glx
@@ -162,7 +162,7 @@
 lib/quakeforge/snd_output_disk.la
 lib/quakeforge/snd_output_oss.la
 lib/quakeforge/snd_output_sdl.la
-lib/quakeforge/snd_output_sun.la
+${COND_SUN}lib/quakeforge/snd_output_sun.la
 lib/quakeforge/snd_render_default.la
 lib/ruamoko/libcsqc.a
 lib/ruamoko/libgui.a
diff -r 17aa9591ac80 -r 3a84dbc88766 games/quakeforge/distinfo
--- a/games/quakeforge/distinfo Mon May 15 23:26:17 2006 +0000
+++ b/games/quakeforge/distinfo Mon May 15 23:33:22 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2005/02/23 23:12:02 agc Exp $
+$NetBSD: distinfo,v 1.5 2006/05/15 23:33:22 joerg Exp $
 
 SHA1 (quakeforge-0.5.5.tar.gz) = 3ceb229b3d777b6c5e0cb1530b4547b20737f402
 RMD160 (quakeforge-0.5.5.tar.gz) = d22b29498e950bfdf96169bafee6409fca1a8e11
@@ -9,3 +9,4 @@
 SHA1 (patch-ad) = a6d824831a5444f92c7b3ab396ea31ef52503dea
 SHA1 (patch-ae) = aa0431df430f4fc08da32550f7fc5a156096bb43
 SHA1 (patch-af) = 15c725bc5c99f558518a1b7ebb219b8b20b19926
+SHA1 (patch-ag) = f1c14409d7cfeb33c75d9909eb78e0c501073433
diff -r 17aa9591ac80 -r 3a84dbc88766 games/quakeforge/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/quakeforge/patches/patch-ag Mon May 15 23:33:22 2006 +0000
@@ -0,0 +1,101 @@
+$NetBSD: patch-ag,v 1.1 2006/05/15 23:33:22 joerg Exp $
+
+--- configure.orig     2006-05-15 22:52:47.000000000 +0000
++++ configure
+@@ -4034,13 +4034,13 @@ darwin* | rhapsody*)
+   lt_cv_deplibs_check_method=pass_all
+   ;;
+ 
+-freebsd* | kfreebsd*-gnu)
++freebsd* | kfreebsd*-gnu | dragonfly*)
+   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+     case $host_cpu in
+     i*86 )
+       # Not sure whether the presence of OpenBSD here was a mistake.
+       # Let's accept both of them until this is cleared up.
+-      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
++      lt_cv_deplibs_check_method='file_magic (DragonFly|FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
+       lt_cv_file_magic_cmd=/usr/bin/file
+       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+       ;;
+@@ -7704,7 +7704,7 @@ if test -z "$aix_libpath"; then aix_libp
+       ;;
+ 
+     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+-    freebsd* | kfreebsd*-gnu)
++    freebsd* | kfreebsd*-gnu | dragonfly*)
+       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+       hardcode_libdir_flag_spec='-R$libdir'
+       hardcode_direct=yes
+@@ -8282,7 +8282,7 @@ kfreebsd*-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
+@@ -10653,7 +10653,7 @@ if test -z "$aix_libpath"; then aix_libp
+   freebsd-elf*)
+     archive_cmds_need_lc_CXX=no
+     ;;
+-  freebsd* | kfreebsd*-gnu)
++  freebsd* | kfreebsd*-gnu| dragonfly*)
+     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+     # conventions
+     ld_shlibs_CXX=yes
+@@ -11360,7 +11360,7 @@ echo $ECHO_N "checking for $compiler opt
+           ;;
+       esac
+       ;;
+-      freebsd* | kfreebsd*-gnu)
++      freebsd* | kfreebsd*-gnu | dragonfly*)
+       # FreeBSD uses GNU C++
+       ;;
+       hpux9* | hpux10* | hpux11*)
+@@ -11974,7 +11974,7 @@ kfreebsd*-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
+@@ -14537,7 +14537,7 @@ if test -z "$aix_libpath"; then aix_libp
+       ;;
+ 
+     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+-    freebsd* | kfreebsd*-gnu)
++    freebsd* | kfreebsd*-gnu | dragonfly*)
+       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+       hardcode_libdir_flag_spec_F77='-R$libdir'
+       hardcode_direct_F77=yes
+@@ -15115,7 +15115,7 @@ kfreebsd*-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
+@@ -16883,7 +16883,7 @@ if test -z "$aix_libpath"; then aix_libp
+       ;;
+ 
+     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+-    freebsd* | kfreebsd*-gnu)
++    freebsd* | kfreebsd*-gnu | dragonfly*)
+       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+       hardcode_libdir_flag_spec_GCJ='-R$libdir'
+       hardcode_direct_GCJ=yes
+@@ -17461,7 +17461,7 @@ kfreebsd*-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



Home | Main Index | Thread Index | Old Index