1SUMMARY="A brick-matching puzzle-game" 2DESCRIPTION="Wizznic! is a brick-matching puzzle-game, an improved version of��\ 3Puzznic. 4 5The challenge is to clear each level of bricks by moving the bricks next to \ 6each other, this sounds a lot easier than it is. The bricks are heavy, so you \ 7can only push them, not lift them up." 8HOMEPAGE="http://wizznic.org/" 9COPYRIGHT="2011-2020 Jimmy Christensen" 10LICENSE="GNU GPL v3" 11REVISION="1" 12SOURCE_URI="https://github.com/DusteDdk/Wizznic/archive/refs/tags/1.1.tar.gz" 13CHECKSUM_SHA256="6de6d8c1c6f7e7d62e303cf94e966d4f23c23ed252ccf39b68fbaf508fe8aed6" 14SOURCE_FILENAME="wizznic-$portVersion.tar.gz" 15SOURCE_DIR="Wizznic-$portVersion" 16PATCHES="wizznic-$portVersion.patchset" 17 18ARCHITECTURES="all !x86_gcc2 ?x86" 19SECONDARY_ARCHITECTURES="x86" 20 21# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/. 22commandSuffix=$secondaryArchSuffix 23commandBinDir=$binDir 24if [ "$targetArchitecture" = x86_gcc2 ]; then 25 commandSuffix= 26 commandBinDir=$prefix/bin 27fi 28 29PROVIDES=" 30 wizznic$secondaryArchSuffix = $portVersion 31 cmd:wizznic$commandSuffix = $portVersion 32 " 33REQUIRES=" 34 haiku$secondaryArchSuffix 35 lib:libpng16$secondaryArchSuffix 36 lib:libSDL_1.2$secondaryArchSuffix 37 lib:libSDL_image_1.2$secondaryArchSuffix 38 lib:libSDL_mixer_1.2$secondaryArchSuffix 39 lib:libz$secondaryArchSuffix 40 " 41 42BUILD_REQUIRES=" 43 haiku${secondaryArchSuffix}_devel 44 devel:libpng16$secondaryArchSuffix 45 devel:libSDL$secondaryArchSuffix 46 devel:libSDL_image$secondaryArchSuffix 47 devel:libSDL_mixer$secondaryArchSuffix 48 devel:libz$secondaryArchSuffix 49 " 50BUILD_PREREQUIRES=" 51 cmd:find 52 cmd:gcc$secondaryArchSuffix 53 cmd:make 54 " 55 56BUILD() 57{ 58 DATADIR=$dataDir/wizznic/ \ 59 BINDIR=$commandBinDir/ \ 60 WITH_OPENGL=false \ 61 CFLAGS=`sdl-config --cflags` make -f Makefile.linux 62} 63 64INSTALL() 65{ 66 DATADIR=$dataDir/wizznic/ \ 67 BINDIR=$commandBinDir/ \ 68 make -f Makefile.linux install 69 70 install -d $manDir/man6 71 install -m 644 doc/wizznic.6 $manDir/man6 72 73 addAppDeskbarSymlink $commandBinDir/wizznic "WizzNic!" 74} 75