wok-current view minetest/receipt @ rev 24758
xfe: cheat configure
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 18 07:44:06 2022 +0100 (2022-03-18) |
parents | fa14bf00ffaa |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="minetest"
4 VERSION="5.1.1"
5 CATEGORY="games"
6 SHORT_DESC="An open source voxel game engine and game."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.minetest.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION.tar.gz"
13 TARBALL2="${PACKAGE}_game-$VERSION.tar.gz"
14 WGET_URL2="https://github.com/$PACKAGE/${PACKAGE}_game/archive/$VERSION.tar.gz"
15 EXTRA_SOURCE_FILES="$WGET_URL2"
17 DEPENDS="curl irrlicht jpeg libglu-mesa libpng libspatialindex libssl \
18 libvorbis luajit mesa minetest-common openal sqlite"
19 BUILD_DEPENDS="cmake curl-dev freetype-dev gcc83 irrlicht-dev jpeg-dev \
20 libglu-mesa-dev libogg-dev libpng-dev libspatialindex-dev \
21 libvorbis-dev luajit-dev mesa-dev openal-dev sqlite-dev \
22 xorg-libXxf86vm-dev"
24 current_version()
25 {
26 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
27 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 # As gcc-4.6.3 is insufficient, the most recent version of gcc
34 # available in the cooking repository is used
35 export CC=gcc-83
36 export CXX=g++-83
38 [ -s "$SOURCES_REPOSITORY/$TARBALL2" ] || wget --no-check-certificate \
39 -O "$SOURCES_REPOSITORY/$TARBALL2" ${EXTRA_SOURCE_FILES}
40 {
41 cd games/
42 tar xf $SOURCES_REPOSITORY/$TARBALL2
43 cd ..
44 }
45 cd build &&
46 cmake \
47 -DCMAKE_INSTALL_PREFIX=/usr \
48 -DBUILD_CLIENT=TRUE \
49 -DBUILD_SERVER=TRUE \
50 -DENABLE_SPATIAL=TRUE \
51 -DENABLE_GETTEXT=TRUE \
52 -DVERSION_EXTRA="SliTaz" \
53 .. &&
54 make &&
55 make install
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 mkdir -p ${fs}/usr/bin
62 mkdir -p ${fs}/usr/share
64 cp -a ${install}/usr/bin/${PACKAGE} ${fs}/usr/bin
65 cp -a ${install}/usr/share/icons $fs/usr/share
66 }
68 # Pre and post install commands for Tazpkg.
69 post_install()
70 {
71 case " $(. $1/etc/rcS.conf; echo $LOAD_MODULES) " in
72 *\ snd-pcm-oss\ *) ;;
73 *) sed -i 's|LOAD_MODULES="|&snd-pcm-oss |' $1/etc/rcS.conf
74 modprobe snd-pcm-oss;;
75 esac
76 }