Browse Source

Add dosbox with mouse events mapping patch

remotes/origin/master
Georg Hopp 8 years ago
parent
commit
9faf56b748
Signed by: ghopp GPG Key ID: 4C5D226768784538
  1. 85
      games-emulation/dosbox/ChangeLog
  2. 257
      games-emulation/dosbox/ChangeLog-2015
  3. 12
      games-emulation/dosbox/Manifest
  4. 46
      games-emulation/dosbox/dosbox-0.74.ebuild
  5. 71
      games-emulation/dosbox/dosbox-0.74_p20160629-r1.ebuild
  6. 53
      games-emulation/dosbox/dosbox-0.74_p20160629.ebuild
  7. 10
      games-emulation/dosbox/files/dosbox-0.74-gcc46.patch
  8. 64
      games-emulation/dosbox/files/map-mouse-buttons.patch
  9. 14
      games-emulation/dosbox/metadata.xml

85
games-emulation/dosbox/ChangeLog

@ -0,0 +1,85 @@
# ChangeLog for games-emulation/dosbox
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
# (auto-generated from git log)
*dosbox-9999 (09 Aug 2015)
*dosbox-0.74 (09 Aug 2015)
09 Aug 2015; Robin H. Johnson <robbat2@gentoo.org> +dosbox-0.74.ebuild,
+dosbox-9999.ebuild, +files/dosbox-0.74-gcc46.patch, +metadata.xml:
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration
tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this
project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo
developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve
cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014
work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on
the bikeshed
24 Aug 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
Use https by default
Convert all URLs for sites supporting encrypted connections from http to
https
Signed-off-by: Justin Lecher <jlec@gentoo.org>
24 Aug 2015; Mike Gilbert <floppym@gentoo.org> metadata.xml:
Revert DOCTYPE SYSTEM https changes in metadata.xml
repoman does not yet accept the https version.
This partially reverts eaaface92ee81f30a6ac66fe7acbcc42c00dc450.
Bug: https://bugs.gentoo.org/552720
01 Oct 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
Add missing remote-id type=sourceforge
Signed-off-by: Justin Lecher <jlec@gentoo.org>
22 Nov 2015; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.74.ebuild,
dosbox-9999.ebuild:
use epatch to apply patch
Package-Manager: portage-2.2.20.1
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Unify quoting in metadata.xml files for machine processing
Force unified quoting in all metadata.xml files since lxml does not
preserve original use of single and double quotes. Ensuring unified
quoting before the process allows distinguishing the GLEP 67-related
metadata.xml changes from unrelated quoting changes.
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Replace all herds with appropriate projects (GLEP 67)
Replace all uses of herd with appropriate project maintainers, or no
maintainers in case of herds requested to be disbanded.
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Set appropriate maintainer types in metadata.xml (GLEP 67)

257
games-emulation/dosbox/ChangeLog-2015

