Files
meta-games/recipes-games/freeciv/freeciv.inc
Andreas Müller 647c6ae869 freeciv: fix configure for sdl-config no more accepted
fixes:

| checking for SDL - version >= 1.0.0... ERROR: /usr/bin/sdl-config should not be used, use an alternative such as pkg-config

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
2015-09-19 00:49:52 +02:00

78 lines
2.0 KiB
PHP

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 = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SECTION = "games"
DEPENDS = "gtk+ readline libsdl-mixer bzip2 curl xz"
SRC_URI = "\
${SOURCEFORGE_MIRROR}/freeciv/freeciv-${PV}.tar.bz2 \
file://allow-root.patch \
file://wait-server-start.patch \
"
S = "${WORKDIR}/freeciv-${PV}"
B = "${WORKDIR}/build-${PV}"
inherit autotools pkgconfig
EXTRA_OECONF = "\
--enable-shared --without-ggz-dir --enable-client=${FREECIV_GUI} \
--disable-mapimg \
--disable-sdltest \
--disable-sdl2test \
SDL_CONFIG='${STAGING_BINDIR_NATIVE}/pkg-config sdl' \
"
acpaths = "-I ${S}/m4 -I ${S}/dependencies/m4"
PACKAGES =+ "${PN}-common ${PN}-server ${PN}-client-common ${PN}-gtk2"
do_install_append() {
rm -Rf ${D}/${datadir}/appdata
}
RDEPENDS_${PN} = "freeciv-server freeciv-client"
FILES_${PN}-common = "\
${libdir}/libfreeciv.so.0.0.0 \
${libdir}/libfreeciv.so.0 \
${datadir}/po \
${datadir}/icons/hicolor/*/*/freeciv-client.png \
"
RDEPENDS_${PN}-server = "freeciv-common"
FILES_${PN}-server = "\
${bindir}/freeciv-server \
${datadir}/freeciv/default \
${datadir}/freeciv/default.serv \
${datadir}/freeciv/nation \
${datadir}/icons/hicolor/*/*/freeciv-server.png \
"
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 \
${datadir}/icons/hicolor/*/*/freeciv-modpack.png \
"
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 \
"