Rename recipes to recipes-games to match the layered openembedded structure.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
This commit is contained in:
Denis 'GNUtoo' Carikli
2012-10-14 21:08:06 +02:00
parent c34025b839
commit 3f5e4242a2
8 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,63 @@
SUMMARY = "Turn-based strategy game inspired by the history of human civilization."
DESCRIPTION = "Freeciv is distributed under the GPL and implemented for X. \
Freeciv is a turn-based strategy game, in which \
each player becomes leader of a civilization, fighting to obtain \
the ultimate goal: The extinction of all other civilizations. \
"
LICENSE = "GPL2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
SECTION = "games"
DEPENDS = "gtk+ readline"
SRC_URI = "${SOURCEFORGE_MIRROR}/freeciv/freeciv-${PV}.tar.gz \
file://allow-root.patch \
file://wait-server-start.patch \
"
S = "${WORKDIR}/freeciv-${PV}"
inherit autotools pkgconfig
EXTRA_OECONF = "\
--enable-shared --without-ggz-dir --enable-client=gtk2 \
--with-sdl-prefix=${STAGING_BINDIR_CROSS} \
"
PACKAGES =+ "${PN}-common ${PN}-server ${PN}-client-common ${PN}-gtk2"
RDEPENDS_${PN} = "freeciv-server freeciv-client"
FILES_${PN}-common = "\
${libdir}/libfreeciv.so.0.0.0 \
${libdir}/libfreeciv.so.0 \
${datadir}/po \
"
RDEPENDS_${PN}-server = "freeciv-common"
FILES_${PN}-server = "\
${bindir}/freeciv-server \
${datadir}/freeciv/default \
${datadir}/freeciv/default.serv \
${datadir}/freeciv/nation \
"
FILES_${PN}-client-common = "\
${datadir}/freeciv/helpdata.txt \
${datadir}/freeciv/flags \
${datadir}/freeciv/misc \
${datadir}/freeciv/amplio2.tilespec \
${datadir}/freeciv/amplio2 \
${datadir}/freeciv/stdsounds.soundspec \
${datadir}/freeciv/stdsounds \
"
RDEPENDS_${PN}-gtk2 = "freeciv-common freeciv-client-common"
RPROVIDES_${PN}-gtk2 = "freeciv-client"
FILES_${PN}-gtk2 = "\
${bindir}/freeciv-gtk2 \
${datadir}/freeciv/themes/gui-gtk-2.0 \
${datadir}/freeciv/gtk_menus.xml \
"

View File

@@ -0,0 +1,16 @@
Allow root to run freeciv
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
diff -Nurd -X.diff_ignore freeciv/configure.ac freeciv/configure.ac
--- freeciv/configure.ac 2012-04-05 02:04:17.000000000 +0300
+++ freeciv/configure.ac 2012-05-14 15:33:05.000000000 +0300
@@ -447,6 +447,8 @@
AMIGA=no
HOST_PATH_SEPARATOR=":"
+AC_DEFINE([ALWAYS_ROOT], [1], [Can execute program as root - OpenEmbedded])
+
dnl Settings specific to host OS
case "$host_os" in

View File

@@ -0,0 +1,16 @@
Give server more time to start
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
diff -Nurd -X.diff_ignore freeciv/client/connectdlg_common.c freeciv/client/connectdlg_common.c
--- freeciv/client/connectdlg_common.c 2011-07-30 00:24:42.000000000 +0300
+++ freeciv/client/connectdlg_common.c 2012-05-14 23:31:13.000000000 +0300
@@ -60,7 +60,7 @@
#include "tilespec.h"
#define WAIT_BETWEEN_TRIES 100000 /* usecs */
-#define NUMBER_OF_TRIES 500
+#define NUMBER_OF_TRIES 10000
#ifdef WIN32_NATIVE
/* FIXME: this is referenced directly in gui-win32/connectdlg.c. */

View File

@@ -0,0 +1,12 @@
require freeciv.inc
LICENSE = "GPLv2"
PR = "r0"
SRC_URI[md5sum] = "90d2c95a74398616b385bf6dbd1f813e"
SRC_URI[sha256sum] = "15d886759a13a546985bf3e6824ca2dfbefb568f12d85ac63da06ff013d91f7a"
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
acpaths = "-I ${S}/m4 -I ${S}/dependencies/m4"

