wok-next annotate physfs/receipt @ rev 20655
Up boxbackup (0.12)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri May 04 14:33:10 2018 +0300 (2018-05-04) |
parents | 51a1ebbda768 |
children | d5aab818505e |
rev | line source |
---|---|
al@20462 | 1 # SliTaz package receipt v2. |
slaxemulator@6549 | 2 |
slaxemulator@6549 | 3 PACKAGE="physfs" |
slaxemulator@8753 | 4 VERSION="2.0.2" |
slaxemulator@6549 | 5 CATEGORY="development" |
slaxemulator@6549 | 6 SHORT_DESC="Abstraction layer for filesystem and archive access" |
slaxemulator@6549 | 7 MAINTAINER="devl547@gmail.com" |
pascal@15375 | 8 LICENSE="LGPL" |
al@20462 | 9 WEB_SITE="http://icculus.org/physfs/" |
al@20462 | 10 |
slaxemulator@6549 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@8767 | 12 WGET_URL="http://icculus.org/physfs/downloads/$TARBALL" |
pascal@15112 | 13 |
slaxemulator@8767 | 14 BUILD_DEPENDS="cmake wget" |
al@20462 | 15 SPLIT="physfs-dev" |
slaxemulator@6549 | 16 |
al@20462 | 17 compile_rules() { |
pascal@15112 | 18 export CFLAGS="-Wno-error=unused-but-set-variable" |
slaxemulator@6549 | 19 cmake $src && |
al@20462 | 20 cmake \ |
al@20462 | 21 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@20462 | 22 -DPHYSFS_BUILD_SHARED=ON \ |
al@20462 | 23 -DPHYSFS_BUILD_TEST=OFF \ |
al@20462 | 24 -DPHYSFS_BUILD_WX_TEST=OFF \ |
al@20462 | 25 -DPHYSFS_INTERNAL_ZLIB=OFF \ |
al@20462 | 26 . && |
pascal@15112 | 27 make DESTDIR=$DESTDIR install |
slaxemulator@6549 | 28 } |
slaxemulator@6549 | 29 |
al@20462 | 30 genpkg_rules() { |
al@20462 | 31 case $PACKAGE in |
al@20462 | 32 physfs) |
al@20462 | 33 mkdir -p $fs/usr/lib |
al@20462 | 34 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@20462 | 35 ;; |
al@20462 | 36 *-dev) |
al@20462 | 37 mkdir -p $fs/usr/lib |
al@20462 | 38 cp -a $install/usr/include $fs/usr |
al@20462 | 39 cp $install/usr/lib/*.a $fs/usr/lib |
al@20462 | 40 ;; |
al@20462 | 41 esac |
slaxemulator@6549 | 42 } |