aboutsummaryrefslogtreecommitdiffstats
path: root/main/oprofile/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-12-01 10:53:08 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-12-01 10:53:08 +0000
commit39728e1a5a22107a9774ce89d756a94301024c43 (patch)
tree05083c8256e71dfadfe3991a2a38e7ee3202c71a /main/oprofile/APKBUILD
parent0f6e6cbb840ffa1154965e2e408b6a5e231ec433 (diff)
downloadaports-39728e1a5a22107a9774ce89d756a94301024c43.tar.bz2
aports-39728e1a5a22107a9774ce89d756a94301024c43.tar.xz
main/oprofile: only apply pie patch if non x86_64
Diffstat (limited to 'main/oprofile/APKBUILD')
-rw-r--r--main/oprofile/APKBUILD13
1 files changed, 8 insertions, 5 deletions
diff --git a/main/oprofile/APKBUILD b/main/oprofile/APKBUILD
index bc81fff7a9..87d9f2ba80 100644
--- a/main/oprofile/APKBUILD
+++ b/main/oprofile/APKBUILD
@@ -7,7 +7,7 @@ pkgdesc="A System Profiler for Linux"
url="http://oprofile.sourceforge.net/"
license="GPL"
depends=""
-makedepends="libiconv-dev popt-dev gettext"
+makedepends="libiconv-dev popt-dev gettext-dev"
install=
subpackages="$pkgname-doc"
source="http://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
@@ -17,10 +17,9 @@ _builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
- for i in ../*.patch; do
- msg "Apply $i"
- patch -p1 < $i || return 1
- done
+ if [ "$CARCH" != "x86_64" ]; then
+ patch -p1 -i "$srcdir"/oprofile-pic.patch
+ fi
}
build() {
@@ -33,6 +32,10 @@ build() {
--with-kernel-support \
--with-pic
make -j1 || return 1
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
make -j1 DESTDIR="$pkgdir" install
#install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/knockd