Annotation of /trunk/core/libarchive/libarchive-3.0.4-r2.smage2
Parent Directory | Revision Log
Revision 12683 -
(hide annotations)
(download)
Wed Jun 27 11:25:20 2012 UTC (12 years, 3 months ago) by niro
File size: 1244 byte(s)
Wed Jun 27 11:25:20 2012 UTC (12 years, 3 months ago) by niro
File size: 1244 byte(s)
-added patch to fix ftbfs with gcc-4.7
1 | niro | 12682 | # $Id$ |
2 | |||
3 | PNAME="libarchive" | ||
4 | PVER="3.0.4" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCAT="app-arch" | ||
8 | |||
9 | DESCRIPTION="A library that can create and read several streaming archive formats." | ||
10 | HOMEPAGE="http://people.freebsd.org/~kientzle/libarchive/" | ||
11 | |||
12 | DEPEND=">= app-arch/bzip2-1.0.6 | ||
13 | >= app-arch/xz-utils-5.0.1 | ||
14 | >= dev-libs/openssl-1.0.0 | ||
15 | >= sys-libs/zlib-1.2 | ||
16 | >= sys-apps/attr-2.4 | ||
17 | >= sys-apps/acl-2.2" | ||
18 | |||
19 | SDEPEND=">= sys-fs/e2fsprogs-1.41 | ||
20 | >= virtual/kernel-headers" | ||
21 | |||
22 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
23 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
24 | |||
25 | sminclude mbuild | ||
26 | |||
27 | SRC_URI=( | ||
28 | https://github.com/downloads/${PNAME}/${PNAME}/${SRCFILE} | ||
29 | mirror://${PNAME}/${SRCFILE} | ||
30 | niro | 12683 | mirror://${PNAME}/${PNAME}-${PVER}-gcc47.patch |
31 | niro | 12682 | ) |
32 | |||
33 | UP2DATE="updatecmd https://github.com/${PNAME}/${PNAME}/downloads | firsttarball gz" | ||
34 | |||
35 | niro | 12683 | src_prepare() |
36 | { | ||
37 | munpack ${SRCFILE} || die | ||
38 | cd ${SRCDIR} | ||
39 | |||
40 | # fix compile issues with gcc-4.7 | ||
41 | mpatch ${PNAME}-${PVER}-gcc47.patch || die | ||
42 | } | ||
43 | |||
44 | niro | 12682 | src_compile() |
45 | { | ||
46 | cd ${SRCDIR} | ||
47 | |||
48 | # without-lzmadec is disabled because we use the newer lzma lib from xz-utils | ||
49 | mconfigure \ | ||
50 | --disable-dependency-tracking \ | ||
51 | --enable-bsdtar=shared \ | ||
52 | --enable-bsdcpio=shared \ | ||
53 | --enable-acl \ | ||
54 | --enable-xattr \ | ||
55 | --with-zlib \ | ||
56 | --with-bz2lib\ | ||
57 | --with-lzma \ | ||
58 | --without-lzmadec \ | ||
59 | || die | ||
60 | |||
61 | mmake || die | ||
62 | } |