summaryrefslogtreecommitdiff
path: root/audio/kdemultimedia2/patches
diff options
context:
space:
mode:
authorjlam <jlam>2001-11-13 21:11:54 +0000
committerjlam <jlam>2001-11-13 21:11:54 +0000
commit44f67cfbb568a549da95ad60add1058ecce9d470 (patch)
tree4a7f98704cb461e5a7c5784532f0a6a60f1e20c6 /audio/kdemultimedia2/patches
parentd4c75d7e7c544a21a50ebefe7de7dc34a9f3c98d (diff)
downloadpkgsrc-44f67cfbb568a549da95ad60add1058ecce9d470.tar.gz
* Strongly buildlinkify.
* Use qt2-designer-kde for a uic that understands KDE2 widgets. * Build and install kmid. * Check that certain X11 libraries are shared libraries before linking shared objects against them. * Fix and sort PLIST.
Diffstat (limited to 'audio/kdemultimedia2/patches')
-rw-r--r--audio/kdemultimedia2/patches/patch-aa127
-rw-r--r--audio/kdemultimedia2/patches/patch-ar16
2 files changed, 135 insertions, 8 deletions
diff --git a/audio/kdemultimedia2/patches/patch-aa b/audio/kdemultimedia2/patches/patch-aa
index c6ad9e00533..597d31d600d 100644
--- a/audio/kdemultimedia2/patches/patch-aa
+++ b/audio/kdemultimedia2/patches/patch-aa
@@ -1,8 +1,50 @@
-$NetBSD: patch-aa,v 1.4 2001/10/15 22:45:55 skrll Exp $
+$NetBSD: patch-aa,v 1.5 2001/11/13 21:11:55 jlam Exp $
---- configure.orig Sun Sep 9 06:07:45 2001
+--- configure.orig Sun Sep 9 01:07:45 2001
+++ configure
-@@ -8178,7 +8178,7 @@
+@@ -7640,6 +7640,41 @@
+ if { (eval echo configure:7641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_vm='-lXxf86dga -lXxf86vm'"
++
++ lib=Xxf86dga
++ shared_lib_found=no
++ for i in ${LDFLAGS}; do
++ case "$i" in
++ -L*)
++ dir=`echo $i | sed "s,^-L,,"`
++ if [ -e $dir/lib${lib}.so ] ||
++ [ "`echo $dir/lib${lib}.so.*`" != "$dir/lib${lib}.so.*" ]; then
++ shared_lib_found=yes
++ break;
++ fi
++ esac
++ done
++ if [ "$shared_lib_found" = "no" ]; then
++ eval "ac_cv_lib_vm=no"
++ fi
++
++ lib=Xxf86vm
++ shared_lib_found=no
++ for i in ${LDFLAGS}; do
++ case "$i" in
++ -L*)
++ dir=`echo $i | sed "s,^-L,,"`
++ if [ -e $dir/lib${lib}.so ] ||
++ [ "`echo $dir/lib${lib}.so.*`" != "$dir/lib${lib}.so.*" ]; then
++ shared_lib_found=yes
++ break;
++ fi
++ esac
++ done
++ if [ "$shared_lib_found" = "no" ]; then
++ eval "ac_cv_lib_vm=no"
++ fi
++
+ else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+@@ -8178,7 +8213,7 @@
au_enable_sun=yes
;;
*-*-netbsd*)
@@ -11,7 +53,7 @@ $NetBSD: patch-aa,v 1.4 2001/10/15 22:45:55 skrll Exp $
;;
*)
echo "configure: warning: No --enable-audio=default audio for $target" 1>&2
-@@ -8194,7 +8194,7 @@
+@@ -8194,7 +8229,7 @@
echo "$ac_t""yes - <sys/soundcard.h>" 1>&6
else
case "$target" in
@@ -20,7 +62,7 @@ $NetBSD: patch-aa,v 1.4 2001/10/15 22:45:55 skrll Exp $
echo "$ac_t""yes" 1>&6
;;
*)
-@@ -11495,6 +11495,7 @@
+@@ -11495,6 +11530,7 @@
case "$host" in
*-*-linux*) kscd_compile=yes;;
*-*-*bsdi*) kscd_compile=yes;;
@@ -28,7 +70,7 @@ $NetBSD: patch-aa,v 1.4 2001/10/15 22:45:55 skrll Exp $
*-*-*bsd*) kscd_compile=no;;
*) kscd_compile=yes;;
esac
-@@ -11641,7 +11642,7 @@
+@@ -11641,7 +11677,7 @@
fi
done
@@ -37,7 +79,76 @@ $NetBSD: patch-aa,v 1.4 2001/10/15 22:45:55 skrll Exp $
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-@@ -12206,6 +12207,9 @@
+@@ -11905,7 +11941,22 @@
+ if { (eval echo configure:11906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+
++ lib=Xxf86dga
++ shared_lib_found=no
++ for i in ${LDFLAGS}; do
++ case "$i" in
++ -L*)
++ dir=`echo $i | sed "s,^-L,,"`
++ if [ -e $dir/lib${lib}.so ] ||
++ [ "`echo $dir/lib${lib}.so.*`" != "$dir/lib${lib}.so.*" ]; then
++ shared_lib_found=yes
++ break;
++ fi
++ esac
++ done
++ if [ "$shared_lib_found" = "yes" ]; then
+ x11_dga2=yes
++ fi
+
+ else
+ echo "configure: failed program was:" >&5
+@@ -11939,7 +11990,22 @@
+ if { (eval echo configure:11940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+
++ lib=Xv
++ shared_lib_found=no
++ for i in ${LDFLAGS}; do
++ case "$i" in
++ -L*)
++ dir=`echo $i | sed "s,^-L,,"`
++ if [ -e $dir/lib${lib}.so ] ||
++ [ "`echo $dir/lib${lib}.so.*`" != "$dir/lib${lib}.so.*" ]; then
++ shared_lib_found=yes
++ break;
++ fi
++ esac
++ done
++ if [ "$shared_lib_found" = "yes" ]; then
+ x11_xv=yes
++ fi
+
+ else
+ echo "configure: failed program was:" >&5
+@@ -11973,7 +12039,22 @@
+ if { (eval echo configure:11974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+
++ lib=Xxf86vm
++ shared_lib_found=no
++ for i in ${LDFLAGS}; do
++ case "$i" in
++ -L*)
++ dir=`echo $i | sed "s,^-L,,"`
++ if [ -e $dir/lib${lib}.so ] ||
++ [ "`echo $dir/lib${lib}.so.*`" != "$dir/lib${lib}.so.*" ]; then
++ shared_lib_found=yes
++ break;
++ fi
++ esac
++ done
++ if [ "$shared_lib_found" = "yes" ]; then
+ x11_xvidmode=yes
++ fi
+
+ else
+ echo "configure: failed program was:" >&5
+@@ -12206,6 +12287,9 @@
kde_mpeglib_compiles=no
case "$OS_TYPE" in
@@ -47,7 +158,7 @@ $NetBSD: patch-aa,v 1.4 2001/10/15 22:45:55 skrll Exp $
Linux)
kde_mpeglib_compiles=yes
;;
-@@ -12416,6 +12420,7 @@
+@@ -12416,6 +12500,7 @@
NetBSD)
echo "$ac_t""NetBSD :Unknown hardware. You will have problems!!" 1>&6
OS_TYPE="BSD"
diff --git a/audio/kdemultimedia2/patches/patch-ar b/audio/kdemultimedia2/patches/patch-ar
new file mode 100644
index 00000000000..447a3253f17
--- /dev/null
+++ b/audio/kdemultimedia2/patches/patch-ar
@@ -0,0 +1,16 @@
+$NetBSD: patch-ar,v 1.1 2001/11/13 21:11:55 jlam Exp $
+
+--- mpeglib/lib/util/render/x11/imageDeskX11.cpp.orig Thu Jan 11 10:40:00 2001
++++ mpeglib/lib/util/render/x11/imageDeskX11.cpp
+@@ -397,7 +397,11 @@
+ }
+
+ int bestMode = -1;
++#if defined(__NetBSD__)
++ int border, minBorder = INT_MAX;
++#else
+ int border, minBorder = MAXINT;
++#endif
+
+ for (i = 0; i < vm_count; i++) {
+ printf("mode %d: %dx%d\n",i, vm_modelines[i]->hdisplay,vm_modelines[i]->vdisplay);