1 # Contributor: Jed Brown <jed@59A2.org>
6 pkgdesc="Performance Application Programming Interface"
8 url="http://icl.cs.utk.edu/papi/"
10 depends=(glibc linux-api-headers)
15 source=(http://icl.cs.utk.edu/projects/papi/downloads/${pkgname}-${pkgver}.tar.gz)
16 md5sums=('ca5f85fd2474c11bc847a6c784ca2668')
19 cd ${srcdir}/${pkgname}-${pkgver}/src
20 # Internal library has noisy code, but they set -Werror anyway.
22 --- a/libpfm-3.y/config.mk 2010-07-21 13:56:22.152052317 +0200
23 +++ b/libpfm-3.y/config.mk 2010-07-21 13:56:38.568721079 +0200
26 PFMINCDIR=\$(TOPDIR)/include
27 PFMLIBDIR=\$(TOPDIR)/lib
28 -DBG?=-g -Wall -Werror
31 ifeq (\$(CONFIG_PFMLIB_ARCH_SICORTEX),y)
35 --- i/libpfm4/config.mk
36 +++ w/libpfm4/config.mk
37 @@ -172,7 +172,7 @@ INSTALL=install
39 PFMINCDIR=\$(TOPDIR)/include
40 PFMLIBDIR=\$(TOPDIR)/lib
41 -DBG?=-g -Wall -Werror
43 CFLAGS+=\$(OPTIM) \$(DBG) -I\$(SYSINCDIR) -I\$(PFMINCDIR)
45 PFMLIB=\$(PFMLIBDIR)/libpfm.a
48 unset MAKEFLAGS # Makefiles are broken for parallel make
49 ./configure --prefix=/usr --with-perf-events \
50 LDFLAGS="${LDFLAGS} -Wl,--no-as-needed" # Configure has a problem detecting dlopen()
52 make DESTDIR=$pkgdir install
53 install -D $srcdir/$pkgname-$pkgver/LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE