wok-next view physfs/receipt @ rev 21153
Small updates.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jan 31 16:45:41 2019 +0200 (2019-01-31) |
parents | 8940878905f3 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="physfs"
4 VERSION="2.0.2"
5 CATEGORY="development"
6 SHORT_DESC="Abstraction layer for filesystem and archive access"
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="LGPL"
9 WEB_SITE="http://icculus.org/physfs/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://icculus.org/physfs/downloads/$TARBALL"
14 BUILD_DEPENDS="cmake wget"
15 SPLIT="$PACKAGE-dev"
17 compile_rules() {
18 export CFLAGS="-Wno-error=unused-but-set-variable"
19 cmake $src &&
20 cmake \
21 -DCMAKE_INSTALL_PREFIX=/usr \
22 -DPHYSFS_BUILD_SHARED=ON \
23 -DPHYSFS_BUILD_TEST=OFF \
24 -DPHYSFS_BUILD_WX_TEST=OFF \
25 -DPHYSFS_INTERNAL_ZLIB=OFF \
26 . &&
27 make DESTDIR=$install install
28 }
30 genpkg_rules() {
31 case $PACKAGE in
32 physfs)
33 mkdir -p $fs/usr/lib
34 cp -a $install/usr/lib/*.so* $fs/usr/lib
35 ;;
36 *-dev)
37 mkdir -p $fs/usr/lib
38 cp -a $install/usr/include $fs/usr
39 cp $install/usr/lib/*.a $fs/usr/lib
40 ;;
41 esac
42 }