@ -0,0 +1,257 @@
# ChangeLog for games-emulation/dosbox
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/dosbox/ChangeLog,v 1.64 2015/01/17 14:17:17 tupone Exp $
17 Jan 2015; Tupone Alfredo <tupone@gentoo.org> dosbox-0.74.ebuild:
EAPI 5
01 Jan 2015; Michael Sterrett <mr_bones_@gentoo.org> dosbox-9999.ebuild:
EAPI=5
02 Apr 2013; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.74.ebuild,
dosbox-9999.ebuild:
revert incorrect use dep for alsa case
01 Apr 2013; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.74.ebuild,
dosbox-9999.ebuild:
add slot to libpng dep
31 Jan 2013; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.74.ebuild,
dosbox-9999.ebuild:
really turn off dynamic core for hardened (bug #352310)
26 Nov 2012; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.74.ebuild,
dosbox-9999.ebuild:
add glu dep (bug #444758)
03 Sep 2012; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
dosbox-0.74.ebuild:
Keyword ~arm.
07 Jul 2011; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.74.ebuild,
dosbox-9999.ebuild:
add alsa use dep for libsdl (bug #374333)
28 Apr 2011; Tupone Alfredo <tupone@gentoo.org> dosbox-0.74.ebuild,
+files/dosbox-0.74-gcc46.patch:
Build with gcc-4.6 Bug #364231 by Philipp
23 Nov 2010; Tupone Alfredo <tupone@gentoo.org> dosbox-0.74.ebuild:
media-libs/libsdl need to be built with X. Fix bug #346241 by Tom Noonan
19 Jul 2010; Joseph Jezak <josejx@gentoo.org> dosbox-0.74.ebuild:
Marked ppc/ppc64 stable for bug #325153.
15 Jul 2010; Christian Faulhammer <fauli@gentoo.org> dosbox-0.74.ebuild:
stable x86, bug 325153
24 Jun 2010; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.74.ebuild:
remove autotools since it's not used (thanks to Pacho for the pointer)
24 Jun 2010; Pacho Ramos <pacho@gentoo.org> dosbox-0.74.ebuild:
stable amd64, bug 325153
*dosbox-0.74 (16 May 2010)
16 May 2010; Michael Sterrett <mr_bones_@gentoo.org> +dosbox-0.74.ebuild:
version bump
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)
09 Nov 2009; Michael Sterrett <mr_bones_@gentoo.org> +dosbox-9999.ebuild:
add live svn ebuild to replace dosbox-cvs (bug #292468)
18 Aug 2009; Christian Faulhammer <fauli@gentoo.org> dosbox-0.73.ebuild:
stable x86, bug 279864
09 Aug 2009; nixnut <nixnut@gentoo.org> dosbox-0.73.ebuild:
ppc stable #279864
01 Aug 2009; <chainsaw@gentoo.org> dosbox-0.73.ebuild:
Marked stable on AMD64 as requested by Michael "Mr. Bones" Sterrett
<mr_bones_@gentoo.org> in bug #279864. Tested with Pinball Fantasies (full
screen, 3000 cycles) on a dual hex-core Opteron with USE="alsa opengl
-debug -hardened".
01 Aug 2009; Samuli Suominen <ssuominen@gentoo.org> dosbox-0.72.ebuild,
dosbox-0.73.ebuild:
Remove USE depend for media-libs/alsa-lib[midi].
*dosbox-0.73 (27 May 2009)
27 May 2009; Michael Sterrett <mr_bones_@gentoo.org> +dosbox-0.73.ebuild:
version bump
14 Jan 2009; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.72.ebuild:
use PATCHES array
04 Jan 2009; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.72.ebuild:
use EAPI=2
17 Nov 2008; Diego E. Pettenò <flameeyes@gentoo.org>
files/dosbox-0.72+gcc-4.3.patch:
Fix patch with absolute paths.
13 Jun 2008; Diego Pettenò <flameeyes@gentoo.org>
+files/dosbox-0.72+gcc-4.3.patch, dosbox-0.72.ebuild:
Add patch to build with gcc 4.3 from bug #218320, thanks to Peter
Alfredsen (loki_val). Make alsa USE flag work again (bug #225919).
22 Oct 2007; Michael Sterrett <mr_bones_@gentoo.org>
-files/dosbox-0.70-alsa.patch, -dosbox-0.58.ebuild, -dosbox-0.65.ebuild,
-dosbox-0.70.ebuild:
clean out older ebuilds
22 Oct 2007; Mike Doty <kingtaco@gentoo.org> dosbox-0.72.ebuild:
amd64 stable, bug 194563
06 Oct 2007; Tobias Scherbaum <dertobi123@gentoo.org> dosbox-0.72.ebuild:
ppc stable, bug #194563
03 Oct 2007; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.72.ebuild:
stable for x86
23 Sep 2007; Joseph Jezak <josejx@gentoo.org> dosbox-0.70.ebuild,
dosbox-0.72.ebuild:
Marked ~ppc64.
*dosbox-0.72 (28 Aug 2007)
28 Aug 2007; Michael Sterrett <mr_bones_@gentoo.org> +dosbox-0.72.ebuild:
version bump
*dosbox-0.71 (31 Jul 2007)
31 Jul 2007; Michael Sterrett <mr_bones_@gentoo.org> +dosbox-0.71.ebuild:
version bump
09 Apr 2007; Michael Sterrett <mr_bones_@gentoo.org>
+files/dosbox-0.70-alsa.patch, dosbox-0.70.ebuild:
brute force approach to bug #171942
26 Mar 2007; Michael Sterrett <mr_bones_@gentoo.org>
+files/dosbox-0.70-alsa.patch, dosbox-0.70.ebuild:
patch to turn alsa off with --disable-alsa from ebfe via bug #171942; took out
some of the use flags in deps that weren't also checked by configure
20 Mar 2007; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.70.ebuild:
add USE=debug support with patch from ebfe (bug #121372)
04 Mar 2007; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.65.ebuild,
dosbox-0.70.ebuild:
add media-libs/alsa-lib midi check for bug #169219 with patch from Diego
Pettenò
*dosbox-0.70 (03 Mar 2007)
03 Mar 2007; Michael Sterrett <mr_bones_@gentoo.org> +dosbox-0.70.ebuild:
version bump (bug #169143)
21 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog:
Transition to Manifest2.
27 Nov 2006; Michael Sterrett <mr_bones_@gentoo.org> +dosbox-0.58.ebuild:
resurrect older dosbox that some people still use for specific apps
20 Sep 2006; <blubb@gentoo.org> dosbox-0.65.ebuild:
stable on amd64
18 Sep 2006; Joseph Jezak <josejx@gentoo.org> dosbox-0.65.ebuild:
Marked ppc stable for bug #147835.
27 Aug 2006; Jason Wever <weeve@gentoo.org> dosbox-0.65.ebuild:
Added ~sparc keyword wrt bug #144304.
*dosbox-0.65 (31 Mar 2006)
31 Mar 2006; Michael Sterrett <mr_bones_@gentoo.org> +dosbox-0.65.ebuild:
version bump
19 Mar 2006; Jeremy Huddleston <eradicator@gentoo.org>
+files/0.63-gcc41.patch, dosbox-0.63.ebuild:
Fixed compilation with gcc4 and on amd64. Closes bug #114949.
11 Jul 2005; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.63.ebuild:
amd64 patch is unconditional upstream so apply it for everyone.
11 Jul 2005; Simon Stelling <blubb@gentoo.org> +files/0.63-64bit.patch,
dosbox-0.63.ebuild:
fix bug 89876
15 Jun 2005; Chris Gianelloni <wolf31o2@gentoo.org> dosbox-0.58.ebuild,
dosbox-0.62.ebuild, dosbox-0.63.ebuild:
Removed INSTALL file.
18 Nov 2004; Michael Sterrett <mr_bones_@gentoo.org> -dosbox-0.60.ebuild,
-dosbox-0.61.ebuild:
clean older 0.6* ebuilds
*dosbox-0.63 (18 Nov 2004)
18 Nov 2004; Michael Sterrett <mr_bones_@gentoo.org> +dosbox-0.63.ebuild:
version bump
11 Nov 2004; Joseph Jezak <josejx@gentoo.org> dosbox-0.62.ebuild:
Marked ppc stable.
14 Oct 2004; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.62.ebuild:
hardened doesn't seem to like the dynamic core (bug #66038)
03 Oct 2004; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.62.ebuild:
make the sdl-sound dep explicit (bug #66179)
*dosbox-0.62 (30 Sep 2004)
30 Sep 2004; Michael Sterrett <mr_bones_@gentoo.org> +dosbox-0.62.ebuild:
version bump
21 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.61.ebuild:
Well, it works, but isn't "stable" on amd64 so back to ~ it goes.
amd64 users will need to keyword locally for this version. (bugs #52274
and #52276) dosbox-cvs is recommended for amd64 users until the next
release from upstream.
10 Jun 2004; Hanno Boeck <hanno@gentoo.org> +files/dosbox_gcc34.gz,
dosbox-0.61.ebuild:
Fix for gcc 3.4.
05 Mar 2004; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.61.ebuild:
png isn't optional, more alsa config stuff
11 Feb 2004; David Holm <dholm@gentoo.org> dosbox-0.61.ebuild:
Added to ~ppc.
*dosbox-0.61 (03 Feb 2004)
03 Feb 2004; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.61.ebuild:
version bump
*dosbox-0.60 (16 Oct 2003)
12 Dec 2003; Mike Frysinger <vapier@gentoo.org> :
Add an alsa-1.0.0 patch to fix #35522.
18 Oct 2003; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.60.ebuild:
removed the depend on ncurses since we don't use the debugger; added
src_compile
16 Oct 2003; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.60.ebuild:
version bump
07 Aug 2003; Michael Sterrett <mr_bones_@gentoo.org> dosbox-0.58.ebuild:
tidy ebuild
*dosbox-0.58 (15 Jul 2003)
15 Jul 2003; Mike Frysinger <vapier@gentoo.org> :
Version bump #20561 + games.eclass support.
*dosbox-0.57 (31 Jan 2003)
31 Jan 2003; Ryan Phillips <rphillips@gentoo.org> ChangeLog :
New package. Submitted by Dirk-Jan Heijs.

12
games-emulation/dosbox/Manifest

@ -0,0 +1,12 @@
AUX dosbox-0.74-gcc46.patch 274 SHA256 6177caef093a0d499581b5bb8dfdb99aab941b9d25ad3bb2f04b92f3452a17ae SHA512 3175ba75be568d24286501844073bebbd2ae2e770ca6bdd9d409b290ca7b9f98a8406b5b92b89a9965eeda8045f2ac9634aacf8eb01917cbf02087996de53177 WHIRLPOOL d160c1e54fdb94c8858cce43af1ed52702c111684bf208716fce8d9525105ecef6bb8d33751738624b68806e60c8d01ae4a29b7d8c44bb674fa45f8acfde7dda
AUX map-mouse-buttons.diff 2006 SHA256 b604a0d23e6e252a652c913319bf501c1ba59a9e5d4a4aa223a5ea973091281c SHA512 00da62acbd9b5968b4d32fcee5f197f177dbc1ce2992941dfb50fa178c5a1abd7115b553faa0ec59cb487c40333abfac4a74ff94d323231c030c126c51d3fa9c WHIRLPOOL fccc39e6ac3f7f813091613721f10f18a30c78c94a1abd67e95fecd435296756afe347ec85b44ae74a74bb80139e21ba6f301898377001825552c742644e334e
AUX map-mouse-buttons.patch 2014 SHA256 77522eb7156e32055b617265eacec8542079bb4c99b470b6e3d8f0cb47bafd9c SHA512 a6b8dca539d9dcd500b62737ca8530f64006180d70de0cf9ab28c15179953cd8e3f0911f2cff8d018848242b5cdab9234a6ca7b4cf086fb9a8bd1b9e225b5a9e WHIRLPOOL a9c9d02d819f1f8e0172a85c03a568f66121b644f4a022fb29b5f5fcf3c3ce83b0f1de010bf1ae86ae776f0e319f5c0bea89bade2728e23e2c946b287f6f407a
DIST dosbox-0.74.tar.gz 1265711 SHA256 13f74916e2d4002bad1978e55727f302ff6df3d9be2f9b0e271501bd0a938e05 SHA512 4a6ff4c658997a495119d200ec6ad37649da940814a4b14fca0dd29a99142026e324695b7aa9d2946efc2abf9067a819d911e43778efe905ed10ddf9b9f2dd3d WHIRLPOOL abc94770c732f8b73bedffbcca778f249c2fdc09353c3f484e2fc23f910602cc60b3abfcc22a9dbf3d3c4e77535fc488cd476217fe6498cab786a8024a257ff3
DIST dosbox-code-0-3989-dosbox-trunk.zip 1327592 SHA256 32f2cfff1be9f9bd2b0e246f9c0486f050714fdaba0bc47b66f3983eb7f55965 SHA512 625eacc1a1190d87d56713f7af54e6a7886e7666ba9f7f0b1d553c96a2eb02ec7810ac2da73d014d5ea3b69f2a7658bdd445532abe030e7f6ef85a3c20bdd3c7 WHIRLPOOL 1272c5a8d8480fa0dede2e78941a1cc78938407ab86d3720e18762fe2c749de89eea3db2811426f43eb57efa762a4ff55aa44d8e624c05bcb82b2404dad86f49
DIST dosbox_glide-3722fc563b737d2d7933df6a771651c2154e6f7b.diff 96346 SHA256 b51b86ca81b1642f50b8c0b0d74e4e230c858dbaf0c193afe15a040481e6d70b SHA512 d2be6ee8bd1f13058c76ccae595b67f15ab87e0e36dab0d938ebbd7fc5d379f6f054d30c32ef4723b9fcdbbcea7bf0e1aa2c8b1aab1737f1d0e4d2a2df0f7714 WHIRLPOOL 2bf74a6a6d7afccbd1d6002b48ab04c00672342829607c99ef4efd9ad8e3186c08aff971b52c6e4357c2e94e85cf08e049eb593d0a9f2253935f7e3cbe8b2a8a
EBUILD dosbox-0.74.ebuild 1061 SHA256 fe197a877d1d15aa2b3a17f615a53e135c1f74d5dbdde7a291be018301c665ad SHA512 084883defe768b05ffe03c18afacceead6d90638b67e5ed8cefc9b7c038e25c04c0bac1026dc5ad6a7e493a3cce4dd733e90f1c5de8ab7804bb3c1bc3c0bf847 WHIRLPOOL f09399d7e7b347eb9a6a3cc408f484a09ec894a021f3bd6ef848a6607d5b751eb158332a69328b45b6e285b9e7a7f798256fc7ebec81a86a94e02a6031bfd9a5
EBUILD dosbox-0.74_p20160629-r1.ebuild 1844 SHA256 26ba9be7a89de897f528c21d58d0597e430811bdbd8331f87cb034ad86cef46a SHA512 13169761214c7aeb4a137da33aaf16c0c41e0fa1fd8eaa7a3aed181b61113aad403b4f409fc24cd91b323dd3a53eaf6afbbbaa1065b77988dd155e1e3b2d01fd WHIRLPOOL 4a660a56803a19533ec6ad2b795fff3210b7d2486176bb92aaa1338053b0d0759a3ef85750166cf667f8157d34d403af3f5a7f6097c5b732f9359b731ac63805
EBUILD dosbox-0.74_p20160629.ebuild 1132 SHA256 004f9d5961cb4e0ba710f26d420576592ffc4f14334f5d0815de37dbf187d5a8 SHA512 9d1b597b6445660ff66b9e3372c9807f496c0ea951e11057fb226313be19e525d7e2663c9273c88fe73c08d317d700e622f5784ac6d56aa43ada55b01b514b8c WHIRLPOOL 84c13e7a07cdb59ce4b147a39f57bfbba5e5486fdc235b2b04703c2e337860a9df0eec421f9292c0c164168f57f80d74f83bd9a03c27840d0a100515c34c0b66
MISC ChangeLog 3218 SHA256 6121e7084762f51be05c5fba76b7345ed7bae4dcbdf8f357f438abf0d4256b6b SHA512 007900bb12b8966e704b9ca32902234e8145a5e2b966bf603ed37b79ad564e6fb102ec1603b675624154f9751eff47c6d9839de471d59c57e649f34318325f29 WHIRLPOOL 24f686783da4c667e33e1e6b1d83575d1f2b84f75b20106cd87f015e1917d5df8aaffe661b1d3029e9ecd92f1b90ecb217c4c60cc7498dbc7a346f1bea0bb375
MISC ChangeLog-2015 8857 SHA256 f89d9a261864bb8c7a8b5200905c79204873982758f5dd684f21dcaee32706bc SHA512 3c76a4621f99d4f01bbb47112c1b81478e84383ba7626996ce75f92aa370d1f478d0448b5ffa81bde0ef3bf68f1be979d1c954ff1e02d938a70de85b41c1d177 WHIRLPOOL 1cf88b590a9960e9764565192d35bd71bae2a00af5690a93cb258daf2465b4385f585375028537f80e978e3693abc9905d0ba5227da9336832ec0c42ef92996c
MISC metadata.xml 410 SHA256 1873c9fca49355cb50ba111a4a916e4c0cddf22cd4337c0d0a27b28adad18b8d SHA512 e131fe0add595edf6619edc489e4784a6553e53e24af6ee53faef252df4940271a2a1c575c276de534025ef2bed076dc37ae2299c31fbfcbdbf9c54183fe9069 WHIRLPOOL e58b1023afc40e22c3973f7b7ce50adbff18a92c8e94adbb2ef88c46058b7e7fe2f51a140fa2351a60cf390e41c6369423a0f4bddca80d7ee6176e98e373aa54

46
games-emulation/dosbox/dosbox-0.74.ebuild

@ -0,0 +1,46 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils games
DESCRIPTION="DOS emulator"
HOMEPAGE="http://dosbox.sourceforge.net/"
SRC_URI="mirror://sourceforge/dosbox/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ppc ppc64 ~sparc x86"
IUSE="alsa debug hardened opengl"
DEPEND="alsa? ( media-libs/alsa-lib )
opengl? ( virtual/glu virtual/opengl )
debug? ( sys-libs/ncurses:0 )
media-libs/libpng:0
media-libs/libsdl[joystick,video,X]
media-libs/sdl-net
media-libs/sdl-sound"
RDEPEND=${DEPEND}
src_prepare() {
epatch "${FILESDIR}"/${P}-gcc46.patch
epatch "${FILESDIR}"/map-mouse-buttons.diff
}
src_configure() {
#$(use_enable debug debug=heavy) \
egamesconf \
$(use_enable alsa alsa-midi) \
$(use_enable !hardened dynamic-core) \
$(use_enable !hardened dynamic-x86) \
$(use_enable debug) \
$(use_enable opengl)
}
src_install() {
default
make_desktop_entry dosbox DOSBox /usr/share/pixmaps/dosbox.ico
doicon src/dosbox.ico
prepgamesdirs
}

71
games-emulation/dosbox/dosbox-0.74_p20160629-r1.ebuild

@ -0,0 +1,71 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit autotools eutils flag-o-matic
PATCH=3989
GLIDE_PATCH=3722fc563b737d2d7933df6a771651c2154e6f7b
DESCRIPTION="DOS emulator"
HOMEPAGE="http://dosbox.sourceforge.net/"
SRC_URI="mirror://gentoo/dosbox-code-0-${PATCH}-dosbox-trunk.zip
glide? ( https://raw.githubusercontent.com/voyageur/openglide/${GLIDE_PATCH}/platform/dosbox/dosbox_glide.diff -> dosbox_glide-${GLIDE_PATCH}.diff )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
IUSE="alsa debug glide hardened opengl"
RDEPEND="alsa? ( media-libs/alsa-lib )
glide? ( media-libs/openglide )
opengl? ( virtual/glu virtual/opengl )
debug? ( sys-libs/ncurses:0 )
media-libs/libpng:0
media-libs/libsdl[joystick,video,X]
media-libs/sdl-net
media-libs/sdl-sound"
DEPEND="${RDEPEND}
app-arch/unzip"
S=${WORKDIR}/${PN}-code-0-${PATCH}-dosbox-trunk
PATCHES=(
"${FILESDIR}"/dosbox-0.74-gcc46.patch
"${FILESDIR}"/map-mouse-buttons.patch
)
src_prepare() {
use glide && eapply "${DISTDIR}"/dosbox_glide-${GLIDE_PATCH}.diff
default
eautoreconf
}
src_configure() {
use glide && append-cppflags -I"${EPREFIX}"/usr/include/openglide
econf \
$(use_enable alsa alsa-midi) \
$(use_enable !hardened dynamic-core) \
$(use_enable !hardened dynamic-x86) \
$(use_enable debug) \
$(use_enable opengl)
}
src_install() {
default
make_desktop_entry dosbox DOSBox /usr/share/pixmaps/dosbox.ico
doicon src/dosbox.ico
}
pkg_postinst() {
if use glide; then
elog "You have enabled unofficial Glide emulation. To use this, symlink"
elog "or copy ${EPREFIX}/usr/share/openglide/glide2x-dosbox.ovl to your game's"
elog "directory and add the following to your DOSBox configuration."
elog ""
elog "[glide]"
elog "glide=true"
fi
}

53
games-emulation/dosbox/dosbox-0.74_p20160629.ebuild

@ -0,0 +1,53 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit autotools eutils
PATCH=3989
DESCRIPTION="DOS emulator"
HOMEPAGE="http://dosbox.sourceforge.net/"
SRC_URI="mirror://gentoo/dosbox-code-0-${PATCH}-dosbox-trunk.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ~ppc ~ppc64 ~sparc x86"
IUSE="alsa debug hardened opengl"
RDEPEND="alsa? ( media-libs/alsa-lib )
opengl? ( virtual/glu virtual/opengl )
debug? ( sys-libs/ncurses:0 )
media-libs/libpng:0
media-libs/libsdl[joystick,video,X]
media-libs/sdl-net
media-libs/sdl-sound"
DEPEND="${RDEPEND}
app-arch/unzip"
S=${WORKDIR}/${PN}-code-0-${PATCH}-dosbox-trunk
PATCHES=(
"${FILESDIR}"/dosbox-0.74-gcc46.patch
"${FILESDIR}"/map-mouse-buttons.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
econf \
$(use_enable alsa alsa-midi) \
$(use_enable !hardened dynamic-core) \
$(use_enable !hardened dynamic-x86) \
$(use_enable debug) \
$(use_enable opengl)
}
src_install() {
default
make_desktop_entry dosbox DOSBox /usr/share/pixmaps/dosbox.ico
doicon src/dosbox.ico
}

10
games-emulation/dosbox/files/dosbox-0.74-gcc46.patch

@ -0,0 +1,10 @@
--- a/include/dos_inc.h 2011-04-28 08:46:04.505011354 +0200
+++ b/include/dos_inc.h 2011-04-28 08:46:27.104408178 +0200
@@ -21,6 +21,7 @@
#ifndef DOSBOX_DOS_INC_H
#define DOSBOX_DOS_INC_H
+#include <cstddef>
#ifndef DOSBOX_DOS_SYSTEM_H
#include "dos_system.h"
#endif

64
games-emulation/dosbox/files/map-mouse-buttons.patch

@ -0,0 +1,64 @@
diff -Naur a/src/gui/sdl_mapper.cpp b/src/gui/sdl_mapper.cpp
--- a/src/gui/sdl_mapper.cpp 2015-01-10 14:16:22.000000000 +0100
+++ b/src/gui/sdl_mapper.cpp 2016-10-31 21:36:44.509231014 +0100
@@ -32,6 +32,7 @@
#include "dosbox.h"
#include "video.h"
#include "keyboard.h"
+#include "mouse.h"
#include "joystick.h"
#include "support.h"
#include "mapper.h"
@@ -1497,6 +1498,20 @@
KBD_KEYS key;
};
+class CMouseButtonEvent : public CTriggeredEvent {
+public:
+ CMouseButtonEvent(char const * const _entry,Bit8u _button) : CTriggeredEvent(_entry) {
+ button=_button;
+ }
+ void Active(bool yesno) {
+ if (yesno)
+ Mouse_ButtonPressed(button);
+ else
+ Mouse_ButtonReleased(button);
+ }
+ Bit8u button;
+};
+
class CJAxisEvent : public CContinuousEvent {
public:
CJAxisEvent(char const * const _entry,Bitu _stick,Bitu _axis,bool _positive,CJAxisEvent * _opposite_axis) : CContinuousEvent(_entry) {
@@ -1708,6 +1723,15 @@
return event;
}
+static CMouseButtonEvent * AddMouseButtonEvent(Bitu x,Bitu y,Bitu dx,Bitu dy,char const * const title,char const * const entry,Bit8u button) {
+ char buf[64];
+ strcpy(buf,"mouse_");
+ strcat(buf,entry);
+ CMouseButtonEvent * event=new CMouseButtonEvent(buf,button);
+ new CEventButton(x,y,dx,dy,title,event);
+ return event;
+}
+
static CJAxisEvent * AddJAxisButton(Bitu x,Bitu y,Bitu dx,Bitu dy,char const * const title,Bitu stick,Bitu axis,bool positive,CJAxisEvent * opposite_axis) {
char buf[64];
sprintf(buf,"jaxis_%d_%d%s",stick,axis,positive ? "+" : "-");
@@ -1866,6 +1890,15 @@
AddKeyButtonEvent(PX(XO+2),PY(YO+4),BW,BH,".","kp_period",KBD_kpperiod);
#undef XO
#undef YO
+#define XO 5
+#define YO 8
+ /* Mouse Buttons */
+ new CTextButton(PX(XO+0),PY(YO-1),3*BW,20,"Mouse");
+ AddMouseButtonEvent(PX(XO+0),PY(YO),BW,BH,"L","left",0);
+ AddMouseButtonEvent(PX(XO+1),PY(YO),BW,BH,"M","middle",2);
+ AddMouseButtonEvent(PX(XO+2),PY(YO),BW,BH,"R","right",1);
+#undef XO
+#undef YO
#define XO 10
#define YO 8
/* Joystick Buttons/Texts */

14
games-emulation/dosbox/metadata.xml

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>mr_bones_@gentoo.org</email>
</maintainer>
<maintainer type="project">
<email>games@gentoo.org</email>
<name>Gentoo Games Project</name>
</maintainer>
<upstream>
<remote-id type="sourceforge">dosbox</remote-id>
</upstream>
</pkgmetadata>
Loading…
Cancel
Save