diff options
-rw-r--r-- | core/idnkit/PKGBUILD | 2 | ||||
-rw-r--r-- | core/lvm2/PKGBUILD | 2 | ||||
-rw-r--r-- | core/mkinitcpio-busybox/PKGBUILD | 13 | ||||
-rw-r--r-- | core/xfsprogs/PKGBUILD | 1 | ||||
-rw-r--r-- | extra/kdegraphics/PKGBUILD | 6 |
5 files changed, 18 insertions, 6 deletions
diff --git a/core/idnkit/PKGBUILD b/core/idnkit/PKGBUILD index 60b099f60..ad97b1283 100644 --- a/core/idnkit/PKGBUILD +++ b/core/idnkit/PKGBUILD @@ -17,6 +17,8 @@ backup=('etc/idnalias.conf' 'etc/idn.conf') build() { cd "${srcdir}/idnkit-${pkgver}-src" ./configure \ + --host=$CHOST \ + --build=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ diff --git a/core/lvm2/PKGBUILD b/core/lvm2/PKGBUILD index 39e3b4561..9589fa588 100644 --- a/core/lvm2/PKGBUILD +++ b/core/lvm2/PKGBUILD @@ -7,7 +7,7 @@ pkgname=('lvm2' 'device-mapper') pkgver=2.02.85 _pkgverlvm=${pkgver} pkgrel=2 -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://sourceware.org/lvm2/" license=('GPL2' 'LGPL2.1') groups=('base') diff --git a/core/mkinitcpio-busybox/PKGBUILD b/core/mkinitcpio-busybox/PKGBUILD index 7b59c45c8..7458facf3 100644 --- a/core/mkinitcpio-busybox/PKGBUILD +++ b/core/mkinitcpio-busybox/PKGBUILD @@ -17,11 +17,14 @@ build() { cd "${srcdir}/busybox-${pkgver}" unset CFLAGS CXXFLAGS - if [ ${CARCH} = "x86_64" ]; then - sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=x86-64 -mtune=generic -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config - else - sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=i686 -mtune=generic -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config - fi + case $CARCH in + x86_64) + sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=x86-64 -mtune=generic -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config ;; + i686) + sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-march=i686 -mtune=generic -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config ;; + mips64el) + sed 's|^CONFIG_EXTRA_CFLAGS=.*|CONFIG_EXTRA_CFLAGS="-O2 -march=loongson2f -mabi=n32 -mplt -Wa,-mfix-loongson2f-nop -Os -pipe -fno-strict-aliasing"|' "${srcdir}/config" > .config ;; + esac make } diff --git a/core/xfsprogs/PKGBUILD b/core/xfsprogs/PKGBUILD index 6751be9ec..9d01c2a9b 100644 --- a/core/xfsprogs/PKGBUILD +++ b/core/xfsprogs/PKGBUILD @@ -17,6 +17,7 @@ md5sums=('b1db37749e2b4149a0dd178abff956be') build() { cd "${srcdir}/${pkgname}-${pkgver}" export OPTIMIZER="-march=${CARCH/_/-} -O1" + [ "$CARCH" = "mips64el" ] && export OPTIMIZER="-mabi=n32 -march=loongson2f -O1" export DEBUG=-DNDEBUG make } diff --git a/extra/kdegraphics/PKGBUILD b/extra/kdegraphics/PKGBUILD index e0f3951f8..9cbff59d8 100644 --- a/extra/kdegraphics/PKGBUILD +++ b/extra/kdegraphics/PKGBUILD @@ -21,6 +21,9 @@ groups=('kde' 'kdegraphics') makedepends=('pkgconfig' 'cmake' 'automoc4' 'qimageblitz' 'sane' 'lcms' 'libxxf86vm' 'poppler-qt' 'libspectre' 'chmlib' 'djvulibre' 'ebook-tools' 'kdebase-runtime') +[ "$CARCH" = "mips64el" ] && makedepends=('pkgconfig' 'cmake' 'automoc4' 'qimageblitz' 'lcms' + 'libxxf86vm' 'poppler-qt' 'libspectre' 'djvulibre' + 'ebook-tools' 'kdebase-runtime') source=("http://download.kde.org/stable/${pkgver}/src/${pkgbase}-${pkgver}.tar.bz2") sha1sums=('c16dc9c55e7459418fa9887aa532ea0a269e7179') @@ -136,6 +139,9 @@ package_kdegraphics-okular() { pkgdesc='Document Viewer' depends=('kdebase-runtime' 'qimageblitz' 'poppler-qt' 'chmlib' 'djvulibre' 'ebook-tools' 'libspectre') +[ "$CARCH" = "mips64el" ] && \ + depends=('kdebase-runtime' 'qimageblitz' 'poppler-qt' 'djvulibre' + 'ebook-tools' 'libspectre') url="http://kde.org/applications/graphics/okular/" install='kdegraphics.install' cd $srcdir/build/okular |