1 |
mr_bones_ 09/05/08 23:42:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sdlmame-0.131_p1.ebuild |
5 |
Log: |
6 |
version bump |
7 |
(Portage version: 2.1.6.11/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.16 games-emulation/sdlmame/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/sdlmame/ChangeLog?rev=1.16&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/sdlmame/ChangeLog?rev=1.16&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/sdlmame/ChangeLog?r1=1.15&r2=1.16 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/ChangeLog,v |
19 |
retrieving revision 1.15 |
20 |
retrieving revision 1.16 |
21 |
diff -u -r1.15 -r1.16 |
22 |
--- ChangeLog 27 Apr 2009 18:53:26 -0000 1.15 |
23 |
+++ ChangeLog 8 May 2009 23:42:43 -0000 1.16 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for games-emulation/sdlmame |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/ChangeLog,v 1.15 2009/04/27 18:53:26 mr_bones_ Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/ChangeLog,v 1.16 2009/05/08 23:42:43 mr_bones_ Exp $ |
29 |
+ |
30 |
+*sdlmame-0.131_p1 (08 May 2009) |
31 |
+ |
32 |
+ 08 May 2009; Michael Sterrett <mr_bones_@g.o> |
33 |
+ +sdlmame-0.131_p1.ebuild: |
34 |
+ version bump |
35 |
|
36 |
*sdlmame-0.131 (27 Apr 2009) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 games-emulation/sdlmame/sdlmame-0.131_p1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/sdlmame/sdlmame-0.131_p1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/sdlmame/sdlmame-0.131_p1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: sdlmame-0.131_p1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/sdlmame-0.131_p1.ebuild,v 1.1 2009/05/08 23:42:43 mr_bones_ Exp $ |
51 |
|
52 |
EAPI=2 |
53 |
inherit eutils flag-o-matic games |
54 |
|
55 |
MY_PV=${PV/.} |
56 |
MY_PV=${MY_PV/_p/u} |
57 |
MY_P=${PN}${MY_PV} |
58 |
DESCRIPTION="Multiple Arcade Machine Emulator (SDL)" |
59 |
HOMEPAGE="http://rbelmont.mameworld.info/?page_id=163" |
60 |
# Upstream doesn't allow fetching with unknown User-Agent such as wget |
61 |
SRC_URI="mirror://gentoo/${MY_P}.zip |
62 |
mirror://gentoo/${PN}-manpages.tar.gz" |
63 |
|
64 |
LICENSE="XMAME" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~ppc ~x86" |
67 |
IUSE="opengl" |
68 |
|
69 |
RDEPEND=">=media-libs/libsdl-1.2.10[opengl?] |
70 |
dev-libs/expat |
71 |
x11-libs/libXinerama |
72 |
x11-libs/gtk+:2 |
73 |
gnome-base/gconf:2" |
74 |
DEPEND="${RDEPEND} |
75 |
app-arch/unzip |
76 |
x11-proto/xineramaproto" |
77 |
|
78 |
S=${WORKDIR}/${MY_P} |
79 |
|
80 |
# Function to disable a makefile option |
81 |
disable_feature() { |
82 |
sed -i \ |
83 |
-e "/$1.*=/s:^:# :" \ |
84 |
"${S}"/makefile \ |
85 |
|| die "sed failed" |
86 |
} |
87 |
|
88 |
# Function to enable a makefile option |
89 |
enable_feature() { |
90 |
sed -i \ |
91 |
-e "/^#.*$1.*=/s:^# ::" \ |
92 |
"${S}"/makefile \ |
93 |
|| die "sed failed" |
94 |
} |
95 |
|
96 |
src_prepare() { |
97 |
sed -i \ |
98 |
-e '/CFLAGS += -O$(OPTIMIZE)/s:^:# :' \ |
99 |
-e '/CFLAGS += -pipe/s:^:# :' \ |
100 |
-e '/LDFLAGS += -s/s:^:# :' \ |
101 |
-e 's:-Werror::' \ |
102 |
makefile \ |
103 |
|| die "sed failed" |
104 |
# Don't compile zlib and expat |
105 |
einfo "Disabling embedded libraries: zlib and expat" |
106 |
disable_feature BUILD_ZLIB |
107 |
disable_feature BUILD_EXPAT |
108 |
|
109 |
if use amd64; then |
110 |
einfo "Enabling 64-bit support" |
111 |
enable_feature PTR64 |
112 |
fi |
113 |
|
114 |
if use ppc; then |
115 |
einfo "Enabling PPC support" |
116 |
enable_feature BIGENDIAN |
117 |
fi |
118 |
} |
119 |
|
120 |
src_compile() { |
121 |
local make_opts |
122 |
|
123 |
use opengl || make_opts="${make_opts} NO_OPENGL=1" |
124 |
|
125 |
emake \ |
126 |
NAME="${PN}" \ |
127 |
OPT_FLAGS='-DINI_PATH=\"\$$HOME/.sdlmame\;'"${GAMES_SYSCONFDIR}/${PN}"'\"'" ${CFLAGS}" \ |
128 |
SUFFIX="" \ |
129 |
${make_opts} \ |
130 |
|| die "emake failed" |
131 |
} |
132 |
|
133 |
src_install() { |
134 |
dogamesbin "${PN}" || die "dogamesbin "${PN}" failed" |
135 |
|
136 |
# Follows xmame ebuild, avoiding collision on /usr/games/bin/jedutil |
137 |
exeinto "$(games_get_libdir)/${PN}" |
138 |
local f |
139 |
for f in chdman ldverify jedutil romcmp testkeys; do |
140 |
doexe "${f}" || die "doexe ${f} failed" |
141 |
done |
142 |
|
143 |
insinto "${GAMES_DATADIR}/${PN}" |
144 |
doins ui.bdf || die "doins ui.bdf failed" |
145 |
doins -r keymaps || die "doins -r keymaps failed" |
146 |
|
147 |
insinto "${GAMES_SYSCONFDIR}/${PN}" |
148 |
doins "${FILESDIR}"/{joymap.dat,vector.ini} || die "doins joymap.dat vector.ini failed" |
149 |
|
150 |
sed \ |
151 |
-e "s:@GAMES_SYSCONFDIR@:${GAMES_SYSCONFDIR}:" \ |
152 |
-e "s:@GAMES_DATADIR@:${GAMES_DATADIR}:" \ |
153 |
"${FILESDIR}"/mame.ini.in > "${D}/${GAMES_SYSCONFDIR}/${PN}/"mame.ini \ |
154 |
|| die "sed failed" |
155 |
|
156 |
dodoc docs/{config,mame,newvideo}.txt *.txt |
157 |
doman "${WORKDIR}/${PN}-manpages"/* |
158 |
|
159 |
keepdir \ |
160 |
"${GAMES_DATADIR}/${PN}"/{roms,samples,artwork} \ |
161 |
"${GAMES_SYSCONFDIR}/${PN}"/ctrlr |
162 |
|
163 |
prepgamesdirs |
164 |
} |
165 |
|
166 |
pkg_postinst() { |
167 |
games_pkg_postinst |
168 |
|
169 |
elog "It's strongly recommended that you change either the system-wide" |
170 |
elog "mame.ini at \"${GAMES_SYSCONFDIR}/${PN}\" or use a per-user setup at \$HOME/.${PN}" |
171 |
|
172 |
if use opengl; then |
173 |
echo |
174 |
elog "You built ${PN} with opengl support and should set" |
175 |
elog "\"video\" to \"opengl\" in mame.ini to take advantage of that" |
176 |
fi |
177 |
} |