wok-next view hfsprogs/receipt @ rev 18924

glibc: fix build (thanks az_ua)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Feb 25 14:47:17 2016 +0200 (2016-02-25)
parents
children 0e8dadf052b9
line source
1 # SliTaz package receipt.
3 PACKAGE="hfsprogs"
4 VERSION="332.25"
5 CATEGORY="system-tools"
6 SHORT_DESC="HFS+ Filesystem user space tools."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="APLS"
9 TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
10 WEB_SITE="http://www.opensource.apple.com/darwinsource/10.4/"
11 WGET_URL="http://http.debian.net/debian/pool/main/h/hfsprogs/$TARBALL"
12 EXTRA_SOURCE_FILES="${PACKAGE}_$VERSION-11.debian.tar.gz"
14 DEPENDS="libbsd libcrypto"
15 BUILD_DEPENDS="libbsd-dev openssl-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] ||
21 wget -P $SOURCES_REPOSITORY $(dirname $WGET_URL)/$EXTRA_SOURCE_FILES
22 tar xzf $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
23 for i in $(cat debian/patches/series); do
24 patch -p1 -i debian/patches/$i
25 done
26 make -f Makefile.lnx LDFLAGS="$LDFLAGS -Wl,--as-needed" \
27 CFLAGS="$CFLAGS -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -I$src/include"
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/sbin
34 install -m 755 $src/newfs_hfs.tproj/newfs_hfs $fs/sbin/mkfs.hfsplus
35 install -m 755 $src/fsck_hfs.tproj/fsck_hfs $fs/sbin/fsck.hfsplus
36 }