wok-next annotate prboom/receipt @ rev 20454
Choose between libpng16 and libpng12
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 17:32:31 2018 +0200 (2018-02-28) |
parents | 8907e670e716 |
children | c0521c689857 |
rev | line source |
---|---|
mallory@2693 | 1 # SliTaz package receipt. |
mallory@2693 | 2 |
mallory@2693 | 3 PACKAGE="prboom" |
mallory@2693 | 4 VERSION="2.5.0" |
mallory@2693 | 5 CATEGORY="games" |
mallory@2693 | 6 SHORT_DESC="PrBoom is the culmination of years of work by various people and projects on the Doom source code." |
mallory@2693 | 7 MAINTAINER="mallory@sweetpeople.org" |
pascal@15002 | 8 LICENSE="GPL2" |
jozee@5019 | 9 SUGGESTED="nvidia" |
mallory@2693 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
mallory@2693 | 11 WEB_SITE="http://prboom.sourceforge.net/" |
mallory@2693 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
mallory@2693 | 13 |
al@20454 | 14 DEPENDS="libsdl libsdl-mixer libsdl-net libpng16 mesa libglu-mesa freedoom" |
pascal@18413 | 15 BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev mesa-dev libglu-mesa \ |
al@20454 | 16 libpng16-dev libglu-mesa-dev" |
pascal@13796 | 17 |
mallory@2693 | 18 # Rules to configure and make the package. |
mallory@2693 | 19 compile_rules() |
mallory@2693 | 20 { |
pascal@20348 | 21 sed -i 's|png_error_ptr_||;s|png_infopp_||' src/SDL/i_sshot.c |
mallory@2693 | 22 ./configure \ |
mallory@2693 | 23 --prefix=/usr \ |
mallory@2693 | 24 --infodir=/usr/share/info \ |
mallory@2693 | 25 --mandir=/usr/share/man \ |
slaxemulator@9278 | 26 --disable-i386-asm \ |
mallory@2693 | 27 $CONFIGURE_ARGS && |
pascal@13796 | 28 make $MAKEFLAGS && make DESTDIR=$DESTDIR install |
mallory@2693 | 29 } |
mallory@2693 | 30 |
mallory@2693 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2693 | 32 genpkg_rules() |
mallory@2693 | 33 { |
mallory@2716 | 34 echo "Creating package tree" |
mallory@2716 | 35 mkdir -p $fs/usr/games \ |
mallory@2716 | 36 $fs/usr/share/games \ |
mallory@2716 | 37 $fs/usr/share/applications \ |
mallory@2716 | 38 $fs/usr/share/pixmaps |
mallory@2716 | 39 |
mallory@2716 | 40 echo "Copying package files" |
pascal@13796 | 41 cp -a $install/usr/games $fs/usr |
pascal@13796 | 42 cp -a $install/usr/share/games $fs/usr/share |
mallory@2693 | 43 } |