wok-next view physfs/receipt @ rev 20653
Add grub2-efi-modules (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 04 11:41:20 2018 +0200 (2018-05-04) |
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 }