summaryrefslogtreecommitdiff
path: root/extra/abiword
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-06-26 14:51:46 -0500
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-06-26 14:51:46 -0500
commit2095d71af1b9e0c1dff405c178a9481d1020ca3e (patch)
treea2190dce78cc35a9d986c1617b6c9aaeff9a3ed6 /extra/abiword
parent3c73cfcac55209f61a48650c9254f72f46a93500 (diff)
parentd85795e61e77e250f1051d287241ef7cf2247cc6 (diff)
today batch
Diffstat (limited to 'extra/abiword')
-rw-r--r--extra/abiword/PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/extra/abiword/PKGBUILD b/extra/abiword/PKGBUILD
index b2e9ef2ca..4b81dc298 100644
--- a/extra/abiword/PKGBUILD
+++ b/extra/abiword/PKGBUILD
@@ -16,6 +16,33 @@ source=("http://www.abisource.com/downloads/${pkgbase}/${pkgver}/source/${pkgbas
sha1sums=('998f69d038000b3fc027d4259548f02d67c8d0df'
'e5374f439e3d9b63a4bbd2cd39146c67cf1e85ea')
+if [ "${CARCH}" = 'mips64el' ]; then
+
+ ARCHFLAGS=""
+ for opt in ${CFLAGS}; do
+ case ${opt} in
+ -O?) ARCHFLAGS+="-O1 " ;;
+ *) ARCHFLAGS+="${opt} " ;;
+ esac
+ done
+ CFLAGS=${ARCHFLAGS}
+
+ ARCHFLAGS=""
+ for opt in ${CXXFLAGS}; do
+ case ${opt} in
+ -O?) ARCHFLAGS+="-O1 " ;;
+ *) ARCHFLAGS+="${opt} " ;;
+ esac
+ done
+ CXXFLAGS=${ARCHFLAGS}
+
+ unset ARCHFLAGS
+
+ echo CFLAGS : ${CFLAGS}
+ echo CXXFLAGS: ${CXXFLAGS}
+fi
+
+
build() {
cd "${srcdir}/${pkgbase}-${pkgver}"