aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-08-11 23:23:17 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-11 23:23:17 +0000
commit32557eb83e20f057856eb2c292fb45990f7d11bd (patch)
tree1e36ab118d9ab43540c7fe4367a1466cc83cc6fe
parent8af00a7e3b696c6f664975f35f1a81abe145a1c4 (diff)
downloadaports-32557eb83e20f057856eb2c292fb45990f7d11bd.tar.bz2
aports-32557eb83e20f057856eb2c292fb45990f7d11bd.tar.xz
main/abiword: gcc6 build fix
-rw-r--r--main/abiword/APKBUILD16
1 files changed, 4 insertions, 12 deletions
diff --git a/main/abiword/APKBUILD b/main/abiword/APKBUILD
index 0703942dc2..4f4ddbf5cd 100644
--- a/main/abiword/APKBUILD
+++ b/main/abiword/APKBUILD
@@ -31,18 +31,11 @@ done
source="http://www.abisource.com/downloads/$pkgname/$pkgver/source/$pkgname-$pkgver.tar.gz
"
-_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
-}
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
+ export CXXFLAGS="$CXXFLAGS -std=gnu++98"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -54,9 +47,8 @@ build() {
make || return 1
}
-# ="opendocument goffice latex" \
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
}