wok-6.x annotate minetest/receipt @ rev 21447
minetest: export inserted
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 29 16:15:48 2019 +0100 (2019-04-29) |
parents | 223e4ee94f57 |
children | c9dcff8aefba |
rev | line source |
---|---|
pascal@17696 | 1 # SliTaz package receipt. |
pascal@17696 | 2 |
pascal@17696 | 3 PACKAGE="minetest" |
Hans-G?nter@21439 | 4 VERSION="5.0.1" |
pascal@17696 | 5 CATEGORY="games" |
Hans-G?nter@21439 | 6 SHORT_DESC="An open source voxel game engine and game." |
pascal@17696 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17696 | 8 LICENSE="MIT" |
Hans-G?nter@21439 | 9 WEB_SITE="https://minetest.net/" |
Hans-G?nter@21439 | 10 |
pascal@17696 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21439 | 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION.tar.gz" |
Hans-G?nter@21439 | 13 TARBALL2="${$PACKAGE}_game-$VERSION.tar.gz" |
Hans-G?nter@21439 | 14 WGET_URL2="https://github.com/$PACKAGE/${$PACKAGE}_game/archive/$VERSION.tar.gz" |
pascal@17697 | 15 EXTRA_SOURCE_FILES="$WGET_URL2" |
pascal@17696 | 16 |
Hans-G?nter@21439 | 17 DEPENDS="curl irrlicht jpeg libglu-mesa libpng libspatialindex libssl \ |
Hans-G?nter@21439 | 18 libvorbis luajit mesa minetest-common openal sqlite" |
Hans-G?nter@21439 | 19 BUILD_DEPENDS="cmake curl-dev freetype-dev gcc83 irrlicht-dev jpeg-dev \ |
Hans-G?nter@21439 | 20 libglu-mesa-dev libogg-dev libpng-dev libspatialindex-dev \ |
Hans-G?nter@21439 | 21 libvorbis-dev luajit-dev mesa-dev openal-dev sqlite-dev \ |
Hans-G?nter@21439 | 22 xorg-libXxf86vm-dev" |
pascal@17696 | 23 |
pascal@17696 | 24 # Rules to configure and make the package. |
pascal@17696 | 25 compile_rules() |
pascal@17696 | 26 { |
Hans-G?nter@21439 | 27 # As gcc-4.6.3 is insufficient, the most recent version of gcc |
Hans-G?nter@21439 | 28 # available in the cooking repository is used |
Hans-G?nter@21447 | 29 export CC=gcc-83 |
Hans-G?nter@21447 | 30 export CXX=g++-83 |
Hans-G?nter@21439 | 31 |
pascal@17696 | 32 [ -s "$SOURCES_REPOSITORY/$TARBALL2" ] || wget --no-check-certificate \ |
pankso@19862 | 33 -O "$SOURCES_REPOSITORY/$TARBALL2" ${EXTRA_SOURCE_FILES} |
pankso@19862 | 34 { |
pankso@19862 | 35 cd games/ |
pankso@19862 | 36 tar xf $SOURCES_REPOSITORY/$TARBALL2 |
pankso@19862 | 37 cd .. |
pankso@19862 | 38 } |
Hans-G?nter@21439 | 39 cd build && |
Hans-G?nter@21439 | 40 cmake \ |
Hans-G?nter@21439 | 41 -DCMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@21439 | 42 -DBUILD_CLIENT=TRUE \ |
Hans-G?nter@21439 | 43 -DBUILD_SERVER=TRUE \ |
Hans-G?nter@21439 | 44 -DENABLE_SPATIAL=TRUE \ |
Hans-G?nter@21439 | 45 -DENABLE_GETTEXT=TRUE \ |
Hans-G?nter@21439 | 46 -DVERSION_EXTRA="SliTaz" \ |
Hans-G?nter@21439 | 47 .. && |
Hans-G?nter@21439 | 48 make -j 1 && |
Hans-G?nter@21439 | 49 make install |
pascal@17696 | 50 } |
pascal@17696 | 51 |
pascal@17696 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17696 | 53 genpkg_rules() |
pascal@17696 | 54 { |
Hans-G?nter@21439 | 55 mkdir -p ${fs}/usr/bin |
Hans-G?nter@21439 | 56 mkdir -p ${fs}/usr/share |
Hans-G?nter@21439 | 57 |
Hans-G?nter@21439 | 58 cp -a ${install}/usr/bin/${PACKAGE} ${fs}/usr/bin |
Hans-G?nter@21439 | 59 cp -a ${install}/usr/share/icons $fs/usr/share |
pascal@17696 | 60 } |