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