summaryrefslogtreecommitdiffstats
path: root/main/distcc
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-02 12:10:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-02 12:10:20 +0000
commitccfebb5a5e5c3b4547896cfde292521daceb9de5 (patch)
tree9b56f97936eebbc8aa93bcdd2f62e4fc0f147dba /main/distcc
parent1bac8a64fde0dde6f3357309fe9bc452e92b7898 (diff)
downloadaports-ccfebb5a5e5c3b4547896cfde292521daceb9de5.tar.bz2
aports-ccfebb5a5e5c3b4547896cfde292521daceb9de5.tar.xz
main/distcc: build fix. disable -Werror
Diffstat (limited to 'main/distcc')
-rw-r--r--main/distcc/APKBUILD29
1 files changed, 20 insertions, 9 deletions
diff --git a/main/distcc/APKBUILD b/main/distcc/APKBUILD
index 8d2212c0c..0ba9a0966 100644
--- a/main/distcc/APKBUILD
+++ b/main/distcc/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=distcc
pkgver=3.1
-pkgrel=6
+pkgrel=7
pkgdesc="A distributed C, C++, Obj C compiler"
url="http://distcc.org"
arch="all"
@@ -13,20 +13,31 @@ source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.bz2
distcc-hardened.patch
distccd.initd distccd.confd"
subpackages="$pkgname-doc $pkgname-pump"
-
-build ()
-{
- cd "$srcdir/$pkgname-$pkgver"
- for i in ../*.patch; do
- msg "applying $i"
- patch -p1 < $i || return 1
+
+_builddir="$srcdir/$pkgname-$pkgver"
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
done
+}
+
+build() {
+ cd "$_builddir"
./configure --prefix=/usr \
--without-gtk \
--sysconfdir=/etc \
- --mandir=/usr/share/man
+ --disable-Werror \
+ --mandir=/usr/share/man \
+ || return 1
make || return 1
+}
+
+package() {
+ cd "$_builddir"
make DESTDIR="$pkgdir" install
install -D -m644 ../distccd.confd "$pkgdir"/etc/conf.d/distccd