summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-03-10 11:08:53 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-03-10 11:08:53 +0000
commit3dacaff61acfef410dba04ac0f7997404382e23f (patch)
treeb322fa7dd0b0818ae4e1dece48532ea845f2b7be /games-emulation
parentStable for HPPA (bug #307761). (diff)
downloadgentoo-2-3dacaff61acfef410dba04ac0f7997404382e23f.tar.gz
gentoo-2-3dacaff61acfef410dba04ac0f7997404382e23f.tar.bz2
gentoo-2-3dacaff61acfef410dba04ac0f7997404382e23f.zip
Fix libpng14 detection and replace AC_CANONICAL_TARGET with AC_CANONICAL_BUILD wrt #308735 by Rafał Mużyło.
(Portage version: 2.2_rc66/cvs/Linux x86_64)
Diffstat (limited to 'games-emulation')
-rw-r--r--games-emulation/dosbox/ChangeLog9
-rw-r--r--games-emulation/dosbox/dosbox-0.73.ebuild11
-rw-r--r--games-emulation/dosbox/files/dosbox-0.73-AC_CANONICAL_BUILD_and_libpng14.patch79
3 files changed, 94 insertions, 5 deletions
diff --git a/games-emulation/dosbox/ChangeLog b/games-emulation/dosbox/ChangeLog
index 2e3640f2162a..9044ed69561a 100644
--- a/games-emulation/dosbox/ChangeLog
+++ b/games-emulation/dosbox/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for games-emulation/dosbox
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/dosbox/ChangeLog,v 1.48 2009/11/09 22:21:27 mr_bones_ Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/dosbox/ChangeLog,v 1.49 2010/03/10 11:08:52 ssuominen Exp $
+
+ 10 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> dosbox-0.73.ebuild,
+ +files/dosbox-0.73-AC_CANONICAL_BUILD_and_libpng14.patch:
+ Fix libpng14 detection and replace AC_CANONICAL_TARGET with
+ AC_CANONICAL_BUILD wrt #308735 by Rafał Mużyło.
*dosbox-9999 (09 Nov 2009)
diff --git a/games-emulation/dosbox/dosbox-0.73.ebuild b/games-emulation/dosbox/dosbox-0.73.ebuild
index aa6bf691ed32..845d78ab1241 100644
--- a/games-emulation/dosbox/dosbox-0.73.ebuild
+++ b/games-emulation/dosbox/dosbox-0.73.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/dosbox/dosbox-0.73.ebuild,v 1.5 2009/08/18 22:21:59 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/dosbox/dosbox-0.73.ebuild,v 1.6 2010/03/10 11:08:52 ssuominen Exp $
EAPI=2
-inherit eutils games
+inherit autotools eutils games
DESCRIPTION="DOS emulator"
HOMEPAGE="http://dosbox.sourceforge.net/"
@@ -22,6 +22,11 @@ DEPEND="alsa? ( media-libs/alsa-lib )
media-libs/sdl-net
media-libs/sdl-sound"
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-AC_CANONICAL_BUILD_and_libpng14.patch
+ eautoreconf
+}
+
src_configure() {
egamesconf \
--disable-dependency-tracking \
diff --git a/games-emulation/dosbox/files/dosbox-0.73-AC_CANONICAL_BUILD_and_libpng14.patch b/games-emulation/dosbox/files/dosbox-0.73-AC_CANONICAL_BUILD_and_libpng14.patch
new file mode 100644
index 000000000000..ac6b007e7ef0
--- /dev/null
+++ b/games-emulation/dosbox/files/dosbox-0.73-AC_CANONICAL_BUILD_and_libpng14.patch
@@ -0,0 +1,79 @@
+http://bugs.gentoo.org/show_bug.cgi?id=308735
+
+These can be found in dosbox sf.net bugtracking system:
+http://sourceforge.net/tracker/?group_id=52551&atid=467232
+
+--- configure.in
++++ configure.in
+@@ -5,7 +5,7 @@
+
+ dnl Detect the canonical host and target build environment
+ AC_CANONICAL_HOST
+-AC_CANONICAL_TARGET
++AC_CANONICAL_BUILD
+
+ dnl Setup for automake
+ AM_INIT_AUTOMAKE
+@@ -21,7 +21,7 @@
+
+ dnl Some needed libaries for OS2
+ dnl perharps join this with the other target depended checks. move them upwards
+-if test x$target = xi386-pc-os2-emx ; then
++if test x$build = xi386-pc-os2-emx ; then
+ CXXFLAGS="$CXXFLAGS -Zmt"
+ LDFLAGS="$LDFLAGS -Zomf -Zmt"
+ LIBS="$LIBS -los2me"
+@@ -231,7 +231,7 @@
+ dnl The target cpu checks for dynamic cores
+ AH_TEMPLATE(C_TARGETCPU,[The type of cpu this target has])
+ AC_MSG_CHECKING(for target cpu type)
+-case "$target_cpu" in
++case "$build_cpu" in
+ x86_64 | amd64)
+ AC_DEFINE(C_TARGETCPU,X86_64)
+ AC_MSG_RESULT(x86-64 bit compatible)
+@@ -343,7 +343,7 @@
+
+ AH_TEMPLATE(C_SSHOT,[Define to 1 to enable screenshots, requires libpng])
+ AC_CHECK_HEADER(png.h,have_png_h=yes,)
+-AC_CHECK_LIB(png, png_check_sig, have_png_lib=yes, ,-lz)
++AC_CHECK_LIB(png, png_get_io_ptr, have_png_lib=yes)
+ if test x$have_png_lib = xyes -a x$have_png_h = xyes ; then
+ LIBS="$LIBS -lpng -lz"
+ AC_DEFINE(C_SSHOT,1)
+@@ -355,7 +355,7 @@
+ AH_TEMPLATE(C_IPX,[Define to 1 to enable IPX over Internet networking, requires SDL_net])
+ AC_CHECK_HEADER(SDL_net.h,have_sdl_net_h=yes,)
+
+-if test x$target = xi386-pc-os2-emx ; then
++if test x$build = xi386-pc-os2-emx ; then
+ AC_MSG_CHECKING(for SDLNet_Init in SDL_net);
+ LIBS_BACKUP=$LIBS;
+ LIBS="$LIBS -lSDL_Net";
+@@ -393,7 +393,7 @@
+ AC_ARG_ENABLE(opengl,AC_HELP_STRING([--disable-opengl],[Disable opengl support]),,enable_opengl=yes)
+ AC_MSG_CHECKING(whether opengl display output will be enabled)
+ if test x$enable_opengl = xyes; then
+-case "$target" in
++case "$build" in
+ *-*-darwin*)
+ AC_MSG_RESULT(yes)
+ LIBS="$LIBS -framework OpenGL"
+@@ -448,7 +448,7 @@
+
+
+ dnl Some target detection and actions for them
+-case "$target" in
++case "$build" in
+ *-*-cygwin* | *-*-mingw32*)
+ LIBS="$LIBS -lwinmm"
+ AC_CHECK_HEADERS(ddraw.h)
+@@ -486,7 +486,7 @@
+ esac
+
+ dnl Some stuff for the icon.
+-case "$target" in
++case "$build" in
+ *-*-cygwin* | *-*-mingw32*)
+ dnl Some stuff for the ico
+ AC_CHECK_TOOL(WINDRES, windres, :)