Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/pkgconfig/pkgconfig-0.25-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2506 - (show annotations) (download)
Thu Jun 30 13:55:15 2011 UTC (12 years, 11 months ago) by niro
File size: 1149 byte(s)
-removed STATE variable from smage files, use global distribution file for package/distribution states
1 # $Id$
2
3 PNAME="pkgconfig"
4 PVER="0.25"
5 PBUILD="r1"
6
7 PCATEGORIE="dev-util"
8
9 DESCRIPTION="pkg-config is a helper tool used when compiling applications and libraries."
10 HOMEPAGE="http://pkgconfig.freedesktop.org/"
11
12 DEPEND=">= virtual/glibc"
13
14 SRCFILE="pkg-config-${PVER}.tar.gz"
15 SRCDIR="${BUILDDIR}/pkg-config-${PVER}"
16
17 REMOVE_DEPRECATED_MAGE_TARGETS=1
18 sminclude mbuild alx
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 }