summaryrefslogtreecommitdiff
path: root/xorg-xcursorgen
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@crux.nu>2010-09-05 12:02:45 +0200
committerTilman Sauerbeck <tilman@crux.nu>2010-09-05 12:02:45 +0200
commit5aa7d019ea955fe6b6861051154c34579a866b42 (patch)
tree28997e5a1d990da1f03f6bb0ce3403d04ad8fb5a /xorg-xcursorgen
parent5e4e738ea6b5089f853b51329911110f1fd9ae91 (diff)
downloadxorg-5aa7d019ea955fe6b6861051154c34579a866b42.tar.gz
xorg-5aa7d019ea955fe6b6861051154c34579a866b42.tar.xz
xorg-xcursorgen: fixed the build with libpng 1.4.x.
Diffstat (limited to 'xorg-xcursorgen')
-rw-r--r--xorg-xcursorgen/.md5sum1
-rw-r--r--xorg-xcursorgen/Pkgfile7
-rw-r--r--xorg-xcursorgen/xorg-xcursorgen.diff80
3 files changed, 86 insertions, 2 deletions
diff --git a/xorg-xcursorgen/.md5sum b/xorg-xcursorgen/.md5sum
index ac92e81b..c41fba89 100644
--- a/xorg-xcursorgen/.md5sum
+++ b/xorg-xcursorgen/.md5sum
@@ -1 +1,2 @@
69df079b3950a0db4e5f4e6f0e00ddee xcursorgen-1.0.3.tar.bz2
+209e0e68ef4a94097aeacb5a2a0c5b98 xorg-xcursorgen.diff
diff --git a/xorg-xcursorgen/Pkgfile b/xorg-xcursorgen/Pkgfile
index fcc13634..38761530 100644
--- a/xorg-xcursorgen/Pkgfile
+++ b/xorg-xcursorgen/Pkgfile
@@ -5,12 +5,15 @@
name=xorg-xcursorgen
version=1.0.3
-release=1
-source=(http://xorg.freedesktop.org/releases/individual/app/xcursorgen-$version.tar.bz2)
+release=2
+source=(http://xorg.freedesktop.org/releases/individual/app/xcursorgen-$version.tar.bz2
+ $name.diff)
build() {
cd xcursorgen-$version
+ patch -p1 -i $SRC/$name.diff
+
./configure --prefix=/usr --mandir=/usr/man
make
diff --git a/xorg-xcursorgen/xorg-xcursorgen.diff b/xorg-xcursorgen/xorg-xcursorgen.diff
new file mode 100644
index 00000000..4418b965
--- /dev/null
+++ b/xorg-xcursorgen/xorg-xcursorgen.diff
@@ -0,0 +1,80 @@
+Adjusted from commit 9e7c41e0e16183110cd7b28d012a0bb69aed4655 upstream.
+
+diff -aur xcursorgen-1.0.3.orig/configure xcursorgen-1.0.3/configure
+--- xcursorgen-1.0.3.orig/configure 2009-10-17 02:42:25.000000000 +0200
++++ xcursorgen-1.0.3/configure 2010-09-05 11:59:50.910999988 +0200
+@@ -5043,12 +5043,12 @@
+ pkg_cv_XCURSORGEN_CFLAGS="$XCURSORGEN_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+- { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xcursor libpng12\"") >&5
+- ($PKG_CONFIG --exists --print-errors "x11 xcursor libpng12") 2>&5
++ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xcursor libpng >= 1.2.0\"") >&5
++ ($PKG_CONFIG --exists --print-errors "x11 xcursor libpng >= 1.2.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+- pkg_cv_XCURSORGEN_CFLAGS=`$PKG_CONFIG --cflags "x11 xcursor libpng12" 2>/dev/null`
++ pkg_cv_XCURSORGEN_CFLAGS=`$PKG_CONFIG --cflags "x11 xcursor libpng >= 1.2.0" 2>/dev/null`
+ else
+ pkg_failed=yes
+ fi
+@@ -5059,12 +5059,12 @@
+ pkg_cv_XCURSORGEN_LIBS="$XCURSORGEN_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+- { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xcursor libpng12\"") >&5
+- ($PKG_CONFIG --exists --print-errors "x11 xcursor libpng12") 2>&5
++ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xcursor libpng >= 1.2.0\"") >&5
++ ($PKG_CONFIG --exists --print-errors "x11 xcursor libpng >= 1.2.0") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+- pkg_cv_XCURSORGEN_LIBS=`$PKG_CONFIG --libs "x11 xcursor libpng12" 2>/dev/null`
++ pkg_cv_XCURSORGEN_LIBS=`$PKG_CONFIG --libs "x11 xcursor libpng >= 1.2.0" 2>/dev/null`
+ else
+ pkg_failed=yes
+ fi
+@@ -5082,14 +5082,14 @@
+ _pkg_short_errors_supported=no
+ fi
+ if test $_pkg_short_errors_supported = yes; then
+- XCURSORGEN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xcursor libpng12" 2>&1`
++ XCURSORGEN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xcursor libpng >= 1.2.0" 2>&1`
+ else
+- XCURSORGEN_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xcursor libpng12" 2>&1`
++ XCURSORGEN_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xcursor libpng >= 1.2.0" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$XCURSORGEN_PKG_ERRORS" >&5
+
+- { { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xcursor libpng12) were not met:
++ { { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xcursor libpng >= 1.2.0) were not met:
+
+ $XCURSORGEN_PKG_ERRORS
+
+@@ -5100,7 +5100,7 @@
+ and XCURSORGEN_LIBS to avoid the need to call pkg-config.
+ See the pkg-config man page for more details.
+ " >&5
+-$as_echo "$as_me: error: Package requirements (x11 xcursor libpng12) were not met:
++$as_echo "$as_me: error: Package requirements (x11 xcursor libpng >= 1.2.0) were not met:
+
+ $XCURSORGEN_PKG_ERRORS
+
+
+
+diff --git a/xcursorgen.c b/xcursorgen.c
+index fc80f6d..daae18b 100644
+--- a/xcursorgen.c
++++ b/xcursorgen.c
+@@ -196,7 +196,7 @@ load_image (struct flist *list, char *prefix)
+ return NULL;
+ }
+
+- if (setjmp (png->jmpbuf))
++ if (setjmp (png_jmpbuf(png)))
+ {
+ png_destroy_read_struct (&png, &info, NULL);
+ return NULL;
+

Generated by cgit