wok diff minetest/receipt @ rev 21291

updated libsdl-mixer and libsdl-mixer-dev (1.2.11 -> 1.2.12)
author Hans-G?nter Theisgen
date Tue Apr 16 17:37:23 2019 +0100 (2019-04-16)
parents da0865241df4
children 223e4ee94f57
line diff
     1.1 --- a/minetest/receipt	Tue Feb 24 11:26:21 2015 +0100
     1.2 +++ b/minetest/receipt	Tue Apr 16 17:37:23 2019 +0100
     1.3 @@ -1,39 +1,50 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="minetest"
     1.7 -VERSION="0.4.12"
     1.8 +VERSION="0.4.15"
     1.9  CATEGORY="games"
    1.10  SHORT_DESC="An InfiniMiner/Minecraft inspired game."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="MIT"
    1.13  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14  WEB_SITE="http://minetest.net/"
    1.15 +
    1.16  WGET_URL="https://github.com/minetest/minetest/archive/$VERSION.tar.gz"
    1.17  TARBALL2="minetest_game-$VERSION.tar.gz"
    1.18  WGET_URL2="https://github.com/minetest/minetest_game/archive/$VERSION.tar.gz"
    1.19  EXTRA_SOURCE_FILES="$WGET_URL2"
    1.20  
    1.21 -DEPENDS="libssl libpng jpeg sqlite libvorbis openal libglu-mesa curl \
    1.22 -mesa irrlicht"
    1.23 +DEPENDS="minetest-common libssl libpng jpeg sqlite libvorbis openal \
    1.24 +libglu-mesa curl mesa irrlicht luajit libspatialindex"
    1.25  BUILD_DEPENDS="wget cmake libpng-dev jpeg-dev sqlite-dev libogg-dev \
    1.26  libvorbis-dev openal-dev freetype-dev xorg-libXxf86vm-dev libglu-mesa-dev \
    1.27 -curl-dev mesa-dev irrlicht-dev"
    1.28 +curl-dev mesa-dev irrlicht-dev luajit-dev libspatialindex-dev"
    1.29  
    1.30  # Rules to configure and make the package.
    1.31  compile_rules()
    1.32  {
    1.33  	[ -s "$SOURCES_REPOSITORY/$TARBALL2" ] || wget --no-check-certificate \
    1.34 -		-O "$SOURCES_REPOSITORY/$TARBALL2" $WGET_URL2
    1.35 -	cd games/
    1.36 -	tar xf $SOURCES_REPOSITORY/$TARBALL2
    1.37 -	cd ..
    1.38 -	cmake -DCMAKE_INSTALL_PREFIX=/usr . 
    1.39 -	make &&
    1.40 -	make DESTDIR=$DESTDIR install
    1.41 +		-O "$SOURCES_REPOSITORY/$TARBALL2" ${EXTRA_SOURCE_FILES}
    1.42 +	{ 
    1.43 +		cd games/
    1.44 +		tar xf $SOURCES_REPOSITORY/$TARBALL2
    1.45 +		cd ..
    1.46 +	}
    1.47 +	cd build && cmake \
    1.48 +		-DCMAKE_INSTALL_PREFIX=/usr \
    1.49 +		-DBUILD_CLIENT=TRUE \
    1.50 +		-DBUILD_SERVER=TRUE \
    1.51 +		-DENABLE_SPATIAL=TRUE \
    1.52 +		-DENABLE_GETTEXT=TRUE \
    1.53 +		-DVERSION_EXTRA="SliTaz" \
    1.54 +		.. 
    1.55 +	make && make install
    1.56  }
    1.57  
    1.58  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.59  genpkg_rules()
    1.60  {
    1.61 -	cp -a $install/* $fs/
    1.62 +	mkdir -p ${fs}/usr/bin ${fs}/usr/share
    1.63 +	cp -a ${install}/usr/bin/${PACKAGE} ${fs}/usr/bin
    1.64 +	cp -a ${install}/usr/share/icons $fs/usr/share
    1.65  }