View File

@@ -0,0 +1,24 @@
Submitted https://github.com/scummvm/scummvm/pull/286
---
Index: scummvm-1.5.0/ports.mk
===================================================================
--- scummvm-1.5.0.orig/ports.mk 2012-10-13 19:48:34.137966047 +0200
+++ scummvm-1.5.0/ports.mk 2012-10-13 19:49:04.797967339 +0200
@@ -8,7 +8,7 @@
#
install:
$(INSTALL) -d "$(DESTDIR)$(bindir)"
- $(INSTALL) -c -s -m 755 "./$(EXECUTABLE)" "$(DESTDIR)$(bindir)/$(EXECUTABLE)"
+ $(INSTALL) -c -m 755 "./$(EXECUTABLE)" "$(DESTDIR)$(bindir)/$(EXECUTABLE)"
$(INSTALL) -d "$(DESTDIR)$(mandir)/man6/"
$(INSTALL) -c -m 644 "$(srcdir)/dists/scummvm.6" "$(DESTDIR)$(mandir)/man6/scummvm.6"
$(INSTALL) -d "$(DESTDIR)$(datarootdir)/pixmaps/"
@@ -19,7 +19,7 @@
$(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(DIST_FILES_ENGINEDATA) "$(DESTDIR)$(datadir)/"
ifdef DYNAMIC_MODULES
$(INSTALL) -d "$(DESTDIR)$(libdir)/scummvm/"
- $(INSTALL) -c -s -m 644 $(PLUGINS) "$(DESTDIR)$(libdir)/scummvm/"
+ $(INSTALL) -c -m 644 $(PLUGINS) "$(DESTDIR)$(libdir)/scummvm/"
endif
uninstall:

View File

@@ -0,0 +1,12 @@
[Desktop Entry]
Encoding=UTF-8
Name=ScummVM
Name[pl]=ScummVM
Comment=Interpreter for several adventure games
Comment[pl]=Interpreter graficznych gier przygodowych
Exec=scummvm
Icon=scummvm.xpm
Terminal=false
Type=Application
Categories=Application;Game;AdventureGame;
StartupNotify=false

View File

@@ -0,0 +1,43 @@
DESCRIPTION = "Virtual Machine for several classic graphical point-and-click adventure games"
HOMEPAGE = "http://www.scummvm.org"
SECTION = "games"
PRIORITY = "optional"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=761a03e159b8bb74f377e30458e210e1"
inherit autotools
SRC_URI = "${SOURCEFORGE_MIRROR}/scummvm/scummvm-${PV}.tar.bz2 \
file://scummvm.desktop \
file://no-strip.patch \
"
DEPENDS = "virtual/libsdl libvorbis libogg zlib \
${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad mpeg2dec', d)}"
EXTRA_OECONF = " \
--host=${HOST_SYS} \
--backend=sdl \
--with-sdl-prefix=${STAGING_BINDIR_CROSS} \
--prefix=${prefix} \
--with-ogg-prefix=${STAGING_LIBDIR}/.. \
--with-vorbis-prefix=${STAGING_LIBDIR}/.. \
--disable-alsa \
--enable-plugins \
--default-dynamic \
--enable-all-engines \
${@base_conditional('ENTERPRISE_DISTRO', '1', '--disable-mad', '--with-mad-prefix=${STAGING_LIBDIR}/..', d)} \
"
EXTRA_OEMAKE = "MANDIR=${mandir}"
do_configure() {
./configure ${EXTRA_OECONF}
sed -i "s/AS := as/AS := ${AS}/" ${S}/config.mk
sed -i "s/AR := ar cru/AR := ${AR} cru/" ${S}/config.mk
sed -i "s/STRIP := strip/STRIP := ${STRIP}/" ${S}/config.mk
sed -i "s/RANLIB := ranlib/RANLIB := ${RANLIB}/" ${S}/config.mk
}
SRC_URI[md5sum] = "d71d1df5c8262556fedbe885972fbf6e"
SRC_URI[sha256sum] = "81831cd878a8daad2976f65c92139a2102233082c7d2770579d7e425b19cea2e"