summaryrefslogtreecommitdiff
path: root/packages/gnome/gnome-games_2.24.0.bb
blob: c6a003be6cb2fa2da2390bf6b1d6121436a7c1a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
LICENSE = "GPL"
DEPENDS = " guile libggz ggz-client-libs python-pygtk gtk+ libgnome libgnomeui librsvg gnome-vfs gconf libglade gnome-common gnome-python-desktop"

inherit gnome distutils-base gconf

FILE_PR = "r1"

SRC_URI += "file://ggz-unbreak-m4.patch;patch=1 \
           "

EXTRA_OECONF = "--with-libggz-includes=${STAGING_INCDIR} \
                --with-libggz-libraries=${STAGING_LIBDIR} \
                --with-ggzmod-includes=${STAGING_INCDIR} \
                --with-ggzmod-libraries=${STAGING_LIBDIR} \
	        --enable-scalable \
	       "

do_configure_prepend() {
	for i in $(find ${S} -name "Makefile.am") ; do
		sed -i -e s:help::g $i
	done
}

do_configure_append() {
	for i in $(find ${S} -name "Makefile") ; do
		sed -i -e s:'-I /usr/include -I /usr/local/include'::g $i
	done	
}

CFLAGS_append = " -lguile -lgmp -lcrypt -lm -lltdl"

FILES_${PN}-doc += " ${datadir}/gnome/help"
FILES_${PN}-dbg += " ${bindir}/.debug ${libdir}/gnome-games/.debug"

FILES_${PN} += "/var/games \
                ${datadir}/applications \
                ${datadir}/g* \
		${datadir}/ggz \
		${datadir}/icons \
		${datadir}/pixmaps \
		${sysconfdir}"

PACKAGES =+ "gnome-games-gnometris "
FILES_gnome-games-gnometris = "${bindir}/gnometris ${datadir}/pixmaps/gnometris ${datadir}/pixmaps/gnome-gtetris.png ${datadir}/applications/gnometris.desktop ${sysconfdir}/gconf/schemas/gnometris.schemas"

PACKAGES =+ "gnome-games-gnomine"
FILES_gnome-games-gnomine = "${bindir}/gnomine ${datadir}/pixmaps/gnomine ${datadir}/pixmaps/gnome-gnomine.png ${datadir}/applications/gnomine.desktop ${sysconfdir}/gconf/schemas/gnomine.schemas"