wok-next view physfs/receipt @ rev 20462
Combine receipts
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Mar 06 03:00:01 2018 +0200 (2018-03-06) |
parents | 51a1ebbda768 |
children | d5aab818505e |
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="physfs-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=$DESTDIR 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 }