Magellan Linux

Annotation of /smage/trunk/core/pkgconfig/pkgconfig-0.25-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 745 - (hide annotations) (download)
Thu Oct 21 17:06:51 2010 UTC (13 years, 7 months ago) by niro
File size: 1187 byte(s)
auto added: ver bump to 0.25-r2
1 niro 745 # $Id: pkgconfig-0.23-r3.smage2 3117 2009-10-13 14:24:22Z niro $
2    
3     PNAME="pkgconfig"
4     PVER="0.25"
5     PBUILD="r2"
6    
7     PCATEGORIE="dev-util"
8     STATE="unstable"
9    
10     DESCRIPTION="pkg-config is a helper tool used when compiling applications and libraries."
11     HOMEPAGE="http://pkgconfig.freedesktop.org/"
12    
13     DEPEND=">= virtual/glibc"
14    
15     SRCFILE="pkg-config-${PVER}.tar.gz"
16     SRCDIR="${BUILDDIR}/pkg-config-${PVER}"
17    
18     sminclude mbuild
19    
20     SRC_URI=(
21     http://pkgconfig.freedesktop.org/releases/${SRCFILE}
22     mirror://${PNAME}/${SRCFILE}
23     mirror://${PNAME}/${PNAME}-${PVER}-ac-regression.patch
24     )
25    
26     # use pkg-config as tarballname
27     UP2TARBALL="pkg-config"
28     UP2DATE="updatecmd_freedesktop ${PNAME} gz"
29    
30     src_prepare()
31     {
32     munpack ${SRCFILE} || die
33     cd ${SRCDIR}
34    
35     # fixes a regression with >=autoconf-2.66, for more details see:
36     # http://thread.gmane.org/gmane.comp.sysutils.autoconf.general/13133/focus=13153
37     mpatch ${PNAME}-${PVER}-ac-regression.patch || die
38     }
39    
40     src_compile()
41     {
42     cd ${SRCDIR}
43    
44     # set pc_path to /usr/lib/pkgconfig instead of /usr/lib/pkg-config
45     # >=0.19 is fixed upstream but we force this to prevent many problems
46     mconfigure --with-pc-path="\${libdir}/pkgconfig:\${datadir}/pkgconfig" || die
47     mmake || die
48     }