Annotation of /branches/R11-unstable/core/zlib/zlib-1.2.11-r2.smage2
Parent Directory
|
Revision Log
Revision 32077 -
(hide annotations)
(download)
Mon Apr 29 11:33:18 2019 UTC (5 years ago) by niro
File size: 844 byte(s)
Mon Apr 29 11:33:18 2019 UTC (5 years ago) by niro
File size: 844 byte(s)
-release branches/R11-unstable
1 | niro | 30416 | # $Id$ |
2 | |||
3 | PNAME="zlib" | ||
4 | PVER="1.2.11" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCAT="sys-libs" | ||
8 | |||
9 | DESCRIPTION="Standard (de)compression library." | ||
10 | HOMEPAGE="http://www.zlib.net/" | ||
11 | |||
12 | DEPEND=">= virtual/glibc" | ||
13 | |||
14 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
16 | |||
17 | sminclude multilib mbuild mtools | ||
18 | |||
19 | SRC_URI=( | ||
20 | http://www.zlib.net/${SRCFILE} | ||
21 | mirror://${PNAME}/${SRCFILE} | ||
22 | ) | ||
23 | |||
24 | UP2DATE="updatecmd ${HOMEPAGE} | grep -A2 'Current release:' | sed -n 's/.*zlib \(.*\)/\1/;$ p'" | ||
25 | |||
26 | src_compile() | ||
27 | { | ||
28 | export CFLAGS="${CFLAGS/-O2/-O3} -DUNALIGNED_OK" | ||
29 | |||
30 | # shared libaries | ||
31 | all-abis ./configure --shared --prefix=/usr --libdir=/usr/'$(mlibdir)' || die | ||
32 | mmake || die | ||
33 | } | ||
34 | |||
35 | src_install() | ||
36 | { | ||
37 | mmake DESTDIR=${BINDIR} install || die | ||
38 | |||
39 | # remove static libs | ||
40 | all-abis rm ${BINDIR}/usr/'$(mlibdir)'/\*.a || die | ||
41 | |||
42 | minstallman zlib.3 || die | ||
43 | minstalldocs ChangeLog FAQ INDEX README || die | ||
44 | } |