CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
filesystem: removed lib32 directories
[crossrootfs.git] / libarchive / Pkgfile
CommitLineData
6dca1d21
JB
1# Description: Library to create and read several archive formats
2# URL: http://people.freebsd.org/~kientzle/libarchive/
3# Maintainer: CRUX System Team, core-ports at crux dot nu
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5c59420b 5# Depends on: bzip2 xz zlib acl lzo
6dca1d21
JB
6
7name=libarchive
a99c2ede
VM
8version=3.1.2
9release=2
10source=(http://www.libarchive.org/downloads/$name-$version.tar.gz)
6dca1d21
JB
11
12build() {
715b6047 13 cd $name-$version
5333ef72
VM
14 # We're passing --without-lzmadec, because we want to use xz for
15 # LZMA support, not the obsolete lzmadec library.
16 #
17 # We're passing --without-xml2 and --without-expat to avoid linking
18 # to libraries which are only available in opt. XML support is only
19 # needed for the xar format which we can live without.
20
570111a9
VM
21 # Fix libtool linking with host forcing our library path
22 sed -e "s|-rpath \$(libdir)|-rpath $CLFS/usr/lib|g" \
23 -e "s|\$(libarchive_la_LIBADD) \$(LIBS)|-L$CLFS/usr/lib|g" -i Makefile.in
24
6dca1d21
JB
25 ./configure --build=$CHOST \
26 --host=$CTARGET \
27 --prefix=/usr \
5333ef72
VM
28 --without-lzmadec \
29 --without-xml2 \
30 --without-expat \
31 --without-openssl
570111a9
VM
32
33 # Forcing libtool to prioritize our sysroot
34 sed "s|lt_sysroot=|lt_sysroot=$CLFS|g" -i libtool
35
6dca1d21
JB
36 make
37 make DESTDIR=$PKG install
38}