diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-07-30 08:51:11 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-07-30 08:54:53 +0000 |
commit | 5c904717322f8113870abf48cc93c3c8b00ab4e8 (patch) | |
tree | e077e5c3afa20630fd6e96db5872f03d622d639e | |
parent | a879839450737e3cbdb64415af42347c97ccfa28 (diff) | |
download | aports-5c904717322f8113870abf48cc93c3c8b00ab4e8.zip |
[all autotools packages]: normalize ./configure
950 files changed, 5024 insertions, 1518 deletions
diff --git a/main/a2ps/APKBUILD b/main/a2ps/APKBUILD index d5bb45a5826..72f35c7a472 100644 --- a/main/a2ps/APKBUILD +++ b/main/a2ps/APKBUILD @@ -36,10 +36,14 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc/a2ps \ --includedir=/usr/include \ - --disable-nls || return 1 + --disable-nls \ + || return 1 make } diff --git a/main/a52dec/APKBUILD b/main/a52dec/APKBUILD index 69274feca4f..16b63aaddfd 100644 --- a/main/a52dec/APKBUILD +++ b/main/a52dec/APKBUILD @@ -27,7 +27,10 @@ prepare() { build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-shared \ || return 1 make || return 1 diff --git a/main/abiword/APKBUILD b/main/abiword/APKBUILD index 5845ae2e2ca..e961420b04d 100644 --- a/main/abiword/APKBUILD +++ b/main/abiword/APKBUILD @@ -46,7 +46,10 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-shared \ --disable-static \ --enable-plugins \ diff --git a/main/acct/APKBUILD b/main/acct/APKBUILD index 921cdca4143..d0a7142f9b6 100644 --- a/main/acct/APKBUILD +++ b/main/acct/APKBUILD @@ -25,10 +25,14 @@ build() { cd "$srcdir/$pkgname-$pkgver" # seems like this makefile does not respect DESTDIR - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir="$pkgdir"/usr/share/man \ --infodir="$pkgdir"/usr/share/info \ - --enable-linux-multiformat + --enable-linux-multiformat \ + || return 1 make LDADD="-lm lib/libgnu.la" || return 1 } diff --git a/main/acl/APKBUILD b/main/acl/APKBUILD index bed3e6301c6..de8153af4a0 100644 --- a/main/acl/APKBUILD +++ b/main/acl/APKBUILD @@ -29,7 +29,10 @@ build() { unset PLATFORM export OPTIMIZER="${CFLAGS}" export DEBUG=-DNDEBUG - CONFIG_SHELL=/bin/sh ./configure --prefix=/usr \ + CONFIG_SHELL=/bin/sh ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --libdir=/lib \ --libexecdir=/usr/lib \ --disable-gettext \ diff --git a/main/afpfs-ng/APKBUILD b/main/afpfs-ng/APKBUILD index d5f94c37169..347b1494077 100644 --- a/main/afpfs-ng/APKBUILD +++ b/main/afpfs-ng/APKBUILD @@ -41,7 +41,10 @@ build() { if [ "$ALPINE_LIBC" != "eglibc" ]; then export LDFLAGS="$LDFLAGS -liconv" fi - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/alpine/APKBUILD b/main/alpine/APKBUILD index e379a371abd..fe373753747 100644 --- a/main/alpine/APKBUILD +++ b/main/alpine/APKBUILD @@ -37,12 +37,16 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --without-passfile \ --without-tcl \ --disable-shared \ --with-system-pinerc=/etc/alpine.d/pine.conf \ - --with-system-fixed-pinerc=/etc/alpine.d/pine.conf.fixed + --with-system-fixed-pinerc=/etc/alpine.d/pine.conf.fixed \ + || return 1 make } diff --git a/main/alsa-lib/APKBUILD b/main/alsa-lib/APKBUILD index 7b967df1ac9..ab945f67f5d 100644 --- a/main/alsa-lib/APKBUILD +++ b/main/alsa-lib/APKBUILD @@ -11,7 +11,10 @@ subpackages="$pkgname-dev" source="http://alsa.cybermirror.org/lib/$pkgname-$pkgver.tar.bz2" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-python \ --disable-static \ --disable-resmgr \ diff --git a/main/alsa-utils/APKBUILD b/main/alsa-utils/APKBUILD index e9e60510b63..ea0db530067 100644 --- a/main/alsa-utils/APKBUILD +++ b/main/alsa-utils/APKBUILD @@ -30,7 +30,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-xmlto \ --disable-nls \ || return 1 diff --git a/main/apache-mod-auth-kerb/APKBUILD b/main/apache-mod-auth-kerb/APKBUILD index 9e4dfd66aed..3ccc9f8e921 100644 --- a/main/apache-mod-auth-kerb/APKBUILD +++ b/main/apache-mod-auth-kerb/APKBUILD @@ -29,10 +29,14 @@ prepare() { build() { cd $srcdir/$_pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-krb5=/usr \ --without-krb4 \ - --with-apache=/usr + --with-apache=/usr \ + || return 1 make -j1 || return 1 } diff --git a/main/apache2/APKBUILD b/main/apache2/APKBUILD index db5d211c85d..9b689ac9124 100644 --- a/main/apache2/APKBUILD +++ b/main/apache2/APKBUILD @@ -37,7 +37,10 @@ prepare() { build() { cd "$srcdir"/httpd-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-layout=Alpine \ --enable-so \ --enable-suexec \ @@ -52,15 +55,19 @@ build() { --with-pcre=/usr \ --enable-mods-shared=all \ --enable-mpms-shared=all \ - --enable-ssl --with-ssl \ + --enable-ssl \ + --with-ssl \ --enable-proxy \ --enable-cache \ --enable-disk-cache \ --enable-mem-cache \ --enable-file-cache \ - --enable-ldap --enable-authnz-ldap \ - --enable-cgid --enable-cgi \ - --enable-authn-anon --enable-authn-alias \ + --enable-ldap \ + --enable-authnz-ldap \ + --enable-cgid \ + --enable-cgi \ + --enable-authn-anon \ + --enable-authn-alias \ --disable-imagemap \ --enable-proxy-connect \ --enable-proxy-http \ diff --git a/main/apcupsd/APKBUILD b/main/apcupsd/APKBUILD index eb044367371..31a6d5a1ba8 100644 --- a/main/apcupsd/APKBUILD +++ b/main/apcupsd/APKBUILD @@ -22,10 +22,14 @@ build() { export LANG="C" ac_cv_path_SHUTDOWN="/sbin/poweroff" \ - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --enable-usb \ - --enable-snmp + --enable-snmp \ + || return 1 make || return 1 } diff --git a/main/apr-util/APKBUILD b/main/apr-util/APKBUILD index 313fe053dc7..f08d81db300 100644 --- a/main/apr-util/APKBUILD +++ b/main/apr-util/APKBUILD @@ -17,7 +17,10 @@ source="http://www.apache.org/dist/apr/$pkgname-$pkgver.tar.bz2" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-apr=/usr \ --with-ldap \ --with-pgsql \ diff --git a/main/apr/APKBUILD b/main/apr/APKBUILD index 6c0546caf34..fe1bfb7e5a6 100644 --- a/main/apr/APKBUILD +++ b/main/apr/APKBUILD @@ -21,10 +21,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --datadir=/usr/share \ --enable-nonportable-atomics \ - --with-devrandom=/dev/urandom + --with-devrandom=/dev/urandom \ + || return 1 make || return 1 } diff --git a/main/argp-standalone/APKBUILD b/main/argp-standalone/APKBUILD index 74765d5dec9..485930bb310 100644 --- a/main/argp-standalone/APKBUILD +++ b/main/argp-standalone/APKBUILD @@ -26,7 +26,11 @@ prepare() { } build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } package() { diff --git a/main/aria2/APKBUILD b/main/aria2/APKBUILD index 7ff9aeff502..466093ad9bd 100644 --- a/main/aria2/APKBUILD +++ b/main/aria2/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-nls \ --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \ || return 1 diff --git a/main/arpwatch/APKBUILD b/main/arpwatch/APKBUILD index 6679be4dab2..94ce2ce64da 100644 --- a/main/arpwatch/APKBUILD +++ b/main/arpwatch/APKBUILD @@ -53,10 +53,14 @@ prepare() { build() { cd $_builddir - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make -j1 || return 1 } diff --git a/main/asciidoc/APKBUILD b/main/asciidoc/APKBUILD index 31657e05d6f..60f233058ef 100644 --- a/main/asciidoc/APKBUILD +++ b/main/asciidoc/APKBUILD @@ -25,7 +25,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/aspell-en/APKBUILD b/main/aspell-en/APKBUILD index be1621e2b34..7f79a21b390 100644 --- a/main/aspell-en/APKBUILD +++ b/main/aspell-en/APKBUILD @@ -13,7 +13,10 @@ source="ftp://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-$pkgver-0.tar.bz2" _builddir="$srcdir"/aspell6-en-$pkgver-0 build () { cd "$_builddir" - ./configure || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + || return 1 make || return 1 } diff --git a/main/aspell/APKBUILD b/main/aspell/APKBUILD index bbb75cf77f7..7397ce1ace7 100644 --- a/main/aspell/APKBUILD +++ b/main/aspell/APKBUILD @@ -16,7 +16,11 @@ source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 # we want add -lm to linker flag for libaspell so wil build that # separately. this is just an ugly workaround diff --git a/main/asterisk/APKBUILD b/main/asterisk/APKBUILD index b994cdc79fb..69d3cadb229 100644 --- a/main/asterisk/APKBUILD +++ b/main/asterisk/APKBUILD @@ -67,16 +67,27 @@ prepare() { build() { cd "$_builddir" - SHA1SUM="$PWD"/build_tools/sha1sum-sh ./configure --prefix=/usr \ + SHA1SUM="$PWD"/build_tools/sha1sum-sh ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --libdir=/usr/lib \ --localstatedir=/var \ - --disable-xmldoc --with-gsm=internal \ - --without-iconv --with-popt --with-z --with-newt \ - --with-unixodbc --with-postgres --with-tds \ - --with-dahdi --with-pri --with-tonezone \ + --disable-xmldoc \ + --with-gsm=internal \ + --without-iconv \ + --with-popt \ + --with-z \ + --with-newt \ + --with-unixodbc \ + --with-postgres \ + --with-tds \ + --with-dahdi \ + --with-pri \ + --with-tonezone \ --with-resample \ --with-sqlite3 \ --with-speex \ diff --git a/main/at-spi2-atk/APKBUILD b/main/at-spi2-atk/APKBUILD index 217c70a6fe4..6ff338f1de2 100644 --- a/main/at-spi2-atk/APKBUILD +++ b/main/at-spi2-atk/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/at-spi2-core/APKBUILD b/main/at-spi2-core/APKBUILD index 1442926c1cb..0e5eb5ad2e0 100644 --- a/main/at-spi2-core/APKBUILD +++ b/main/at-spi2-core/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - DATADIRNAME="share" ./configure --prefix=/usr \ + DATADIRNAME="share" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ || return 1 diff --git a/main/aterm/APKBUILD b/main/aterm/APKBUILD index e6b10ac4403..0cab852435c 100644 --- a/main/aterm/APKBUILD +++ b/main/aterm/APKBUILD @@ -16,12 +16,16 @@ build () { cd "$srcdir"/$pkgname-$pkgver patch -p1 < ../uclibc.patch || return 1 - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-transparency=yes \ --enable-background-image \ --enable-fading \ --enable-menubar \ - --enable-graphics + --enable-graphics \ + || return 1 make || return 1 make prefix="$pkgdir"/usr install } diff --git a/main/atk/APKBUILD b/main/atk/APKBUILD index 510bb9be95e..005aa371af0 100644 --- a/main/atk/APKBUILD +++ b/main/atk/APKBUILD @@ -14,7 +14,10 @@ source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$p depends_dev="glib-dev" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-introspection \ || return 1 make || return 1 diff --git a/main/atkmm/APKBUILD b/main/atkmm/APKBUILD index da8a981d208..d2d64639c04 100644 --- a/main/atkmm/APKBUILD +++ b/main/atkmm/APKBUILD @@ -15,7 +15,11 @@ replaces="gtkmm" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make } diff --git a/main/attr/APKBUILD b/main/attr/APKBUILD index a21e209ffa1..c17cdd4f870 100644 --- a/main/attr/APKBUILD +++ b/main/attr/APKBUILD @@ -32,6 +32,8 @@ build() { export DEBUG=-DNDEBUG ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/ \ --exec-prefix=/ \ --sbindir=/bin \ @@ -42,7 +44,8 @@ build() { --includedir=/usr/include \ --mandir=/usr/share/man \ --datadir=/usr/share \ - --disable-gettext || return 1 + --disable-gettext \ + || return 1 make LIBTOOL="libtool --tag=CC" || return 1 } diff --git a/main/audacious-plugins/APKBUILD b/main/audacious-plugins/APKBUILD index 6f7ba5c0eaa..7ada8567116 100644 --- a/main/audacious-plugins/APKBUILD +++ b/main/audacious-plugins/APKBUILD @@ -75,7 +75,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/audacity/APKBUILD b/main/audacity/APKBUILD index e2fbe3b8d51..8333048c5d1 100644 --- a/main/audacity/APKBUILD +++ b/main/audacity/APKBUILD @@ -29,7 +29,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --with-libsndfile=system \ diff --git a/main/augeas/APKBUILD b/main/augeas/APKBUILD index 3536fbae888..ff7366c1fce 100644 --- a/main/augeas/APKBUILD +++ b/main/augeas/APKBUILD @@ -29,10 +29,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 make tests || return 1 } diff --git a/main/aumix/APKBUILD b/main/aumix/APKBUILD index 6a2f304cfa4..aef2bae5e9e 100644 --- a/main/aumix/APKBUILD +++ b/main/aumix/APKBUILD @@ -18,11 +18,15 @@ prepare() { build() { cd "$srcdir"/aumix-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --without-gtk1 \ --without-gtk \ - --disable-nls + --disable-nls \ + || return 1 make || return 1 } diff --git a/main/autoconf/APKBUILD b/main/autoconf/APKBUILD index e93797575a1..b29fadad069 100644 --- a/main/autoconf/APKBUILD +++ b/main/autoconf/APKBUILD @@ -24,7 +24,11 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - M4=/usr/bin/m4 ./configure --prefix=/usr + M4=/usr/bin/m4 ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/autoconf2.13/APKBUILD b/main/autoconf2.13/APKBUILD index 0265210f70b..f21a0dd0c48 100644 --- a/main/autoconf2.13/APKBUILD +++ b/main/autoconf2.13/APKBUILD @@ -25,7 +25,12 @@ prepare() { build() { cd "$_builddir" - M4=/usr/bin/m4 ./configure --prefix=/usr --program-suffix=-2.13 + M4=/usr/bin/m4 ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --program-suffix=-2.13 \ + || return 1 make || return 1 } diff --git a/main/automake/APKBUILD b/main/automake/APKBUILD index ce12dadc6d0..96f2e24e416 100644 --- a/main/automake/APKBUILD +++ b/main/automake/APKBUILD @@ -13,7 +13,11 @@ subpackages="$pkgname-doc" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/avahi/APKBUILD b/main/avahi/APKBUILD index 05b9a540981..bad49f3f6df 100644 --- a/main/avahi/APKBUILD +++ b/main/avahi/APKBUILD @@ -33,7 +33,10 @@ build () { cd "$srcdir/$pkgname-$pkgver" # we dont build autoipd since dhcpcd does same job - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-autoipd \ @@ -47,7 +50,8 @@ build () --enable-compat-libdns_sd \ --enable-compat-howl \ --with-distro="gentoo" \ - --with-systemdsystemunitdir=/lib/systemd/system + --with-systemdsystemunitdir=/lib/systemd/system \ + || return 1 make } diff --git a/main/avfs/APKBUILD b/main/avfs/APKBUILD index 47c5c0218e1..f4db7bb02f7 100644 --- a/main/avfs/APKBUILD +++ b/main/avfs/APKBUILD @@ -22,7 +22,13 @@ prepare() { build() { cd "$_builddir" - ./configure --enable-fuse --enable-library --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --enable-fuse \ + --enable-library \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/axel/APKBUILD b/main/axel/APKBUILD index 1c2051c51f7..e7b94c7c409 100644 --- a/main/axel/APKBUILD +++ b/main/axel/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --etcdir=/etc \ --mandir=/usr/share/man \ --i18n=0 \ diff --git a/main/babl/APKBUILD b/main/babl/APKBUILD index 2875aaf6784..e3ea93c136d 100644 --- a/main/babl/APKBUILD +++ b/main/babl/APKBUILD @@ -13,7 +13,11 @@ source="ftp://ftp.gimp.org/pub/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/bacula-client/APKBUILD b/main/bacula-client/APKBUILD index 4b8956089d8..0b69988b60a 100644 --- a/main/bacula-client/APKBUILD +++ b/main/bacula-client/APKBUILD @@ -44,24 +44,28 @@ prepare () { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc/bacula \ - --localstatedir=/var \ - --mandir=/usr/share/man \ - --docdir=/usr/share/doc \ - --infodir=/usr/share/info \ - --with-pid-dir=/var/run \ - --with-subsys-dir=/var/lock/subsys \ - --with-logdir=/var/log/bacula \ - --enable-largefile \ - --enable-client-only \ - --enable-smartalloc \ - --disable-nls \ - --with-openssl=/usr/include/openssl \ - --with-scriptdir=/etc/bacula/scripts \ - --with-working-dir=/var/lib/bacula \ - --with-fd-user=root \ - --with-fd-group=root + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc/bacula \ + --localstatedir=/var \ + --mandir=/usr/share/man \ + --docdir=/usr/share/doc \ + --infodir=/usr/share/info \ + --with-pid-dir=/var/run \ + --with-subsys-dir=/var/lock/subsys \ + --with-logdir=/var/log/bacula \ + --enable-largefile \ + --enable-client-only \ + --enable-smartalloc \ + --disable-nls \ + --with-openssl=/usr/include/openssl \ + --with-scriptdir=/etc/bacula/scripts \ + --with-working-dir=/var/lib/bacula \ + --with-fd-user=root \ + --with-fd-group=root \ + || return 1 make || return 1 } diff --git a/main/bacula/APKBUILD b/main/bacula/APKBUILD index faa3e8f3764..433e0dd6bf4 100644 --- a/main/bacula/APKBUILD +++ b/main/bacula/APKBUILD @@ -50,31 +50,35 @@ prepare () { build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ - --sysconfdir=/etc/bacula \ - --localstatedir=/var \ - --mandir=/usr/share/man \ - --docdir=/usr/share/doc \ - --infodir=/usr/share/info \ - --with-pid-dir=/var/run \ - --with-subsys-dir=/var/lock/subsys \ - --with-logdir=/var/log/bacula \ - --enable-largefile \ - --enable-smartalloc \ - --disable-nls \ - --with-openssl=/usr/include/openssl \ - --with-postgresql \ - --with-mysql \ - --with-sqlite3 \ - --with-scriptdir=/etc/bacula/scripts \ - --with-working-dir=/var/lib/bacula \ - --with-dir-user=bacula \ - --with-dir-group=bacula \ - --with-archivedir=/var/lib/bacula/archive \ - --with-sd-user=bacula \ - --with-sd-group=bacula \ - --with-fd-user=root \ - --with-fd-group=root + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc/bacula \ + --localstatedir=/var \ + --mandir=/usr/share/man \ + --docdir=/usr/share/doc \ + --infodir=/usr/share/info \ + --with-pid-dir=/var/run \ + --with-subsys-dir=/var/lock/subsys \ + --with-logdir=/var/log/bacula \ + --enable-largefile \ + --enable-smartalloc \ + --disable-nls \ + --with-openssl=/usr/include/openssl \ + --with-postgresql \ + --with-mysql \ + --with-sqlite3 \ + --with-scriptdir=/etc/bacula/scripts \ + --with-working-dir=/var/lib/bacula \ + --with-dir-user=bacula \ + --with-dir-group=bacula \ + --with-archivedir=/var/lib/bacula/archive \ + --with-sd-user=bacula \ + --with-sd-group=bacula \ + --with-fd-user=root \ + --with-fd-group=root \ + || return 1 make NO_ECHO= || return 1 } diff --git a/main/bash/APKBUILD b/main/bash/APKBUILD index 525c55941c0..c0f7b3ff7dd 100644 --- a/main/bash/APKBUILD +++ b/main/bash/APKBUILD @@ -47,15 +47,18 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --bindir=/bin \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ --with-curses \ --disable-nls \ --enable-readline \ --without-bash-malloc \ --with-installed-readline \ - --bindir=/bin \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ || return 1 make y.tab.c && make || return 1 } diff --git a/main/bc/APKBUILD b/main/bc/APKBUILD index 9625523f6d1..91fe8f95d99 100644 --- a/main/bc/APKBUILD +++ b/main/bc/APKBUILD @@ -26,10 +26,14 @@ prepare() { } build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/bdftopcf/APKBUILD b/main/bdftopcf/APKBUILD index 64445e269b6..136f201aed0 100644 --- a/main/bdftopcf/APKBUILD +++ b/main/bdftopcf/APKBUILD @@ -15,9 +15,13 @@ source="http://xorg.freedesktop.org//releases/individual/app/bdftopcf-$pkgver.ta _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ - --with-mapdir=/usr/share/fonts/util || return 1 + --with-mapdir=/usr/share/fonts/util \ + || return 1 make || return 1 } diff --git a/main/beecrypt/APKBUILD b/main/beecrypt/APKBUILD index 89922c4102e..344cc0a4902 100644 --- a/main/beecrypt/APKBUILD +++ b/main/beecrypt/APKBUILD @@ -26,13 +26,17 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --enable-threads \ --enable-shared \ --without-java \ --without-python \ - --with-cplusplus=no + --with-cplusplus=no \ + || return 1 make libaltdir=/usr/lib || return 1 } diff --git a/main/bigreqsproto/APKBUILD b/main/bigreqsproto/APKBUILD index 64937e21c14..da1424e9e7f 100644 --- a/main/bigreqsproto/APKBUILD +++ b/main/bigreqsproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.t build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/bind/APKBUILD b/main/bind/APKBUILD index 58add51e8ea..f4af2b90e8d 100644 --- a/main/bind/APKBUILD +++ b/main/bind/APKBUILD @@ -48,7 +48,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc/bind \ --localstatedir=/var \ --with-openssl=/usr \ @@ -61,7 +64,8 @@ build() { --with-libtool \ --with-randomdev=/dev/random \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/binutils/APKBUILD b/main/binutils/APKBUILD index a2aa83b4823..acc1ad43459 100644 --- a/main/binutils/APKBUILD +++ b/main/binutils/APKBUILD @@ -30,18 +30,20 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-build-sysroot="${CBUILDROOT}" \ - --build=${CBUILD} \ - --host=${CHOST} \ --target=${CTARGET} \ --disable-multilib \ --enable-shared \ --enable-64-bit-bfd \ --disable-werror \ - --disable-nls + --disable-nls \ + || return 1 make || return 1 } diff --git a/main/bison/APKBUILD b/main/bison/APKBUILD index 6167d8c165c..1aeb4f08761 100644 --- a/main/bison/APKBUILD +++ b/main/bison/APKBUILD @@ -18,16 +18,23 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --datadir=/usr/share \ --infodir=/usr/share/info \ - --mandir=/usr/share/man + --mandir=/usr/share/man \ + || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install + rm -rf "$pkgdir"/usr/lib/charset.alias + rmdir -p "$pkgdir"/usr/lib 2>/dev/null + return 0 } md5sums="7be02eb973eccf388f1ae750fc09eed0 bison-2.7.1.tar.xz" diff --git a/main/bitchx/APKBUILD b/main/bitchx/APKBUILD index 41ac30f2737..8cc9e96d6e6 100644 --- a/main/bitchx/APKBUILD +++ b/main/bitchx/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/bitlbee/APKBUILD b/main/bitlbee/APKBUILD index ff4ce3930e4..8feeb01b08b 100644 --- a/main/bitlbee/APKBUILD +++ b/main/bitlbee/APKBUILD @@ -30,10 +30,14 @@ prepare() { build() { cd "$_builddir" - ./configure --ssl=openssl \ - --otr=plugin \ - --prefix=/usr \ - --etcdir=/etc/bitlbee || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --ssl=openssl \ + --otr=plugin \ + --prefix=/usr \ + --etcdir=/etc/bitlbee \ + || return 1 make || return 1 } diff --git a/main/bluez-firmware/APKBUILD b/main/bluez-firmware/APKBUILD index 70257c37551..c2430d0b37c 100644 --- a/main/bluez-firmware/APKBUILD +++ b/main/bluez-firmware/APKBUILD @@ -12,7 +12,11 @@ source="http://bluez.sf.net/download/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --libdir=/lib || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --libdir=/lib \ + || return 1 make || return 1 } diff --git a/main/bluez-hcidump/APKBUILD b/main/bluez-hcidump/APKBUILD index dea82e7586e..316b562f593 100644 --- a/main/bluez-hcidump/APKBUILD +++ b/main/bluez-hcidump/APKBUILD @@ -24,7 +24,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ || return 1 make || return 1 diff --git a/main/bluez/APKBUILD b/main/bluez/APKBUILD index fde69fbdf2d..e2209ae449d 100644 --- a/main/bluez/APKBUILD +++ b/main/bluez/APKBUILD @@ -21,7 +21,10 @@ source="http://www.kernel.org/pub/linux/bluetooth/$pkgname-$pkgver.tar.bz2 _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/share/man \ diff --git a/main/bridge-utils/APKBUILD b/main/bridge-utils/APKBUILD index de02f9797e4..df74070e26b 100644 --- a/main/bridge-utils/APKBUILD +++ b/main/bridge-utils/APKBUILD @@ -14,7 +14,10 @@ source="http://downloads.sourceforge.net/project/bridge/bridge/bridge-utils-$pkg build() { cd "$srcdir"/$pkgname-$pkgver autoconf - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --libdir=/usr/lib \ --includedir=/usr/include \ diff --git a/main/bwm-ng/APKBUILD b/main/bwm-ng/APKBUILD index e4fcafbec1f..dd51782337a 100644 --- a/main/bwm-ng/APKBUILD +++ b/main/bwm-ng/APKBUILD @@ -14,11 +14,15 @@ source="http://www.gropp.org/$pkgname/$pkgname-$pkgver.tar.gz" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --with-libstatgrab \ - --with-procnetdev \ - --with-ncurses \ - --with-partitions + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --with-libstatgrab \ + --with-procnetdev \ + --with-ncurses \ + --with-partitions \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install || return 1 diff --git a/main/c-ares/APKBUILD b/main/c-ares/APKBUILD index 69c2c605653..4e9e7b105fe 100644 --- a/main/c-ares/APKBUILD +++ b/main/c-ares/APKBUILD @@ -15,10 +15,14 @@ source="http://c-ares.haxx.se/download/${pkgname}-${pkgver}.tar.gz" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --enable-shared + --enable-shared \ + || return 1 make || return 1 } diff --git a/main/cabextract/APKBUILD b/main/cabextract/APKBUILD index 13e03878fa2..7933d58d166 100644 --- a/main/cabextract/APKBUILD +++ b/main/cabextract/APKBUILD @@ -23,10 +23,14 @@ build () { cd $_builddir - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/cairo/APKBUILD b/main/cairo/APKBUILD index 2193b2d5f60..107445de026 100644 --- a/main/cairo/APKBUILD +++ b/main/cairo/APKBUILD @@ -16,7 +16,10 @@ source="http://cairographics.org/releases/$pkgname-$pkgver.tar.xz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-ft \ @@ -28,7 +31,8 @@ build() { --enable-xcb \ --enable-xlib-xrender \ --disable-xlib-xcb \ - --disable-static || return 1 + --disable-static \ + || return 1 make || return 1 } diff --git a/main/cairomm/APKBUILD b/main/cairomm/APKBUILD index 3fd3bc2831a..89cf14b2f60 100644 --- a/main/cairomm/APKBUILD +++ b/main/cairomm/APKBUILD @@ -15,7 +15,11 @@ source="http://www.cairographics.org/releases/cairomm-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/ccache/APKBUILD b/main/ccache/APKBUILD index a5bac7a8799..2be0e0d464e 100644 --- a/main/ccache/APKBUILD +++ b/main/ccache/APKBUILD @@ -14,7 +14,11 @@ source="http://samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.gz" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/cciss_vol_status/APKBUILD b/main/cciss_vol_status/APKBUILD index 4260569b175..182ee80cfb6 100644 --- a/main/cciss_vol_status/APKBUILD +++ b/main/cciss_vol_status/APKBUILD @@ -21,10 +21,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/cdparanoia/APKBUILD b/main/cdparanoia/APKBUILD index fc065c1772e..10c37fc73a0 100644 --- a/main/cdparanoia/APKBUILD +++ b/main/cdparanoia/APKBUILD @@ -31,7 +31,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/cegui06/APKBUILD b/main/cegui06/APKBUILD index 34adeb874d1..bf4ffd770b6 100644 --- a/main/cegui06/APKBUILD +++ b/main/cegui06/APKBUILD @@ -31,7 +31,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/celt051/APKBUILD b/main/celt051/APKBUILD index 86e05c8f0dc..48a1955a9e2 100644 --- a/main/celt051/APKBUILD +++ b/main/celt051/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/cgdb/APKBUILD b/main/cgdb/APKBUILD index 661e7a2fab0..0f24fa91ec8 100644 --- a/main/cgdb/APKBUILD +++ b/main/cgdb/APKBUILD @@ -19,8 +19,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --libdir=/usr/lib || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --libdir=/usr/lib \ + || return 1 make || return 1 } diff --git a/main/charybdis/APKBUILD b/main/charybdis/APKBUILD index 4845ee7ae55..6b519be8a35 100644 --- a/main/charybdis/APKBUILD +++ b/main/charybdis/APKBUILD @@ -29,15 +29,18 @@ prepare() { build() { cd "$_builddir" ./configure \ - --prefix=/usr \ - --sysconfdir=/etc/charybdis \ - --localstatedir=/var \ - --libexecdir=/usr/lib \ - --disable-assert \ - --enable-ssl \ - --enable-ipv6 \ - --with-rundir=/var/run \ - --with-program-prefix=charybdis- + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc/charybdis \ + --localstatedir=/var \ + --libexecdir=/usr/lib \ + --disable-assert \ + --enable-ssl \ + --enable-ipv6 \ + --with-rundir=/var/run \ + --with-program-prefix=charybdis- \ + || return 1 make } @@ -55,7 +58,6 @@ package() { sed -i -e "s/\"modules\"/\"\/usr\/lib\/charybdis\/modules\"/g" $pkgdir/etc/$pkgname/example.conf sed -i -e "s/\"modules\/autoload\"/\"\/usr\/lib\/charybdis\/modules\/autoload\"/g" "$pkgdir"/etc/$pkgname/example.conf sed -i -e "s/usr\/local\/ircd\/modules/usr\/lib\/charybdis\/modules/g" "$pkgdir"/etc/$pkgname/reference.conf - } md5sums="54245396b829f8d19d3958cde9c3bd65 charybdis-3.4.2.tar.bz2 diff --git a/main/check/APKBUILD b/main/check/APKBUILD index e7b8c848316..f3c04742e25 100644 --- a/main/check/APKBUILD +++ b/main/check/APKBUILD @@ -18,6 +18,8 @@ _builddir="$srcdir"/check-$pkgver build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --infodir=/usr/share/info \ || return 1 diff --git a/main/chrony/APKBUILD b/main/chrony/APKBUILD index 0dd4520282f..1e3e27d76ef 100644 --- a/main/chrony/APKBUILD +++ b/main/chrony/APKBUILD @@ -35,10 +35,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ - --disable-readline + --disable-readline \ + || return 1 make all docs || return 1 } diff --git a/main/chrpath/APKBUILD b/main/chrpath/APKBUILD index 29cb87b75b0..0b4dd29d295 100644 --- a/main/chrpath/APKBUILD +++ b/main/chrpath/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/cifs-utils/APKBUILD b/main/cifs-utils/APKBUILD index 8f2ed90418a..79e98755df2 100644 --- a/main/cifs-utils/APKBUILD +++ b/main/cifs-utils/APKBUILD @@ -26,7 +26,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make AM_CFLAGS="" || return 1 } diff --git a/main/cksfv/APKBUILD b/main/cksfv/APKBUILD index cdf651fa992..b02f8b9e192 100644 --- a/main/cksfv/APKBUILD +++ b/main/cksfv/APKBUILD @@ -14,7 +14,11 @@ source="http://zakalwe.fi/~shd/foss/cksfv/files/${pkgname}-${pkgver}.tar.bz2" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 install -cD src/cksfv "$pkgdir"/usr/bin/cksfv install -cD cksfv.1 "$pkgdir"/usr/share/man/man1/cksfv.1 diff --git a/main/clamav/APKBUILD b/main/clamav/APKBUILD index 10d11ecd66f..cb029bd8495 100644 --- a/main/clamav/APKBUILD +++ b/main/clamav/APKBUILD @@ -34,7 +34,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --libdir=/usr/lib \ --sysconfdir=/etc/clamav \ --mandir=/usr/share/man \ @@ -44,7 +47,8 @@ build() { --with-user=clamav \ --with-group=clamav \ --with-dbdir=/var/lib/clamav \ - --enable-clamdtop + --enable-clamdtop \ + || return 1 make || return 1 } diff --git a/main/clamsmtp/APKBUILD b/main/clamsmtp/APKBUILD index 965129ad55a..1bb0fe59ce5 100644 --- a/main/clamsmtp/APKBUILD +++ b/main/clamsmtp/APKBUILD @@ -19,10 +19,14 @@ source="http://thewalter.net/stef/software/clamsmtp/clamsmtp-$pkgver.tar.gz build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install || return 1 diff --git a/main/claws-mail/APKBUILD b/main/claws-mail/APKBUILD index 41637dd7251..6ba16771dbe 100644 --- a/main/claws-mail/APKBUILD +++ b/main/claws-mail/APKBUILD @@ -51,7 +51,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ --enable-enchant \ --enable-gnutls \ diff --git a/main/cloog/APKBUILD b/main/cloog/APKBUILD index 22ad47ac312..cc9be30a840 100644 --- a/main/cloog/APKBUILD +++ b/main/cloog/APKBUILD @@ -27,13 +27,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ - --build=${CBUILD} \ - --host=${CHOST} \ --with-sysroot=${CBUILDROOT} \ --with-isl=system \ || return 1 diff --git a/main/cmph/APKBUILD b/main/cmph/APKBUILD index 93a78879893..d94d85bba52 100644 --- a/main/cmph/APKBUILD +++ b/main/cmph/APKBUILD @@ -20,10 +20,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/collectd/APKBUILD b/main/collectd/APKBUILD index e6340fb1f7c..8f1204c82eb 100644 --- a/main/collectd/APKBUILD +++ b/main/collectd/APKBUILD @@ -38,7 +38,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc/collectd \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/compositeproto/APKBUILD b/main/compositeproto/APKBUILD index 51a6cafced1..5231d31ee13 100644 --- a/main/compositeproto/APKBUILD +++ b/main/compositeproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.t build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/confuse/APKBUILD b/main/confuse/APKBUILD index c815c7aba35..f25ae900c6a 100644 --- a/main/confuse/APKBUILD +++ b/main/confuse/APKBUILD @@ -16,9 +16,13 @@ build() { # drop -Werror sed -i -e 's/-Werror//' */Makefile.* || die - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-shared \ - --disable-nls + --disable-nls \ + || return 1 make || return 1 } diff --git a/main/conky/APKBUILD b/main/conky/APKBUILD index 9861c583b27..f719fd9a706 100644 --- a/main/conky/APKBUILD +++ b/main/conky/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --enable-wlan \ --enable-rss \ diff --git a/main/conntrack-tools/APKBUILD b/main/conntrack-tools/APKBUILD index c573aef53c8..c94de67278c 100644 --- a/main/conntrack-tools/APKBUILD +++ b/main/conntrack-tools/APKBUILD @@ -19,7 +19,11 @@ source="http://www.netfilter.org/projects/conntrack-tools/files/$pkgname-$pkgver _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/consolekit/APKBUILD b/main/consolekit/APKBUILD index 632ee1adced..91b4cfaf8fe 100644 --- a/main/consolekit/APKBUILD +++ b/main/consolekit/APKBUILD @@ -29,7 +29,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/coova-chilli/APKBUILD b/main/coova-chilli/APKBUILD index 3d33e22c81a..0cf146528f1 100644 --- a/main/coova-chilli/APKBUILD +++ b/main/coova-chilli/APKBUILD @@ -33,7 +33,10 @@ prepare() { build() { cd $_builddir - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -58,7 +61,8 @@ build() { --enable-layer3 \ --enable-dhcpopt \ --enable-curl \ - --enable-largelimits + --enable-largelimits \ + || return 1 export CFLAGS="$CFLAGS -Wno-error=unused-but-set-variable" make -j1 || return 1 diff --git a/main/coreutils/APKBUILD b/main/coreutils/APKBUILD index f41a27e22cc..5dbcc347e7f 100644 --- a/main/coreutils/APKBUILD +++ b/main/coreutils/APKBUILD @@ -16,7 +16,10 @@ source="http://ftp.gnu.org/gnu/coreutils/$pkgname-$pkgver.tar.xz" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/cpufreqd/APKBUILD b/main/cpufreqd/APKBUILD index 803914dd2c9..cd3961e59b6 100644 --- a/main/cpufreqd/APKBUILD +++ b/main/cpufreqd/APKBUILD @@ -16,8 +16,12 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --sysconfdir=/etc + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make LIBS=-lpthread || return 1 } diff --git a/main/cracklib/APKBUILD b/main/cracklib/APKBUILD index 1a787df1b67..e8b05ce0584 100644 --- a/main/cracklib/APKBUILD +++ b/main/cracklib/APKBUILD @@ -22,13 +22,17 @@ build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --without-python \ --disable-nls \ - --with-default-dict + --with-default-dict \ + || return 1 make -j1 all || return 1 } diff --git a/main/cryptsetup/APKBUILD b/main/cryptsetup/APKBUILD index 1c4fe7bc1b5..983667ee8a3 100644 --- a/main/cryptsetup/APKBUILD +++ b/main/cryptsetup/APKBUILD @@ -13,7 +13,10 @@ source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.bz2" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --libdir=/lib \ --sbindir=/sbin \ --disable-static \ diff --git a/main/ctags/APKBUILD b/main/ctags/APKBUILD index 49cd2225c94..efb396a9a23 100644 --- a/main/ctags/APKBUILD +++ b/main/ctags/APKBUILD @@ -15,10 +15,14 @@ source="http://prdownloads.sourceforge.net/ctags/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 install -m755 -D $pkgname "$pkgdir"/usr/bin/$pkgname diff --git a/main/cups-filters/APKBUILD b/main/cups-filters/APKBUILD index 11a6c3a35f4..bfc9df85a67 100644 --- a/main/cups-filters/APKBUILD +++ b/main/cups-filters/APKBUILD @@ -29,7 +29,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/cups/APKBUILD b/main/cups/APKBUILD index 9f67ee05b78..5ec9072e4ea 100644 --- a/main/cups/APKBUILD +++ b/main/cups/APKBUILD @@ -35,7 +35,10 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --with-logdir=/var/log/cups \ @@ -54,7 +57,8 @@ build() { --enable-ssl=yes \ --enable-gnutls \ --with-pdftops=pdftops \ - --with-optim="$CFLAGS" + --with-optim="$CFLAGS" \ + || return 1 make || return 1 } diff --git a/main/curl/APKBUILD b/main/curl/APKBUILD index 2b56d520a35..d8cf8625b57 100644 --- a/main/curl/APKBUILD +++ b/main/curl/APKBUILD @@ -25,11 +25,15 @@ prepare() { } build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --without-libidn \ --enable-ipv6 \ - --disable-ldap + --disable-ldap \ + || return 1 make || return 1 } diff --git a/main/cvechecker/APKBUILD b/main/cvechecker/APKBUILD index 75021efe80f..11e4a1656ab 100644 --- a/main/cvechecker/APKBUILD +++ b/main/cvechecker/APKBUILD @@ -29,7 +29,10 @@ prepare() { build() { cd "$_builddir" [ "$ALPINE_LIBC" != "eglibc" ] && export LIBS="-largp" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-sqlite3 \ diff --git a/main/cvs/APKBUILD b/main/cvs/APKBUILD index 03c7b8f55c9..773cf46fd0d 100644 --- a/main/cvs/APKBUILD +++ b/main/cvs/APKBUILD @@ -16,7 +16,10 @@ source="http://ftp.gnu.org/non-gnu/cvs/source/feature/$pkgver/$pkgname-$pkgver.t _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/cyrus-sasl/APKBUILD b/main/cyrus-sasl/APKBUILD index 1ef87b3f797..fdef95e0bae 100644 --- a/main/cyrus-sasl/APKBUILD +++ b/main/cyrus-sasl/APKBUILD @@ -36,7 +36,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-anon \ @@ -49,7 +52,8 @@ build() { --with-devrandom=/dev/urandom \ --without-ldap \ --with-saslauthd=/var/run/saslauthd \ - --mandir=/usr/share/man || return 1 + --mandir=/usr/share/man \ + || return 1 # parallell builds is broken make -j1 || return 1 } diff --git a/main/dahdi-tools/APKBUILD b/main/dahdi-tools/APKBUILD index 0c44555ddb1..edc6bc2abdf 100644 --- a/main/dahdi-tools/APKBUILD +++ b/main/dahdi-tools/APKBUILD @@ -19,7 +19,10 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/damageproto/APKBUILD b/main/damageproto/APKBUILD index 6a743ef3e91..0a40fbdadc2 100644 --- a/main/damageproto/APKBUILD +++ b/main/damageproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.t build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/dansguardian/APKBUILD b/main/dansguardian/APKBUILD index 6de06f052c2..de981dbcfaa 100644 --- a/main/dansguardian/APKBUILD +++ b/main/dansguardian/APKBUILD @@ -39,7 +39,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -47,7 +50,8 @@ build() { --with-proxygroup=dansguar \ --with-logdir=/var/log/dansguardian \ --with-piddir=/var/run/ \ - --enable-ntlm + --enable-ntlm \ + || return 1 make || return 1 } diff --git a/main/daq/APKBUILD b/main/daq/APKBUILD index 303c7359bb6..5ade2931fbb 100644 --- a/main/daq/APKBUILD +++ b/main/daq/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/darkice/APKBUILD b/main/darkice/APKBUILD index 1cea48cfaad..5edd7f17a76 100644 --- a/main/darkice/APKBUILD +++ b/main/darkice/APKBUILD @@ -18,10 +18,14 @@ source="http://darkice.googlecode.com/files/$pkgname-$pkgver.tar.gz _builddir=$srcdir/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc/darkice \ --without-aacplus \ - --without-twolame + --without-twolame \ + || return 1 make || return 1 } package() { diff --git a/main/db/APKBUILD b/main/db/APKBUILD index 2da5fde9e97..d1c333e8540 100644 --- a/main/db/APKBUILD +++ b/main/db/APKBUILD @@ -24,12 +24,16 @@ build () { done cd build_unix - ../dist/configure --prefix=/usr \ + ../dist/configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --enable-compat185 \ --enable-shared \ --enable-cxx \ - --disable-static + --disable-static \ + || return 1 make LIBSO_LIBS=-lpthread || return 1 } diff --git a/main/dbus-glib/APKBUILD b/main/dbus-glib/APKBUILD index 9942f6f872b..cdfdd71a1ed 100644 --- a/main/dbus-glib/APKBUILD +++ b/main/dbus-glib/APKBUILD @@ -14,11 +14,15 @@ depends_dev="glib-dev dbus-dev" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-static=no \ - --enable-bash-completion=no || return 1 + --enable-bash-completion=no \ + || return 1 make || return 1 } diff --git a/main/dbus/APKBUILD b/main/dbus/APKBUILD index 253ce4cfa29..6562bf2b26d 100644 --- a/main/dbus/APKBUILD +++ b/main/dbus/APKBUILD @@ -19,7 +19,10 @@ source="http://dbus.freedesktop.org/releases/dbus/dbus-$pkgver.tar.gz build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --with-xml=expat \ @@ -31,7 +34,8 @@ build() { --disable-dnotify \ --disable-tests \ --disable-asserts \ - --with-x || return 1 + --with-x \ + || return 1 make || return 1 } diff --git a/main/dconf/APKBUILD b/main/dconf/APKBUILD index d29c495b8b9..14d7b0717eb 100644 --- a/main/dconf/APKBUILD +++ b/main/dconf/APKBUILD @@ -30,8 +30,12 @@ prepare() { build () { cd "$_builddir" - ./configure --prefix=/usr \ - --libexecdir=/usr/lib/dconf + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --libexecdir=/usr/lib/dconf \ + || return 1 make V=1 } diff --git a/main/desktop-file-utils/APKBUILD b/main/desktop-file-utils/APKBUILD index 218b1295103..b095bc53117 100644 --- a/main/desktop-file-utils/APKBUILD +++ b/main/desktop-file-utils/APKBUILD @@ -15,7 +15,11 @@ build () { cd "$srcdir"/desktop-file-utils-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/dhcp/APKBUILD b/main/dhcp/APKBUILD index 15056385fa1..0c0beb322a4 100644 --- a/main/dhcp/APKBUILD +++ b/main/dhcp/APKBUILD @@ -31,7 +31,10 @@ build() { cd "$srcdir/$pkgname-$_realver" # fix ipv6 export CFLAGS="$CFLAGS -D_GNU_SOURCE" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc/dhcp \ --with-cli-pid-file=/var/run/dhcp/dhclient.pid \ --with-cli-lease-file=/var/lib/dhcp/dhclient.leases \ @@ -41,7 +44,8 @@ build() { --enable-dhcpv6 \ --enable-paranoia \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/dhcpcd-dbus/APKBUILD b/main/dhcpcd-dbus/APKBUILD index 79864853a25..cc3c9e0c771 100644 --- a/main/dhcpcd-dbus/APKBUILD +++ b/main/dhcpcd-dbus/APKBUILD @@ -14,7 +14,10 @@ source="http://roy.marples.name/downloads/dhcpcd/dhcpcd-dbus-$pkgver.tar.bz2" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/$pkgname \ || return 1 diff --git a/main/dhcpcd-ui/APKBUILD b/main/dhcpcd-ui/APKBUILD index dd1ff56952f..d2017c12f0d 100644 --- a/main/dhcpcd-ui/APKBUILD +++ b/main/dhcpcd-ui/APKBUILD @@ -14,7 +14,11 @@ source="http://roy.marples.name/downloads/dhcpcd/$pkgname-$pkgver.tar.bz2" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make } diff --git a/main/dhcpcd/APKBUILD b/main/dhcpcd/APKBUILD index e986414de00..ff0bfee4c21 100644 --- a/main/dhcpcd/APKBUILD +++ b/main/dhcpcd/APKBUILD @@ -16,7 +16,10 @@ source="http://roy.marples.name/downloads/dhcpcd/$pkgname-$pkgver.tar.bz2 build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --libexecdir=/lib/dhcpcd \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --libexecdir=/lib/dhcpcd \ --dbdir=/var/lib/dhcpcd \ || return 1 make diff --git a/main/dialog/APKBUILD b/main/dialog/APKBUILD index 4e3200d576f..e27d5658551 100644 --- a/main/dialog/APKBUILD +++ b/main/dialog/APKBUILD @@ -16,11 +16,15 @@ source="ftp://invisible-island.net/$pkgname/$pkgname-$_pkgver.tgz" build() { cd "$srcdir/$pkgname-$_pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --with-ncursesw + --with-ncursesw \ + || return 1 make || return 1 } diff --git a/main/diffutils/APKBUILD b/main/diffutils/APKBUILD index 2f72f36a8e0..218fed5e935 100644 --- a/main/diffutils/APKBUILD +++ b/main/diffutils/APKBUILD @@ -30,9 +30,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/dircproxy/APKBUILD b/main/dircproxy/APKBUILD index 1bdbecf45e1..f308892ea48 100644 --- a/main/dircproxy/APKBUILD +++ b/main/dircproxy/APKBUILD @@ -24,10 +24,14 @@ build() { patch -p1 -i $i || return 1 done - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install diff --git a/main/distcc/APKBUILD b/main/distcc/APKBUILD index 0ba9a0966d7..46d9249e8d7 100644 --- a/main/distcc/APKBUILD +++ b/main/distcc/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --without-gtk \ --sysconfdir=/etc \ --disable-Werror \ diff --git a/main/dovecot/APKBUILD b/main/dovecot/APKBUILD index 4375832ea5e..08f4a0fe54f 100644 --- a/main/dovecot/APKBUILD +++ b/main/dovecot/APKBUILD @@ -37,7 +37,10 @@ prepare() { build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --localstatedir=/var \ --sysconfdir=/etc \ --mandir=/usr/share/man \ @@ -48,7 +51,8 @@ build() { --with-mysql \ --with-sqlite \ --with-pgsql \ - --with-ssl=openssl || return 1 + --with-ssl=openssl \ + || return 1 make || return 1 } diff --git a/main/doxygen/APKBUILD b/main/doxygen/APKBUILD index e4dbccd8166..441e39af2bc 100644 --- a/main/doxygen/APKBUILD +++ b/main/doxygen/APKBUILD @@ -35,7 +35,11 @@ prepare() { build() { cd "$_builddir" export ECFLAGS="$CFLAGS" ECXXFLAGS="$CXXFLAGS" ELDFLAGS="$LDFLAGS" - ./configure --prefix /usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/dpkg/APKBUILD b/main/dpkg/APKBUILD index 556bbbf4b86..3c19ee557fd 100644 --- a/main/dpkg/APKBUILD +++ b/main/dpkg/APKBUILD @@ -20,7 +20,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-zlib \ --with-bzip2 \ --disable-dselect \ diff --git a/main/dri2proto/APKBUILD b/main/dri2proto/APKBUILD index feb0c5ddc95..b70e46ac7da 100644 --- a/main/dri2proto/APKBUILD +++ b/main/dri2proto/APKBUILD @@ -13,7 +13,11 @@ source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.t _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/dropbear/APKBUILD b/main/dropbear/APKBUILD index 1894f9ee92a..003e0aa3d35 100644 --- a/main/dropbear/APKBUILD +++ b/main/dropbear/APKBUILD @@ -24,7 +24,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ || return 1 make PROGRAMS="$_progs" MULTI=1 || return 1 } diff --git a/main/dtach/APKBUILD b/main/dtach/APKBUILD index 46cc03515dc..8ca74ae1647 100644 --- a/main/dtach/APKBUILD +++ b/main/dtach/APKBUILD @@ -14,7 +14,11 @@ subpackages="$pkgname-doc" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 install -Dm755 "$srcdir"/dtach-0.8/dtach "$pkgdir"/usr/bin/dtach install -Dm644 "$srcdir"/dtach-0.8/dtach.1 "$pkgdir"/usr/share/man/man1/dtach.1 diff --git a/main/dvgrab/APKBUILD b/main/dvgrab/APKBUILD index 53294c37879..7e9157bf7b1 100644 --- a/main/dvgrab/APKBUILD +++ b/main/dvgrab/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/e2fsprogs/APKBUILD b/main/e2fsprogs/APKBUILD index 54caa74d8c7..d3c3d824e33 100644 --- a/main/e2fsprogs/APKBUILD +++ b/main/e2fsprogs/APKBUILD @@ -22,6 +22,8 @@ prepare() { build () { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --mandir=/usr/share/man \ --enable-elf-shlibs \ --disable-fsck \ @@ -29,7 +31,8 @@ build () { --disable-libuuid \ --disable-libblkid \ --disable-tls \ - --disable-nls + --disable-nls \ + || return 1 make || return 1 } diff --git a/main/eboard/APKBUILD b/main/eboard/APKBUILD index a30231dbbd4..769e30a10ea 100644 --- a/main/eboard/APKBUILD +++ b/main/eboard/APKBUILD @@ -29,7 +29,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --man-prefix=/usr/share/man \ --extra-libs=dl \ || return 1 diff --git a/main/eggdbus/APKBUILD b/main/eggdbus/APKBUILD index 8ffbed9a98d..25cb513260b 100644 --- a/main/eggdbus/APKBUILD +++ b/main/eggdbus/APKBUILD @@ -22,11 +22,15 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --disable-static + --disable-static \ + || return 1 make -j1 || return 1 } diff --git a/main/eggdrop/APKBUILD b/main/eggdrop/APKBUILD index fa6060c48e8..b6eada515c4 100644 --- a/main/eggdrop/APKBUILD +++ b/main/eggdrop/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-tcllib=/usr/lib/libtcl8.6.so \ --with-tclinc=/usr/include/tcl.h \ || return 1 diff --git a/main/eglibc/APKBUILD b/main/eglibc/APKBUILD index 4d7711f3ed5..179e15c8bc5 100644 --- a/main/eglibc/APKBUILD +++ b/main/eglibc/APKBUILD @@ -45,6 +45,8 @@ build() { cd "$_builddir"/eglibc-build export CFLAGS="$CFLAGS -fno-stack-protector" ../configure \ + --build=$CBUILD \ + --host=$CHOST \ --build $CBUILD \ --host $CHOST \ --prefix=/usr \ diff --git a/main/elinks/APKBUILD b/main/elinks/APKBUILD index 470d813cd95..ddb3fbd85b8 100644 --- a/main/elinks/APKBUILD +++ b/main/elinks/APKBUILD @@ -21,11 +21,15 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --without-included-gettext + --without-included-gettext \ + || return 1 make || return 1 } diff --git a/main/email/APKBUILD b/main/email/APKBUILD index b212a62c3b5..801985511dd 100644 --- a/main/email/APKBUILD +++ b/main/email/APKBUILD @@ -21,9 +21,12 @@ build() { cd "$srcdir/$pkgname-$pkgver" ./configure \ - --prefix=/usr \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --mandir=/usr/share/man + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/email2trac/APKBUILD b/main/email2trac/APKBUILD index 9681093f130..e3979d4d2a5 100644 --- a/main/email2trac/APKBUILD +++ b/main/email2trac/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --with-trac_user=tracd \ || return 1 diff --git a/main/enca/APKBUILD b/main/enca/APKBUILD index 8e3e1095e22..166fe99d7c4 100644 --- a/main/enca/APKBUILD +++ b/main/enca/APKBUILD @@ -22,13 +22,17 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --libexecdir=/usr/lib \ --enable-external \ - --without-libiconv + --without-libiconv \ + || return 1 make || return 1 } diff --git a/main/enchant/APKBUILD b/main/enchant/APKBUILD index 0ada5a43003..9788bead6c1 100644 --- a/main/enchant/APKBUILD +++ b/main/enchant/APKBUILD @@ -14,7 +14,12 @@ source="http://www.abisource.com/downloads/$pkgname/$pkgver/$pkgname-$pkgver.tar build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --disable-static || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-static \ + || return 1 make || return 1 } diff --git a/main/encodings/APKBUILD b/main/encodings/APKBUILD index 06b883e8956..3ad7a361fa4 100644 --- a/main/encodings/APKBUILD +++ b/main/encodings/APKBUILD @@ -13,8 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/font/encodings-$pkgver.t build() { cd "$srcdir"/encodings-$pkgver - ./configure --prefix=/usr \ - --with-encodingsdir=/usr/share/fonts/encodings + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --with-encodingsdir=/usr/share/fonts/encodings \ + || return 1 make || return 1 } diff --git a/main/epdfview/APKBUILD b/main/epdfview/APKBUILD index c4ff565b631..772197895bd 100644 --- a/main/epdfview/APKBUILD +++ b/main/epdfview/APKBUILD @@ -34,7 +34,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ || return 1 diff --git a/main/epris/APKBUILD b/main/epris/APKBUILD index f845f6a0ea9..cb1da61d557 100644 --- a/main/epris/APKBUILD +++ b/main/epris/APKBUILD @@ -15,10 +15,14 @@ source="http://epris.googlecode.com/files/epris-$pkgver.tar.gz" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/ethtool/APKBUILD b/main/ethtool/APKBUILD index 81709fb239d..878f11cb985 100644 --- a/main/ethtool/APKBUILD +++ b/main/ethtool/APKBUILD @@ -15,8 +15,12 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ - --mandir=/usr/share/man + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/evince/APKBUILD b/main/evince/APKBUILD index d31a5291fa3..2f231f67ece 100644 --- a/main/evince/APKBUILD +++ b/main/evince/APKBUILD @@ -44,13 +44,17 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --disable-nautilus \ --disable-scrollkeeper \ --enable-pixbuf \ --without-gconf \ - --without-keyring || return 1 + --without-keyring \ + || return 1 make || return 1 } diff --git a/main/exiv2/APKBUILD b/main/exiv2/APKBUILD index 259758f7f09..43b413618c2 100644 --- a/main/exiv2/APKBUILD +++ b/main/exiv2/APKBUILD @@ -15,7 +15,11 @@ source="http://www.exiv2.org/exiv2-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/exo/APKBUILD b/main/exo/APKBUILD index 4904b8045e8..8086a562801 100644 --- a/main/exo/APKBUILD +++ b/main/exo/APKBUILD @@ -15,7 +15,10 @@ source="http://archive.xfce.org/src/xfce/$pkgname/${pkgver%.*}/$pkgname-$pkgver. build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/xfce4 \ --localstatedir=/var \ diff --git a/main/expat/APKBUILD b/main/expat/APKBUILD index 50179e6003a..daf4313f6cd 100644 --- a/main/expat/APKBUILD +++ b/main/expat/APKBUILD @@ -25,8 +25,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --mandir=/usr/share/man + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/expect/APKBUILD b/main/expect/APKBUILD index e9b8ead2194..13f2f44c7c9 100644 --- a/main/expect/APKBUILD +++ b/main/expect/APKBUILD @@ -16,13 +16,17 @@ source="http://downloads.sourceforge.net/project/expect/Expect/$pkgver/$pkgname$ _builddir="$srcdir"/$pkgname$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/share/man \ --with-tcl=/usr/lib \ --with-tclinclude=/usr/include \ - --disable-rpath + --disable-rpath \ + || return 1 make || return 1 } package() { diff --git a/main/ez-ipupdate/APKBUILD b/main/ez-ipupdate/APKBUILD index d4332416f05..f23e315b9e1 100644 --- a/main/ez-ipupdate/APKBUILD +++ b/main/ez-ipupdate/APKBUILD @@ -28,10 +28,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/f2fs-tools/APKBUILD b/main/f2fs-tools/APKBUILD index 4e0a864e359..625cba65d22 100644 --- a/main/f2fs-tools/APKBUILD +++ b/main/f2fs-tools/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ || return 1 make || return 1 } diff --git a/main/faac/APKBUILD b/main/faac/APKBUILD index d33097469ee..de6769d156d 100644 --- a/main/faac/APKBUILD +++ b/main/faac/APKBUILD @@ -31,7 +31,11 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver ./bootstrap || return 1 - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/faad2/APKBUILD b/main/faad2/APKBUILD index 8d4959daf0c..78168f53e28 100644 --- a/main/faad2/APKBUILD +++ b/main/faad2/APKBUILD @@ -31,7 +31,11 @@ build() { || return 1 sh bootstrap || return 1 - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/fakeroot/APKBUILD b/main/fakeroot/APKBUILD index 2bd26f6247e..d4d1ef208cc 100644 --- a/main/fakeroot/APKBUILD +++ b/main/fakeroot/APKBUILD @@ -31,10 +31,12 @@ build() { [ "${CHOST#*musl}" != "$CHOST" ] && CFLAGS="-D_STAT_VER=0 $CFLAGS" CONFIG_SHELL=/bin/sh \ - ./configure --prefix=/usr \ - --build=${CBUILD} \ - --host=${CHOST} \ - --disable-static + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-static \ + || return 1 make || return 1 } diff --git a/main/farstream/APKBUILD b/main/farstream/APKBUILD index 6989cfd17e6..ca2be9549b6 100644 --- a/main/farstream/APKBUILD +++ b/main/farstream/APKBUILD @@ -27,9 +27,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --enable-python \ - --disable-static \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --enable-python \ + --disable-static \ || return 1 make || return 1 } diff --git a/main/farstream0.1/APKBUILD b/main/farstream0.1/APKBUILD index e74e2def179..8e73e5c42f0 100644 --- a/main/farstream0.1/APKBUILD +++ b/main/farstream0.1/APKBUILD @@ -30,7 +30,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-python \ || return 1 make || return 1 diff --git a/main/fastjar/APKBUILD b/main/fastjar/APKBUILD index 9b22db009d5..95c7aa13388 100644 --- a/main/fastjar/APKBUILD +++ b/main/fastjar/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/fcgi/APKBUILD b/main/fcgi/APKBUILD index 72a76f53544..2e2f13ac319 100644 --- a/main/fcgi/APKBUILD +++ b/main/fcgi/APKBUILD @@ -34,11 +34,15 @@ build() { cd "$srcdir/$pkgname-$pkgver" export LIBS="-lm" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --enable-shared + --enable-shared \ + || return 1 # work around parallel build issue make -C libfcgi libfcgi.la || return 1 make || return 1 diff --git a/main/fetchmail/APKBUILD b/main/fetchmail/APKBUILD index 232830b013b..63b73cf2529 100644 --- a/main/fetchmail/APKBUILD +++ b/main/fetchmail/APKBUILD @@ -18,12 +18,16 @@ source="http://download.berlios.de/fetchmail/$pkgname-$pkgver.tar.bz2 build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-ssl \ - --disable-nls + --disable-nls \ + || return 1 make || return 1 } diff --git a/main/ffmpeg/APKBUILD b/main/ffmpeg/APKBUILD index 9b6327c0db0..dcd9d12add8 100644 --- a/main/ffmpeg/APKBUILD +++ b/main/ffmpeg/APKBUILD @@ -32,7 +32,10 @@ build() { [ -n "$DEBUG" ] && _dbg="--enable-debug" [ "$CARCH" = "x86" ] && _asm="--disable-asm" cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-gpl \ --enable-libmp3lame \ --enable-librtmp \ diff --git a/main/fftw/APKBUILD b/main/fftw/APKBUILD index 3fce77d33c9..7430f5949e1 100644 --- a/main/fftw/APKBUILD +++ b/main/fftw/APKBUILD @@ -21,11 +21,15 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --enable-single + --enable-single \ + || return 1 make || return 1 } diff --git a/main/file/APKBUILD b/main/file/APKBUILD index 045a917912e..bb77dbe5310 100644 --- a/main/file/APKBUILD +++ b/main/file/APKBUILD @@ -12,7 +12,12 @@ subpackages="$pkgname-dev $pkgname-doc" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --datadir=/usr/share + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --datadir=/usr/share \ + || return 1 make || return 1 } diff --git a/main/findutils/APKBUILD b/main/findutils/APKBUILD index 90a6c25d000..48f6fd348f9 100644 --- a/main/findutils/APKBUILD +++ b/main/findutils/APKBUILD @@ -16,10 +16,14 @@ source="http://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install diff --git a/main/fixesproto/APKBUILD b/main/fixesproto/APKBUILD index 2db32801e5b..65ccb384926 100644 --- a/main/fixesproto/APKBUILD +++ b/main/fixesproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.t build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/flac/APKBUILD b/main/flac/APKBUILD index add0acc18b8..7ebcf4dc126 100644 --- a/main/flac/APKBUILD +++ b/main/flac/APKBUILD @@ -14,14 +14,18 @@ source="http://downloads.xiph.org/releases/flac/flac-${pkgver}.tar.xz" build () { cd "$srcdir"/$pkgname-$pkgver || return 1 - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --enable-shared \ --enable-ogg \ --disable-sse \ --disable-rpath \ --disable-cpplibs \ - --with-pic || return 1 + --with-pic \ + || return 1 make || return 1 } diff --git a/main/flex/APKBUILD b/main/flex/APKBUILD index 909f184b48d..669a70d8e54 100644 --- a/main/flex/APKBUILD +++ b/main/flex/APKBUILD @@ -14,11 +14,13 @@ subpackages="$pkgname-doc" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ - --build=${CBUILD} \ - --host=${CHOST} \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/flite/APKBUILD b/main/flite/APKBUILD index dad4703025c..8efee0d4233 100644 --- a/main/flite/APKBUILD +++ b/main/flite/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - CFLAGS="$CFLAGS -fPIC" ./configure --prefix=/usr \ + CFLAGS="$CFLAGS -fPIC" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-shared \ --localstatedir=/var \ || return 1 diff --git a/main/fluxbox/APKBUILD b/main/fluxbox/APKBUILD index 4b6b3980161..cfb64f5f014 100644 --- a/main/fluxbox/APKBUILD +++ b/main/fluxbox/APKBUILD @@ -15,7 +15,10 @@ source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.t build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-imlib2 \ --disable-nls \ || return 1 diff --git a/main/font-adobe-100dpi/APKBUILD b/main/font-adobe-100dpi/APKBUILD index 2057abcff17..eac386a55a1 100644 --- a/main/font-adobe-100dpi/APKBUILD +++ b/main/font-adobe-100dpi/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/100dpi + --with-fontdir=/usr/share/fonts/100dpi \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-adobe-75dpi/APKBUILD b/main/font-adobe-75dpi/APKBUILD index 081e5ba5eca..1b9fca51aaa 100644 --- a/main/font-adobe-75dpi/APKBUILD +++ b/main/font-adobe-75dpi/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/75dpi + --with-fontdir=/usr/share/fonts/75dpi \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-adobe-utopia-100dpi/APKBUILD b/main/font-adobe-utopia-100dpi/APKBUILD index 3ca2381ab71..b35c71ebe95 100644 --- a/main/font-adobe-utopia-100dpi/APKBUILD +++ b/main/font-adobe-utopia-100dpi/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/100dpi + --with-fontdir=/usr/share/fonts/100dpi \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-adobe-utopia-75dpi/APKBUILD b/main/font-adobe-utopia-75dpi/APKBUILD index f2429974fe8..5a86692f678 100644 --- a/main/font-adobe-utopia-75dpi/APKBUILD +++ b/main/font-adobe-utopia-75dpi/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/75dpi + --with-fontdir=/usr/share/fonts/75dpi \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-adobe-utopia-type1/APKBUILD b/main/font-adobe-utopia-type1/APKBUILD index ed40e552ba0..7095c61027f 100644 --- a/main/font-adobe-utopia-type1/APKBUILD +++ b/main/font-adobe-utopia-type1/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/utopia-type1 + --with-fontdir=/usr/share/fonts/utopia-type1 \ + || return 1 make || return 1 } diff --git a/main/font-alias/APKBUILD b/main/font-alias/APKBUILD index 83fc28f0e92..55a9ee165d5 100644 --- a/main/font-alias/APKBUILD +++ b/main/font-alias/APKBUILD @@ -13,8 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --with-top-fontdir=/usr/share/fonts + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --with-top-fontdir=/usr/share/fonts \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install || return 1 } diff --git a/main/font-arabic-misc/APKBUILD b/main/font-arabic-misc/APKBUILD index a68d08d6250..4c518f1b615 100644 --- a/main/font-arabic-misc/APKBUILD +++ b/main/font-arabic-misc/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/misc + --with-fontdir=/usr/share/fonts/misc \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-bh-100dpi/APKBUILD b/main/font-bh-100dpi/APKBUILD index 0133f31d259..8a7be53e36c 100644 --- a/main/font-bh-100dpi/APKBUILD +++ b/main/font-bh-100dpi/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/100dpi + --with-fontdir=/usr/share/fonts/100dpi \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-bh-75dpi/APKBUILD b/main/font-bh-75dpi/APKBUILD index 62a4f66b3af..314afca701e 100644 --- a/main/font-bh-75dpi/APKBUILD +++ b/main/font-bh-75dpi/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/75dpi + --with-fontdir=/usr/share/fonts/75dpi \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-bh-lucidatypewriter-100dpi/APKBUILD b/main/font-bh-lucidatypewriter-100dpi/APKBUILD index ddae97e87b6..b365f8369f6 100644 --- a/main/font-bh-lucidatypewriter-100dpi/APKBUILD +++ b/main/font-bh-lucidatypewriter-100dpi/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/100dpi + --with-fontdir=/usr/share/fonts/100dpi \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-bh-lucidatypewriter-75dpi/APKBUILD b/main/font-bh-lucidatypewriter-75dpi/APKBUILD index 6fde0c80e74..70b170172c8 100644 --- a/main/font-bh-lucidatypewriter-75dpi/APKBUILD +++ b/main/font-bh-lucidatypewriter-75dpi/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/75dpi + --with-fontdir=/usr/share/fonts/75dpi \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-bh-ttf/APKBUILD b/main/font-bh-ttf/APKBUILD index bf3a046ebb6..fa29ff85558 100644 --- a/main/font-bh-ttf/APKBUILD +++ b/main/font-bh-ttf/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/TTF + --with-fontdir=/usr/share/fonts/TTF \ + || return 1 make || return 1 } diff --git a/main/font-bh-type1/APKBUILD b/main/font-bh-type1/APKBUILD index a5e718744ab..507feab3c75 100644 --- a/main/font-bh-type1/APKBUILD +++ b/main/font-bh-type1/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/Type1 + --with-fontdir=/usr/share/fonts/Type1 \ + || return 1 make || return 1 } diff --git a/main/font-bitstream-100dpi/APKBUILD b/main/font-bitstream-100dpi/APKBUILD index 8adf9ea7e3e..a0be678a4d3 100644 --- a/main/font-bitstream-100dpi/APKBUILD +++ b/main/font-bitstream-100dpi/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/100dpi + --with-fontdir=/usr/share/fonts/100dpi \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-bitstream-75dpi/APKBUILD b/main/font-bitstream-75dpi/APKBUILD index 2182946be00..6046a2038ed 100644 --- a/main/font-bitstream-75dpi/APKBUILD +++ b/main/font-bitstream-75dpi/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/75dpi + --with-fontdir=/usr/share/fonts/75dpi \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-bitstream-speedo/APKBUILD b/main/font-bitstream-speedo/APKBUILD index 1780bdde7b7..557a074eeca 100644 --- a/main/font-bitstream-speedo/APKBUILD +++ b/main/font-bitstream-speedo/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/Speedo + --with-fontdir=/usr/share/fonts/Speedo \ + || return 1 make || return 1 } diff --git a/main/font-bitstream-type1/APKBUILD b/main/font-bitstream-type1/APKBUILD index 4f54e8b73a1..27255d96bd3 100644 --- a/main/font-bitstream-type1/APKBUILD +++ b/main/font-bitstream-type1/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/Type1 + --with-fontdir=/usr/share/fonts/Type1 \ + || return 1 make || return 1 } diff --git a/main/font-cronyx-cyrillic/APKBUILD b/main/font-cronyx-cyrillic/APKBUILD index 31a610489e8..8380951b2ff 100644 --- a/main/font-cronyx-cyrillic/APKBUILD +++ b/main/font-cronyx-cyrillic/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/cyrillic + --with-fontdir=/usr/share/fonts/cyrillic \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-cursor-misc/APKBUILD b/main/font-cursor-misc/APKBUILD index 0a344b2454e..801a07d9d8d 100644 --- a/main/font-cursor-misc/APKBUILD +++ b/main/font-cursor-misc/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/misc + --with-fontdir=/usr/share/fonts/misc \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-daewoo-misc/APKBUILD b/main/font-daewoo-misc/APKBUILD index 8d99f6f066a..fdbd5258cb2 100644 --- a/main/font-daewoo-misc/APKBUILD +++ b/main/font-daewoo-misc/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/misc + --with-fontdir=/usr/share/fonts/misc \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-dec-misc/APKBUILD b/main/font-dec-misc/APKBUILD index 3d56bfba757..1849d1322c9 100644 --- a/main/font-dec-misc/APKBUILD +++ b/main/font-dec-misc/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/misc + --with-fontdir=/usr/share/fonts/misc \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-ibm-type1/APKBUILD b/main/font-ibm-type1/APKBUILD index b278e736952..366e1adc1e7 100644 --- a/main/font-ibm-type1/APKBUILD +++ b/main/font-ibm-type1/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/Type1 + --with-fontdir=/usr/share/fonts/Type1 \ + || return 1 make || return 1 } diff --git a/main/font-isas-misc/APKBUILD b/main/font-isas-misc/APKBUILD index b6da30844c0..874904cb38e 100644 --- a/main/font-isas-misc/APKBUILD +++ b/main/font-isas-misc/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/misc + --with-fontdir=/usr/share/fonts/misc \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-jis-misc/APKBUILD b/main/font-jis-misc/APKBUILD index 7367ae5deef..f7b6a8ac53c 100644 --- a/main/font-jis-misc/APKBUILD +++ b/main/font-jis-misc/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/misc + --with-fontdir=/usr/share/fonts/misc \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-micro-misc/APKBUILD b/main/font-micro-misc/APKBUILD index a2d6a83aec9..45801df0bbc 100644 --- a/main/font-micro-misc/APKBUILD +++ b/main/font-micro-misc/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/misc + --with-fontdir=/usr/share/fonts/misc \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-misc-cyrillic/APKBUILD b/main/font-misc-cyrillic/APKBUILD index 7f69e82d863..f5a403bbeea 100644 --- a/main/font-misc-cyrillic/APKBUILD +++ b/main/font-misc-cyrillic/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/cyrillic + --with-fontdir=/usr/share/fonts/cyrillic \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-misc-ethiopic/APKBUILD b/main/font-misc-ethiopic/APKBUILD index 8b11cf4b8f0..05e76360ac0 100644 --- a/main/font-misc-ethiopic/APKBUILD +++ b/main/font-misc-ethiopic/APKBUILD @@ -14,9 +14,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/ethiopic + --with-fontdir=/usr/share/fonts/ethiopic \ + || return 1 make || return 1 } diff --git a/main/font-misc-meltho/APKBUILD b/main/font-misc-meltho/APKBUILD index 6c0102a3614..8cd7789551f 100644 --- a/main/font-misc-meltho/APKBUILD +++ b/main/font-misc-meltho/APKBUILD @@ -14,9 +14,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/meltho + --with-fontdir=/usr/share/fonts/meltho \ + || return 1 make || return 1 } diff --git a/main/font-misc-misc/APKBUILD b/main/font-misc-misc/APKBUILD index b4e86369b00..3f19cc334c2 100644 --- a/main/font-misc-misc/APKBUILD +++ b/main/font-misc-misc/APKBUILD @@ -14,9 +14,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/misc + --with-fontdir=/usr/share/fonts/misc \ + || return 1 make || return 1 } diff --git a/main/font-mutt-misc/APKBUILD b/main/font-mutt-misc/APKBUILD index 14f321e4c44..d9a9e521fbb 100644 --- a/main/font-mutt-misc/APKBUILD +++ b/main/font-mutt-misc/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/misc + --with-fontdir=/usr/share/fonts/misc \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-schumacher-misc/APKBUILD b/main/font-schumacher-misc/APKBUILD index 67705d3bff8..6a18163e87d 100644 --- a/main/font-schumacher-misc/APKBUILD +++ b/main/font-schumacher-misc/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/misc + --with-fontdir=/usr/share/fonts/misc \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-screen-cyrillic/APKBUILD b/main/font-screen-cyrillic/APKBUILD index 9f5c643cb05..b016055a87d 100644 --- a/main/font-screen-cyrillic/APKBUILD +++ b/main/font-screen-cyrillic/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/cyrillic + --with-fontdir=/usr/share/fonts/cyrillic \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-sony-misc/APKBUILD b/main/font-sony-misc/APKBUILD index 708ecbad7f2..df52f0ad6cb 100644 --- a/main/font-sony-misc/APKBUILD +++ b/main/font-sony-misc/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/misc + --with-fontdir=/usr/share/fonts/misc \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-sun-misc/APKBUILD b/main/font-sun-misc/APKBUILD index dc13429422a..b2919aeb520 100644 --- a/main/font-sun-misc/APKBUILD +++ b/main/font-sun-misc/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/misc + --with-fontdir=/usr/share/fonts/misc \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-util/APKBUILD b/main/font-util/APKBUILD index 16d914132da..94be113358a 100644 --- a/main/font-util/APKBUILD +++ b/main/font-util/APKBUILD @@ -14,8 +14,12 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --mandir=/usr/share/man + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/font-winitzki-cyrillic/APKBUILD b/main/font-winitzki-cyrillic/APKBUILD index 4fe93fadbee..2a4440d0b29 100644 --- a/main/font-winitzki-cyrillic/APKBUILD +++ b/main/font-winitzki-cyrillic/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/cyrillic + --with-fontdir=/usr/share/fonts/cyrillic \ + || return 1 make || return 1 make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1 } diff --git a/main/font-xfree86-type1/APKBUILD b/main/font-xfree86-type1/APKBUILD index b1e0897399a..cbb2d42d447 100644 --- a/main/font-xfree86-type1/APKBUILD +++ b/main/font-xfree86-type1/APKBUILD @@ -13,9 +13,13 @@ source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mapfiles=/usr/share/fonts/util \ - --with-fontdir=/usr/share/fonts/Type1 + --with-fontdir=/usr/share/fonts/Type1 \ + || return 1 make || return 1 } diff --git a/main/fontconfig/APKBUILD b/main/fontconfig/APKBUILD index ecc9a9fb424..2390d8f2b7f 100644 --- a/main/fontconfig/APKBUILD +++ b/main/fontconfig/APKBUILD @@ -29,9 +29,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --disable-docs + --disable-docs \ + || return 1 make || return 1 } diff --git a/main/fontsproto/APKBUILD b/main/fontsproto/APKBUILD index 1ea7040bf88..fde07dbcb21 100644 --- a/main/fontsproto/APKBUILD +++ b/main/fontsproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.t build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/fping/APKBUILD b/main/fping/APKBUILD index 1ac36be4581..b39056dfaaf 100644 --- a/main/fping/APKBUILD +++ b/main/fping/APKBUILD @@ -15,8 +15,12 @@ _builddir="$srcdir"/$pkgname-$pkgver build () { cd "$_builddir" - ./configure --prefix=/usr \ - --mandir=/usr/share/man + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/fprobe-ulog/APKBUILD b/main/fprobe-ulog/APKBUILD index 139aaf02c1b..4e88be2960e 100644 --- a/main/fprobe-ulog/APKBUILD +++ b/main/fprobe-ulog/APKBUILD @@ -29,10 +29,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/fprobe/APKBUILD b/main/fprobe/APKBUILD index 79da613cfbe..824c4e1cbcf 100644 --- a/main/fprobe/APKBUILD +++ b/main/fprobe/APKBUILD @@ -30,10 +30,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/freeglut/APKBUILD b/main/freeglut/APKBUILD index 28756130019..fa624a6636b 100644 --- a/main/freeglut/APKBUILD +++ b/main/freeglut/APKBUILD @@ -30,7 +30,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr --disable-static || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-static \ + || return 1 make || return 1 } diff --git a/main/freeradius-client/APKBUILD b/main/freeradius-client/APKBUILD index 01ff2e25aad..049775d4edb 100644 --- a/main/freeradius-client/APKBUILD +++ b/main/freeradius-client/APKBUILD @@ -20,10 +20,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/freeradius/APKBUILD b/main/freeradius/APKBUILD index 188c0c67c07..9f7d775ff5f 100644 --- a/main/freeradius/APKBUILD +++ b/main/freeradius/APKBUILD @@ -49,11 +49,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --localstatedir=/var \ + --localstatedir=/var \ --libdir=/usr/lib/freeradius \ --disable-static \ --enable-shared \ diff --git a/main/freeswitch/APKBUILD b/main/freeswitch/APKBUILD index 3b68a044761..a7ab3467a39 100644 --- a/main/freeswitch/APKBUILD +++ b/main/freeswitch/APKBUILD @@ -50,7 +50,10 @@ build() { # remove -Werror since gcc-4.5 is more strict sed -i -e 's/-Werror//g' configure || return 1 [ "$ALPINE_LIBC" != "eglibc" ] && export LDFLAGS="$LDFLAGS -liconv" - CFLAGS="-Wno-unused-but-set-variable" ./configure --prefix=/usr \ + CFLAGS="-Wno-unused-but-set-variable" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc/freeswitch \ --with-modinstdir=/usr/lib/freeswitch \ --with-rundir=/var/run/freeswitch \ diff --git a/main/freetds/APKBUILD b/main/freetds/APKBUILD index a1afcc46ce1..d980ccd541e 100644 --- a/main/freetds/APKBUILD +++ b/main/freetds/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/freetype/APKBUILD b/main/freetype/APKBUILD index c1206f25b1a..dd545dad476 100644 --- a/main/freetype/APKBUILD +++ b/main/freetype/APKBUILD @@ -29,11 +29,15 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/fribidi/APKBUILD b/main/fribidi/APKBUILD index 05ca5541f53..3b2ec1b8cb2 100644 --- a/main/fribidi/APKBUILD +++ b/main/fribidi/APKBUILD @@ -14,7 +14,11 @@ source="http://fribidi.org/download/fribidi-$pkgver.tar.bz2" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/fsarchiver/APKBUILD b/main/fsarchiver/APKBUILD index 6ea09df1a88..772cf9abaf1 100644 --- a/main/fsarchiver/APKBUILD +++ b/main/fsarchiver/APKBUILD @@ -13,7 +13,11 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" build() { cd $srcdir/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make } diff --git a/main/fuse/APKBUILD b/main/fuse/APKBUILD index 122c9e42495..c24b5950c97 100644 --- a/main/fuse/APKBUILD +++ b/main/fuse/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ --enable-shared \ --disable-example \ diff --git a/main/galculator/APKBUILD b/main/galculator/APKBUILD index 717cc9cec56..b42cb3f745f 100644 --- a/main/galculator/APKBUILD +++ b/main/galculator/APKBUILD @@ -23,7 +23,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-gtk3 \ || return 1 make || return 1 diff --git a/main/gamin/APKBUILD b/main/gamin/APKBUILD index 712be26613d..b13fe04779d 100644 --- a/main/gamin/APKBUILD +++ b/main/gamin/APKBUILD @@ -24,7 +24,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ --with-threads \ --disable-debug-api \ diff --git a/main/garcon/APKBUILD b/main/garcon/APKBUILD index 2b0cb10f4be..10e23f8a5ff 100644 --- a/main/garcon/APKBUILD +++ b/main/garcon/APKBUILD @@ -16,11 +16,15 @@ replaces="xfdesktop" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make } diff --git a/main/gawk/APKBUILD b/main/gawk/APKBUILD index 8615e8ed28a..7c250586c55 100644 --- a/main/gawk/APKBUILD +++ b/main/gawk/APKBUILD @@ -14,13 +14,15 @@ source="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ - --build=${CBUILD} \ - --host=${CHOST} \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --disable-nls + --disable-nls \ + || return 1 make || return 1 } diff --git a/main/gc/APKBUILD b/main/gc/APKBUILD index e8db5195231..dbf66302358 100644 --- a/main/gc/APKBUILD +++ b/main/gc/APKBUILD @@ -24,9 +24,13 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --datadir=/usr/share/doc/gc \ - --enable-cplusplus || return 1 + --enable-cplusplus \ + || return 1 make || return 1 } diff --git a/main/gconf/APKBUILD b/main/gconf/APKBUILD index c20157e75cc..77b8fe0b72c 100644 --- a/main/gconf/APKBUILD +++ b/main/gconf/APKBUILD @@ -30,9 +30,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --with-gtk=2.0 || return 0 + --with-gtk=2.0 \ + || return 0 \ + || return 1 make || return 1 } diff --git a/main/gd/APKBUILD b/main/gd/APKBUILD index 63d7a116463..6a5632eadd0 100644 --- a/main/gd/APKBUILD +++ b/main/gd/APKBUILD @@ -20,7 +20,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -28,7 +31,8 @@ build() { --with-freetype \ --with-jpeg \ --without-xpm \ - --without-fontconfig + --without-fontconfig \ + || return 1 make || return 1 } diff --git a/main/gdb/APKBUILD b/main/gdb/APKBUILD index b9b4439be0e..b4c45b7cb33 100644 --- a/main/gdb/APKBUILD +++ b/main/gdb/APKBUILD @@ -34,9 +34,10 @@ prepare() { build () { cd "$_builddir" - local _config="--prefix=/usr + local _config=" --build=$CBUILD --host=$CHOST + --prefix=/usr --target=$CTARGET --with-build-sysroot=$CBUILDROOT --disable-nls @@ -50,9 +51,8 @@ build () { # gdb server does not compile with musl [ "${CHOST#*musl}" != "$CHOST" ] && _config="$_config --disable-gdbserver" - ./configure $_config - cd opcodes && ./configure $_config || return 1 - cd .. + ./configure $_config || return 1 + (cd opcodes && ./configure $_config) || return 1 make || return 1 } diff --git a/main/gdbm/APKBUILD b/main/gdbm/APKBUILD index dd515f5ec76..d6b820cd470 100644 --- a/main/gdbm/APKBUILD +++ b/main/gdbm/APKBUILD @@ -28,11 +28,15 @@ build() { cd "$_builddir" # we disable large-file due to it makes the db file non-compat # with gdbm-1.8.3 - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-libgdbm-compat \ --disable-largefile \ --disable-dependency-tracking \ - --enable-fast-install + --enable-fast-install \ + || return 1 make || return 1 } diff --git a/main/gdk-pixbuf/APKBUILD b/main/gdk-pixbuf/APKBUILD index f00640764c5..72e82c6a472 100644 --- a/main/gdk-pixbuf/APKBUILD +++ b/main/gdk-pixbuf/APKBUILD @@ -28,11 +28,15 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --with-x11 \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/gdl/APKBUILD b/main/gdl/APKBUILD index fb03c64c4a6..415b5f911de 100644 --- a/main/gdl/APKBUILD +++ b/main/gdl/APKBUILD @@ -12,7 +12,10 @@ source="http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$p build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ diff --git a/main/gdnsd/APKBUILD b/main/gdnsd/APKBUILD index 77a96eb30bd..5652bf31d5e 100644 --- a/main/gdnsd/APKBUILD +++ b/main/gdnsd/APKBUILD @@ -35,7 +35,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-fast-install \ diff --git a/main/geany/APKBUILD b/main/geany/APKBUILD index 4118919b410..8a699339dee 100644 --- a/main/geany/APKBUILD +++ b/main/geany/APKBUILD @@ -53,7 +53,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/gegl/APKBUILD b/main/gegl/APKBUILD index 5f4d40521bf..56987a3d38b 100644 --- a/main/gegl/APKBUILD +++ b/main/gegl/APKBUILD @@ -24,7 +24,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-librsvg \ --disable-docs \ || return 1 diff --git a/main/geh/APKBUILD b/main/geh/APKBUILD index dfa61e095f5..afa3b555b27 100644 --- a/main/geh/APKBUILD +++ b/main/geh/APKBUILD @@ -26,10 +26,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/geoip/APKBUILD b/main/geoip/APKBUILD index d5f72ef0c90..2c18cae4f9e 100644 --- a/main/geoip/APKBUILD +++ b/main/geoip/APKBUILD @@ -23,10 +23,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc/geoip \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 make check || return 1 } diff --git a/main/gettext/APKBUILD b/main/gettext/APKBUILD index 4a5c0de14dc..4c9ff82f6a8 100644 --- a/main/gettext/APKBUILD +++ b/main/gettext/APKBUILD @@ -35,11 +35,15 @@ build() { # http://bugs.gentoo.org/show_bug.cgi?id=81628 export CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --enable-threads=posix \ --disable-java \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/ghostscript/APKBUILD b/main/ghostscript/APKBUILD index 69806d87b4d..e01a1387586 100644 --- a/main/ghostscript/APKBUILD +++ b/main/ghostscript/APKBUILD @@ -39,11 +39,22 @@ prepare() { build(){ # build ijs cd "$_builddir"/ijs - ./configure --prefix=/usr --enable-shared --disable-static || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --enable-shared \ + --disable-static \ + || return 1 make cd "$_builddir" - ./configure --prefix=/usr \ + + # --disable-compile-inits is needed to link with system-zlib + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -56,7 +67,8 @@ build(){ --enable-gtk \ --with-drivers=FILES \ --with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \ - --disable-compile-inits # needed for linking with system-zlib + --disable-compile-inits \ + || return 1 make so all || return 1 } diff --git a/main/giblib/APKBUILD b/main/giblib/APKBUILD index f14b62abf05..cb1196d8a91 100644 --- a/main/giblib/APKBUILD +++ b/main/giblib/APKBUILD @@ -14,7 +14,11 @@ source="http://linuxbrit.co.uk/downloads/$pkgname-$pkgver.tar.gz" depends_dev="imlib2-dev freetype-dev zlib-dev libx11-dev libxext-dev" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/giflib/APKBUILD b/main/giflib/APKBUILD index 81a5fc73a75..32f5c72161b 100644 --- a/main/giflib/APKBUILD +++ b/main/giflib/APKBUILD @@ -24,7 +24,11 @@ prepare() { build () { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 MAJOR=`echo $pkgver | sed 's/\([0-9]\+\)\..*/\1/'` gcc -shared -Wl,-soname,libungif.so.${MAJOR} -Llib/.libs -lgif -o libungif.so.$pkgver || return 1 diff --git a/main/gigolo/APKBUILD b/main/gigolo/APKBUILD index 0bed2a64f9c..7de77d1bd98 100644 --- a/main/gigolo/APKBUILD +++ b/main/gigolo/APKBUILD @@ -20,10 +20,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/gimp/APKBUILD b/main/gimp/APKBUILD index c4b6c9d15e1..ec6198ef662 100644 --- a/main/gimp/APKBUILD +++ b/main/gimp/APKBUILD @@ -30,7 +30,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-dependency-tracking \ --sysconfdir=/etc \ --enable-mp \ @@ -40,7 +43,8 @@ build() { --with-gvfs \ --without-gnomevfs \ --with-gif-compression=lzw \ - --without-aa || return 1 + --without-aa \ + || return 1 make || return 1 } diff --git a/main/glade/APKBUILD b/main/glade/APKBUILD index bb25db79ad9..c436803b1c2 100644 --- a/main/glade/APKBUILD +++ b/main/glade/APKBUILD @@ -26,10 +26,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/glade3/APKBUILD b/main/glade3/APKBUILD index e70b90ba6c3..1d748621afa 100644 --- a/main/glade3/APKBUILD +++ b/main/glade3/APKBUILD @@ -19,7 +19,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/glib-networking/APKBUILD b/main/glib-networking/APKBUILD index ab9bc5750be..1a547ebca0e 100644 --- a/main/glib-networking/APKBUILD +++ b/main/glib-networking/APKBUILD @@ -31,7 +31,10 @@ prepare() { build() { cd "$_builddir" - CONFIG_SHELL=/bin/bash ./configure --prefix=/usr \ + CONFIG_SHELL=/bin/bash ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-libproxy \ --with-gnutls \ || return 1 diff --git a/main/glib/APKBUILD b/main/glib/APKBUILD index 129b5df6dc1..fbe1f164de6 100644 --- a/main/glib/APKBUILD +++ b/main/glib/APKBUILD @@ -22,8 +22,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --mandir=/usr/share/man + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/glibmm/APKBUILD b/main/glibmm/APKBUILD index 3fe0ac686f0..e09c93717a5 100644 --- a/main/glibmm/APKBUILD +++ b/main/glibmm/APKBUILD @@ -14,7 +14,11 @@ source="http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$p build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/glproto/APKBUILD b/main/glproto/APKBUILD index a6f91e3e5cd..d6b9af13a1c 100644 --- a/main/glproto/APKBUILD +++ b/main/glproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.t build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/glu/APKBUILD b/main/glu/APKBUILD index 48b117ee598..4f88ce8d944 100644 --- a/main/glu/APKBUILD +++ b/main/glu/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ || return 1 make || return 1 diff --git a/main/gmime/APKBUILD b/main/gmime/APKBUILD index af59ad9e471..599de2af012 100644 --- a/main/gmime/APKBUILD +++ b/main/gmime/APKBUILD @@ -27,8 +27,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/gmp5/APKBUILD b/main/gmp5/APKBUILD index f57a04f6573..cf624951db5 100644 --- a/main/gmp5/APKBUILD +++ b/main/gmp5/APKBUILD @@ -24,14 +24,15 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --build=${CBUILD} \ - --host=${CHOST} \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --with-sysroot=${CBUILDROOT} \ + --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --localstatedir=/var/state/gmp \ - --enable-cxx \ + --enable-cxx \ --with-pic \ || return 1 diff --git a/main/gnats/APKBUILD b/main/gnats/APKBUILD index 9b4460809e0..befad8edbaf 100644 --- a/main/gnats/APKBUILD +++ b/main/gnats/APKBUILD @@ -18,11 +18,15 @@ build() { # make install needs gnats user sudo sh $srcdir/$install pre_install || return 1 - AWK=awk ./configure --prefix=/usr \ + AWK=awk ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --sharedstatedir=/var/lib \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 make DESTDIR="$pkgdir/" install diff --git a/main/gnokii/APKBUILD b/main/gnokii/APKBUILD index cd4ffce498f..9d02ec55471 100644 --- a/main/gnokii/APKBUILD +++ b/main/gnokii/APKBUILD @@ -32,7 +32,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --enable-security \ --disable-unix98test \ diff --git a/main/gnomad2/APKBUILD b/main/gnomad2/APKBUILD index 804d0089315..237a8dc53f6 100644 --- a/main/gnomad2/APKBUILD +++ b/main/gnomad2/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/gnome-bluetooth/APKBUILD b/main/gnome-bluetooth/APKBUILD index 182e9765aef..4666c4eb054 100644 --- a/main/gnome-bluetooth/APKBUILD +++ b/main/gnome-bluetooth/APKBUILD @@ -32,7 +32,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-desktop-update \ diff --git a/main/gnome-control-center/APKBUILD b/main/gnome-control-center/APKBUILD index c7c1417cad7..7977e90d4b7 100644 --- a/main/gnome-control-center/APKBUILD +++ b/main/gnome-control-center/APKBUILD @@ -51,9 +51,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/gnome-desktop/APKBUILD b/main/gnome-desktop/APKBUILD index 5dff957bb57..c76d4644085 100644 --- a/main/gnome-desktop/APKBUILD +++ b/main/gnome-desktop/APKBUILD @@ -27,10 +27,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --with-gnome-distributor=Alpine \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/gnome-disk-utility/APKBUILD b/main/gnome-disk-utility/APKBUILD index 95c1e1e0907..4d6ed675343 100644 --- a/main/gnome-disk-utility/APKBUILD +++ b/main/gnome-disk-utility/APKBUILD @@ -26,13 +26,17 @@ prepare() { build () { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/gnome-disk-utility \ --disable-scrollkeeper \ --disable-nautilus \ - --disable-gtk-doc + --disable-gtk-doc \ + || return 1 make } diff --git a/main/gnome-doc-utils/APKBUILD b/main/gnome-doc-utils/APKBUILD index 99d0625c383..c18984186d2 100644 --- a/main/gnome-doc-utils/APKBUILD +++ b/main/gnome-doc-utils/APKBUILD @@ -19,11 +19,15 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 # broken with parallell builds make -j1 || return 1 } diff --git a/main/gnome-icon-theme/APKBUILD b/main/gnome-icon-theme/APKBUILD index 72a009efe35..a1f7e5f1a25 100644 --- a/main/gnome-icon-theme/APKBUILD +++ b/main/gnome-icon-theme/APKBUILD @@ -27,9 +27,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/gnome-keyring/APKBUILD b/main/gnome-keyring/APKBUILD index 574df5ef131..74c604f1b5e 100644 --- a/main/gnome-keyring/APKBUILD +++ b/main/gnome-keyring/APKBUILD @@ -46,8 +46,12 @@ build() { cd "$_builddir" # build fails on eglibc when using ccache [ "$ALPINE_LIBC" = "eglibc" ] && export CC="/usr/bin/gcc" - ./configure --prefix=/usr \ - --sysconfdir=/etc || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/gnome-menus/APKBUILD b/main/gnome-menus/APKBUILD index 13076e97800..6827135105e 100644 --- a/main/gnome-menus/APKBUILD +++ b/main/gnome-menus/APKBUILD @@ -27,9 +27,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/gnome-mime-data/APKBUILD b/main/gnome-mime-data/APKBUILD index 9cbd4698f7b..5988e4c00d6 100644 --- a/main/gnome-mime-data/APKBUILD +++ b/main/gnome-mime-data/APKBUILD @@ -27,9 +27,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/gnome-panel/APKBUILD b/main/gnome-panel/APKBUILD index 6e3ce26bded..e2ea9679427 100644 --- a/main/gnome-panel/APKBUILD +++ b/main/gnome-panel/APKBUILD @@ -41,9 +41,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/gnome-power-manager/APKBUILD b/main/gnome-power-manager/APKBUILD index 08e7463ee1c..16550a3adf6 100644 --- a/main/gnome-power-manager/APKBUILD +++ b/main/gnome-power-manager/APKBUILD @@ -50,10 +50,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --disable-applets \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/gnome-screensaver/APKBUILD b/main/gnome-screensaver/APKBUILD index d7e1acabb40..91da558467b 100644 --- a/main/gnome-screensaver/APKBUILD +++ b/main/gnome-screensaver/APKBUILD @@ -48,10 +48,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --disable-applets \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/gnome-session/APKBUILD b/main/gnome-session/APKBUILD index bb453be6fe4..8710854ac4e 100644 --- a/main/gnome-session/APKBUILD +++ b/main/gnome-session/APKBUILD @@ -36,10 +36,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --enable-compositor \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/gnome-settings-daemon/APKBUILD b/main/gnome-settings-daemon/APKBUILD index 9d827f6ac5d..58863deb36d 100644 --- a/main/gnome-settings-daemon/APKBUILD +++ b/main/gnome-settings-daemon/APKBUILD @@ -47,9 +47,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/gnome-system-monitor/APKBUILD b/main/gnome-system-monitor/APKBUILD index 1374b210863..ad83de9e003 100644 --- a/main/gnome-system-monitor/APKBUILD +++ b/main/gnome-system-monitor/APKBUILD @@ -63,9 +63,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/gnome-terminal/APKBUILD b/main/gnome-terminal/APKBUILD index 9ff4320913d..979e31ea962 100644 --- a/main/gnome-terminal/APKBUILD +++ b/main/gnome-terminal/APKBUILD @@ -26,9 +26,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/gnome-themes/APKBUILD b/main/gnome-themes/APKBUILD index b9a963e5ea4..da9ce458977 100644 --- a/main/gnome-themes/APKBUILD +++ b/main/gnome-themes/APKBUILD @@ -27,9 +27,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/gnome-vfs/APKBUILD b/main/gnome-vfs/APKBUILD index 70d2e4ca12d..0854692d1a9 100644 --- a/main/gnome-vfs/APKBUILD +++ b/main/gnome-vfs/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ || return 1 make || return 1 diff --git a/main/gnuchess/APKBUILD b/main/gnuchess/APKBUILD index bb1a7ed2a08..bc98ebeaaa7 100644 --- a/main/gnuchess/APKBUILD +++ b/main/gnuchess/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/gnumeric/APKBUILD b/main/gnumeric/APKBUILD index 119cf470598..1a0dc46de39 100644 --- a/main/gnumeric/APKBUILD +++ b/main/gnumeric/APKBUILD @@ -24,7 +24,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ diff --git a/main/gnupg/APKBUILD b/main/gnupg/APKBUILD index 445dd673164..0fef88634b5 100644 --- a/main/gnupg/APKBUILD +++ b/main/gnupg/APKBUILD @@ -14,8 +14,12 @@ source="ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-$pkgver.tar.bz2" build () { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ - --disable-nls + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-nls \ + || return 1 make || return 1 } diff --git a/main/gnutls/APKBUILD b/main/gnutls/APKBUILD index e7e8bf6d94d..1dbe3465704 100644 --- a/main/gnutls/APKBUILD +++ b/main/gnutls/APKBUILD @@ -29,7 +29,10 @@ prepare() { build() { cd "$_builddir" - LIBS="-lgmp" ./configure --prefix=/usr \ + LIBS="-lgmp" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/gobject-introspection/APKBUILD b/main/gobject-introspection/APKBUILD index 69e8a03aa89..7d7e462a1e4 100644 --- a/main/gobject-introspection/APKBUILD +++ b/main/gobject-introspection/APKBUILD @@ -31,7 +31,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr --disable-static || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-static \ + || return 1 make V=1 || return 1 } diff --git a/main/goffice/APKBUILD b/main/goffice/APKBUILD index 961a1086b31..6d1806c7783 100644 --- a/main/goffice/APKBUILD +++ b/main/goffice/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ diff --git a/main/goffice0.8/APKBUILD b/main/goffice0.8/APKBUILD index 54829f2cdd5..cde30efe601 100644 --- a/main/goffice0.8/APKBUILD +++ b/main/goffice0.8/APKBUILD @@ -30,7 +30,10 @@ prepare() { build() { cd "$srcdir"/$_realname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --without-gconf \ diff --git a/main/gparted/APKBUILD b/main/gparted/APKBUILD index e6f9ca91b96..e98d15415dc 100644 --- a/main/gparted/APKBUILD +++ b/main/gparted/APKBUILD @@ -20,12 +20,16 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-doc \ - --disable-scrollkeeper + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/gperf/APKBUILD b/main/gperf/APKBUILD index 6cad51f78ed..37c4ce18ce2 100644 --- a/main/gperf/APKBUILD +++ b/main/gperf/APKBUILD @@ -14,7 +14,11 @@ source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/gpgme/APKBUILD b/main/gpgme/APKBUILD index 3e5f3419a51..bd7d29d1da2 100644 --- a/main/gpgme/APKBUILD +++ b/main/gpgme/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/gphoto2/APKBUILD b/main/gphoto2/APKBUILD index fdb6d26bf4d..7831471fe64 100644 --- a/main/gphoto2/APKBUILD +++ b/main/gphoto2/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/gpicview/APKBUILD b/main/gpicview/APKBUILD index d7b2c639752..ad26d8cd197 100644 --- a/main/gpicview/APKBUILD +++ b/main/gpicview/APKBUILD @@ -22,7 +22,12 @@ prepare() { build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --sysconfdir=/etc --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --sysconfdir=/etc \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/graphviz/APKBUILD b/main/graphviz/APKBUILD index d5cf0096aa5..531d158e914 100644 --- a/main/graphviz/APKBUILD +++ b/main/graphviz/APKBUILD @@ -33,7 +33,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --with-x \ --disable-static \ diff --git a/main/grep/APKBUILD b/main/grep/APKBUILD index 0be3037679f..3303e7bd694 100644 --- a/main/grep/APKBUILD +++ b/main/grep/APKBUILD @@ -16,11 +16,15 @@ source="http://mirrors.kernel.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --disable-nls + --disable-nls \ + || return 1 make || return 1 } diff --git a/main/groff/APKBUILD b/main/groff/APKBUILD index aca8b4803d5..3b7d7a6d0d1 100644 --- a/main/groff/APKBUILD +++ b/main/groff/APKBUILD @@ -13,7 +13,12 @@ source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz" build () { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr --without-x + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --without-x \ + || return 1 make || return 1 } diff --git a/main/gross/APKBUILD b/main/gross/APKBUILD index e06a6ef58a4..9ab6ca9ab4f 100644 --- a/main/gross/APKBUILD +++ b/main/gross/APKBUILD @@ -33,10 +33,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + || return 1 make -j1 || return 1 } diff --git a/main/gsl/APKBUILD b/main/gsl/APKBUILD index aee3d17fec0..479e571d523 100644 --- a/main/gsl/APKBUILD +++ b/main/gsl/APKBUILD @@ -15,7 +15,11 @@ source="http://ftp.gnu.org/gnu/gsl/gsl-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/gst-ffmpeg/APKBUILD b/main/gst-ffmpeg/APKBUILD index fb66fe98a84..23a65991716 100644 --- a/main/gst-ffmpeg/APKBUILD +++ b/main/gst-ffmpeg/APKBUILD @@ -21,11 +21,15 @@ prepare() { build() { cd "$_builddir" export CFLAGS="$CFLAGS -fno-strict-aliasing" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-orc \ - --with-ffmpeg-extra-configure="--enable-pic --disable-mmx --disable-mmx2" || return 1 + --with-ffmpeg-extra-configure="--enable-pic --disable-mmx --disable-mmx2" \ + || return 1 make || return 1 } diff --git a/main/gst-libav1/APKBUILD b/main/gst-libav1/APKBUILD index 685fe007d2a..8eb1fb38312 100644 --- a/main/gst-libav1/APKBUILD +++ b/main/gst-libav1/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" export CFLAGS="$CFLAGS -fno-strict-aliasing" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-orc \ diff --git a/main/gst-plugins-bad/APKBUILD b/main/gst-plugins-bad/APKBUILD index 458fc741184..ce7bb29822b 100644 --- a/main/gst-plugins-bad/APKBUILD +++ b/main/gst-plugins-bad/APKBUILD @@ -19,7 +19,10 @@ source="http://gstreamer.freedesktop.org//src/gst-plugins-bad/gst-plugins-bad-$p build() { cd "$srcdir"/gst-plugins-bad-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ diff --git a/main/gst-plugins-bad1/APKBUILD b/main/gst-plugins-bad1/APKBUILD index 2a758e9aa27..e7a103cd9c3 100644 --- a/main/gst-plugins-bad1/APKBUILD +++ b/main/gst-plugins-bad1/APKBUILD @@ -41,7 +41,10 @@ ldpath="/usr/lib/gstreamer-1.0" _builddir="$srcdir"/gst-plugins-bad-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ diff --git a/main/gst-plugins-base/APKBUILD b/main/gst-plugins-base/APKBUILD index 2b2d3e09c52..5aec95753ec 100644 --- a/main/gst-plugins-base/APKBUILD +++ b/main/gst-plugins-base/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ diff --git a/main/gst-plugins-base1/APKBUILD b/main/gst-plugins-base1/APKBUILD index 4b1de23e7b7..0891ea957d8 100644 --- a/main/gst-plugins-base1/APKBUILD +++ b/main/gst-plugins-base1/APKBUILD @@ -36,7 +36,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ diff --git a/main/gst-plugins-good/APKBUILD b/main/gst-plugins-good/APKBUILD index 66cae732675..353c27a8317 100644 --- a/main/gst-plugins-good/APKBUILD +++ b/main/gst-plugins-good/APKBUILD @@ -32,7 +32,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ diff --git a/main/gst-plugins-good1/APKBUILD b/main/gst-plugins-good1/APKBUILD index a119a4810ca..53b9d86cdc4 100644 --- a/main/gst-plugins-good1/APKBUILD +++ b/main/gst-plugins-good1/APKBUILD @@ -50,7 +50,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ diff --git a/main/gst-plugins-ugly/APKBUILD b/main/gst-plugins-ugly/APKBUILD index 04a39c4438f..f97ca6d810b 100644 --- a/main/gst-plugins-ugly/APKBUILD +++ b/main/gst-plugins-ugly/APKBUILD @@ -27,13 +27,17 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ --enable-experimental \ --with-package-name="GStreamer Ugly Plugins (Alpine Linux)" \ - --with-package-origin="http://www.alpinelinux.org/" || return 1 + --with-package-origin="http://www.alpinelinux.org/" \ + || return 1 make } diff --git a/main/gst-plugins-ugly1/APKBUILD b/main/gst-plugins-ugly1/APKBUILD index 6430d0a0684..962dd01eed6 100644 --- a/main/gst-plugins-ugly1/APKBUILD +++ b/main/gst-plugins-ugly1/APKBUILD @@ -30,13 +30,17 @@ _builddir="$srcdir"/gst-plugins-ugly-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ --enable-experimental \ --with-package-name="GStreamer Ugly Plugins (Alpine Linux)" \ - --with-package-origin="http://alpinelinux.org/" || return 1 + --with-package-origin="http://alpinelinux.org/" \ + || return 1 make } diff --git a/main/gstreamer/APKBUILD b/main/gstreamer/APKBUILD index 1d7d1f46f2b..ce158ab2f9e 100644 --- a/main/gstreamer/APKBUILD +++ b/main/gstreamer/APKBUILD @@ -32,11 +32,15 @@ prepare() { build() { cd "$srcdir"/gstreamer-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-introspection \ - --disable-docs-build || return 1 + --disable-docs-build \ + || return 1 make || return 1 } diff --git a/main/gstreamer1/APKBUILD b/main/gstreamer1/APKBUILD index 59df186f63b..d7a51498694 100644 --- a/main/gstreamer1/APKBUILD +++ b/main/gstreamer1/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$srcdir"/gstreamer-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-introspection \ diff --git a/main/gtk+2.0/APKBUILD b/main/gtk+2.0/APKBUILD index acfe2689ff1..97fa9ac57cd 100644 --- a/main/gtk+2.0/APKBUILD +++ b/main/gtk+2.0/APKBUILD @@ -66,12 +66,16 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --with-xinput=yes \ --without-libjasper \ - --with-included-loaders=png || return 1 + --with-included-loaders=png \ + || return 1 # https://bugzilla.gnome.org/show_bug.cgi?id=655517 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool || return 1 make || return 1 diff --git a/main/gtk+3.0/APKBUILD b/main/gtk+3.0/APKBUILD index 0c84becd13f..43013e21740 100644 --- a/main/gtk+3.0/APKBUILD +++ b/main/gtk+3.0/APKBUILD @@ -54,7 +54,10 @@ source="http://ftp.gnome.org/pub/gnome/sources/gtk+/${pkgver%.*}/gtk+-$pkgver.ta _builddir="$srcdir"/gtk+-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ || return 1 diff --git a/main/gtk-doc/APKBUILD b/main/gtk-doc/APKBUILD index a0828f58871..1c70f5b7e7d 100644 --- a/main/gtk-doc/APKBUILD +++ b/main/gtk-doc/APKBUILD @@ -12,7 +12,11 @@ source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/$pkgver/$pkgname-$pkgver build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/gtk-engines/APKBUILD b/main/gtk-engines/APKBUILD index 643ecd8665a..50baa5cbf11 100644 --- a/main/gtk-engines/APKBUILD +++ b/main/gtk-engines/APKBUILD @@ -32,10 +32,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --enable-animation \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/gtk-vnc/APKBUILD b/main/gtk-vnc/APKBUILD index e3c1e32807d..0304bda5238 100644 --- a/main/gtk-vnc/APKBUILD +++ b/main/gtk-vnc/APKBUILD @@ -15,11 +15,15 @@ source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$p subpackages="$pkgname-dev gvncviewer $pkgname-lang $pkgname-doc" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-examples \ --enable-introspection \ --with-gtk=3.0 \ - --disable-static || return 1 + --disable-static \ + || return 1 make || return 1 } diff --git a/main/gtk-xfce-engine/APKBUILD b/main/gtk-xfce-engine/APKBUILD index 9004db92925..9fa4fc0abfe 100644 --- a/main/gtk-xfce-engine/APKBUILD +++ b/main/gtk-xfce-engine/APKBUILD @@ -23,11 +23,15 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/gtkglext/APKBUILD b/main/gtkglext/APKBUILD index adee233d10a..b6d97477330 100644 --- a/main/gtkglext/APKBUILD +++ b/main/gtkglext/APKBUILD @@ -30,7 +30,10 @@ prepare() { build() { cd "$_builddir" ./configure \ - --prefix=/usr || return 1 + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/gtkmm/APKBUILD b/main/gtkmm/APKBUILD index c4f57d332ea..c2422dc465a 100644 --- a/main/gtkmm/APKBUILD +++ b/main/gtkmm/APKBUILD @@ -14,7 +14,11 @@ source="http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$p build() { cd "$srcdir"/gtkmm-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/gtksourceview/APKBUILD b/main/gtksourceview/APKBUILD index 09d46d392e6..5a9da5c9d70 100644 --- a/main/gtksourceview/APKBUILD +++ b/main/gtksourceview/APKBUILD @@ -14,10 +14,14 @@ source="http://ftp.gnome.org/pub/gnome/sources/gtksourceview/${pkgver%.*}/gtksou build() { cd "$srcdir"/gtksourceview-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ - --disable-static || return 1 + --disable-static \ + || return 1 make || return 1 } diff --git a/main/gtkspell/APKBUILD b/main/gtkspell/APKBUILD index 3b5df6f94f7..9112599b6f4 100644 --- a/main/gtkspell/APKBUILD +++ b/main/gtkspell/APKBUILD @@ -13,7 +13,10 @@ source="http://$pkgname.sourceforge.net/download/$pkgname-$pkgver.tar.gz" depends_dev="gtk+-dev" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ || return 1 make || return 1 } diff --git a/main/gucharmap/APKBUILD b/main/gucharmap/APKBUILD index e942c30ae88..e7078e43ef5 100644 --- a/main/gucharmap/APKBUILD +++ b/main/gucharmap/APKBUILD @@ -21,7 +21,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/guile/APKBUILD b/main/guile/APKBUILD index f3fb25372a4..7166bb65cb4 100644 --- a/main/guile/APKBUILD +++ b/main/guile/APKBUILD @@ -29,8 +29,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --disable-error-on-warning || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-error-on-warning \ + || return 1 make LDFLAGS+="-lpthread" || return 1 } diff --git a/main/gvfs/APKBUILD b/main/gvfs/APKBUILD index d771bd5c115..33a7f08e952 100644 --- a/main/gvfs/APKBUILD +++ b/main/gvfs/APKBUILD @@ -37,7 +37,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/gvfs \ --mandir=/usr/share/man \ diff --git a/main/gzip/APKBUILD b/main/gzip/APKBUILD index fec3177a31a..b1b062c06d6 100644 --- a/main/gzip/APKBUILD +++ b/main/gzip/APKBUILD @@ -19,9 +19,13 @@ build() { # avoid text relocation export DEFS="NO_ASM" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } @@ -29,6 +33,9 @@ package() { cd "$_builddir" make DESTDIR=$pkgdir install + rm -rf "$pkgdir"/usr/lib/charset.alias + rmdir -p "$pkgdir"/usr/lib 2>/dev/null + mkdir -p "$pkgdir"/bin mv "$pkgdir"/usr/bin/gzip "$pkgdir"/usr/bin/gunzip "$pkgdir"/bin/ ln -s /bin/gzip "$pkgdir"/usr/bin/gzip diff --git a/main/harfbuzz/APKBUILD b/main/harfbuzz/APKBUILD index 1a6244bb6a5..358ca8735ff 100644 --- a/main/harfbuzz/APKBUILD +++ b/main/harfbuzz/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ || return 1 make diff --git a/main/haserl/APKBUILD b/main/haserl/APKBUILD index ad7e36d2330..26c3ee6c1e3 100644 --- a/main/haserl/APKBUILD +++ b/main/haserl/APKBUILD @@ -32,8 +32,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --with-lua=lua5.1 || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --with-lua=lua5.1 \ + || return 1 make || return 1 } diff --git a/main/haveged/APKBUILD b/main/haveged/APKBUILD index 54e6993b34b..7490e314fdf 100644 --- a/main/haveged/APKBUILD +++ b/main/haveged/APKBUILD @@ -16,7 +16,12 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix /usr --sysconfdir /etc || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix /usr \ + --sysconfdir /etc \ + || return 1 make || return 1 } diff --git a/main/heimdal/APKBUILD b/main/heimdal/APKBUILD index 767ee417890..d5a71f30970 100644 --- a/main/heimdal/APKBUILD +++ b/main/heimdal/APKBUILD @@ -54,14 +54,18 @@ build() { export LDFLAGS="${LDFLAGS} -Wl,--as-needed" export LIBS="-ldb" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-shared=yes \ --without-x \ --with-berkeley-db \ --with-readline-lib=/usr/lib \ --with-readline-include=/usr/include/readline \ --with-sqlite3=/usr \ - --with-openssl=/usr || return 1 + --with-openssl=/usr \ + || return 1 # make sure we use system version rm -r lib/sqlite lib/com_err diff --git a/main/hicolor-icon-theme/APKBUILD b/main/hicolor-icon-theme/APKBUILD index c3d7144baa2..d752d0be8a7 100644 --- a/main/hicolor-icon-theme/APKBUILD +++ b/main/hicolor-icon-theme/APKBUILD @@ -12,7 +12,11 @@ source="http://icon-theme.freedesktop.org/releases/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/htop/APKBUILD b/main/htop/APKBUILD index ac4a843b5f9..c7c89133fc3 100644 --- a/main/htop/APKBUILD +++ b/main/htop/APKBUILD @@ -15,6 +15,8 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man \ || return 1 diff --git a/main/hunspell/APKBUILD b/main/hunspell/APKBUILD index a8409b8b461..f629a1e46c6 100644 --- a/main/hunspell/APKBUILD +++ b/main/hunspell/APKBUILD @@ -13,9 +13,13 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir/hunspell-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ - --without-included-gettext || return 1 + --without-included-gettext \ + || return 1 make || return 1 } diff --git a/main/hwdata/APKBUILD b/main/hwdata/APKBUILD index bdb25ceb825..caa449df860 100644 --- a/main/hwdata/APKBUILD +++ b/main/hwdata/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --datadir=/usr/share \ || return 1 diff --git a/main/hylafax/APKBUILD b/main/hylafax/APKBUILD index 418027766fd..35c01c96e1f 100644 --- a/main/hylafax/APKBUILD +++ b/main/hylafax/APKBUILD @@ -27,7 +27,11 @@ build() { # the configure script does not handle ccache or distcc export CC=gcc export CXX=g++ - ./configure --nointeractive --disable-pam \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --nointeractive \ + --disable-pam \ --with-DIR_BIN=/usr/bin \ --with-DIR_SBIN=/usr/sbin \ --with-DIR_LIB=/usr/lib \ diff --git a/main/hypermail/APKBUILD b/main/hypermail/APKBUILD index 5a6824d8566..02c8f3fcf39 100644 --- a/main/hypermail/APKBUILD +++ b/main/hypermail/APKBUILD @@ -17,12 +17,16 @@ source="http://www.hypermail-project.org/$pkgname-$pkgver.tar.gz _builddir="$srcdir"/hypermail build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-httpddir=/var/www \ - --with-cgidir=/var/www/cgi-bin + --with-cgidir=/var/www/cgi-bin \ + || return 1 make || return 1 } package() { diff --git a/main/iceauth/APKBUILD b/main/iceauth/APKBUILD index 42712528df0..77fad92b3b5 100644 --- a/main/iceauth/APKBUILD +++ b/main/iceauth/APKBUILD @@ -12,7 +12,10 @@ makedepends="pkgconfig libice-dev" source="http://xorg.freedesktop.org/releases/individual/app/iceauth-$pkgver.tar.bz2" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ || return 1 make || return 1 diff --git a/main/icecast/APKBUILD b/main/icecast/APKBUILD index 83282982c73..4046c5e4b15 100644 --- a/main/icecast/APKBUILD +++ b/main/icecast/APKBUILD @@ -26,11 +26,15 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --localstatedir=/var \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make } diff --git a/main/icedtea-web/APKBUILD b/main/icedtea-web/APKBUILD index 74cfaebd961..0a45aa915aa 100644 --- a/main/icedtea-web/APKBUILD +++ b/main/icedtea-web/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr/lib/jvm/java-1.6-openjdk \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr/lib/jvm/java-1.6-openjdk \ --datarootdir=/usr/share \ --sysconfdir=/etc \ --mandir=/usr/share/man \ diff --git a/main/icon-naming-utils/APKBUILD b/main/icon-naming-utils/APKBUILD index c55416924e7..b7ba1e1822c 100644 --- a/main/icon-naming-utils/APKBUILD +++ b/main/icon-naming-utils/APKBUILD @@ -13,10 +13,14 @@ source="http://tango.freedesktop.org/releases/$pkgname-$pkgver.tar.bz2" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/icon-naming-utils \ - --localstatedir=/var || return 1 + --localstatedir=/var \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install || return 1 mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib/pkgconfig || return 1 diff --git a/main/icu/APKBUILD b/main/icu/APKBUILD index a8ebea59179..240a3e8f43b 100644 --- a/main/icu/APKBUILD +++ b/main/icu/APKBUILD @@ -40,7 +40,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --with-data-packaging=library \ --disable-samples \ diff --git a/main/iftop/APKBUILD b/main/iftop/APKBUILD index c0161cdc9c5..26a8b0fd866 100644 --- a/main/iftop/APKBUILD +++ b/main/iftop/APKBUILD @@ -13,7 +13,12 @@ source="http://www.ex-parrot.com/~pdw/$pkgname/download/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr --mandir=/usr/share/man + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make } diff --git a/main/igmpproxy/APKBUILD b/main/igmpproxy/APKBUILD index c0a8b9a5b08..792cb2f7eb6 100644 --- a/main/igmpproxy/APKBUILD +++ b/main/igmpproxy/APKBUILD @@ -21,10 +21,14 @@ build() { sed -i -e 's:^#define MAX_MC_VIFS.*:#define MAX_MC_VIFS MAXVIFS:' \ src/igmpproxy.h - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install diff --git a/main/imagemagick/APKBUILD b/main/imagemagick/APKBUILD index 0649ef3964b..a5b79855ec5 100644 --- a/main/imagemagick/APKBUILD +++ b/main/imagemagick/APKBUILD @@ -33,7 +33,10 @@ build() { 's:DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}":DOCUMENTATION_PATH="/usr/share/doc/imagemagick":g' \ configure || die - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -41,7 +44,8 @@ build() { --without-x \ --with-gslib \ --with-gs-font-dir=/usr/share/fonts/Type1 \ - --with-modules + --with-modules \ + || return 1 make || return 1 } diff --git a/main/imlib2/APKBUILD b/main/imlib2/APKBUILD index 15b0fe828cc..0af33ef14a8 100644 --- a/main/imlib2/APKBUILD +++ b/main/imlib2/APKBUILD @@ -20,7 +20,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc/imlib2 \ --x-libraries=/usr/lib \ --disable-mmx \ diff --git a/main/indent/APKBUILD b/main/indent/APKBUILD index 260684cae7d..65c247549de 100644 --- a/main/indent/APKBUILD +++ b/main/indent/APKBUILD @@ -22,12 +22,16 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --without-included-gettext \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --without-texinfo + --without-texinfo \ + || return 1 make SUBDIRS="intl po src" || return 1 } diff --git a/main/inkscape/APKBUILD b/main/inkscape/APKBUILD index 3944f125772..b4e9d975567 100644 --- a/main/inkscape/APKBUILD +++ b/main/inkscape/APKBUILD @@ -44,7 +44,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-python \ --with-perl \ --without-gnome-vfs \ diff --git a/main/inputproto/APKBUILD b/main/inputproto/APKBUILD index 94775c1e5f3..356919f386e 100644 --- a/main/inputproto/APKBUILD +++ b/main/inputproto/APKBUILD @@ -10,7 +10,11 @@ source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.t build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/intltool/APKBUILD b/main/intltool/APKBUILD index 8cbcad1b3aa..50ba6a5ab67 100644 --- a/main/intltool/APKBUILD +++ b/main/intltool/APKBUILD @@ -12,7 +12,11 @@ source="http://edge.launchpad.net/intltool/trunk/${pkgver}/+download/${pkgname}- build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/iperf/APKBUILD b/main/iperf/APKBUILD index 248abcb0b39..ede37bdf001 100644 --- a/main/iperf/APKBUILD +++ b/main/iperf/APKBUILD @@ -17,6 +17,8 @@ _builddir="$srcdir/$pkgname-$pkgver" build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ diff --git a/main/iproute2/APKBUILD b/main/iproute2/APKBUILD index f0bf0056e68..ade1959dfdd 100644 --- a/main/iproute2/APKBUILD +++ b/main/iproute2/APKBUILD @@ -31,7 +31,10 @@ prepare() { build() { cd "$srcdir"/$pkgname-$_realver - ./configure || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + || return 1 make CCOPTS="-D_GNU_SOURCE $CFLAGS" LIBDIR=/lib || return 1 } diff --git a/main/ipsec-tools/APKBUILD b/main/ipsec-tools/APKBUILD index 300c6627994..661e2e98b9b 100644 --- a/main/ipsec-tools/APKBUILD +++ b/main/ipsec-tools/APKBUILD @@ -35,7 +35,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -47,7 +50,8 @@ build() { --enable-frag \ --enable-hybrid \ --enable-ipv6 \ - --enable-natt + --enable-natt \ + || return 1 make || return 1 } diff --git a/main/ipset/APKBUILD b/main/ipset/APKBUILD index 2af4fcab0ec..7411c7732ca 100644 --- a/main/ipset/APKBUILD +++ b/main/ipset/APKBUILD @@ -26,7 +26,13 @@ prepare() { build() { cd "$_builddir" - ./configure --with-kmod=no --prefix=/usr && make + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --with-kmod=no \ + --prefix=/usr \ + || return 1 + make || return 1 } package() { diff --git a/main/iptables/APKBUILD b/main/iptables/APKBUILD index 02916d3c6a5..600f6cade86 100644 --- a/main/iptables/APKBUILD +++ b/main/iptables/APKBUILD @@ -24,19 +24,22 @@ prepare() { *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done - sed -i -e '/if_packet/i#define __aligned_u64 __u64 __attribute__((aligned(8)))' \ + sed -i -e '/if_packet/i#define __aligned_u64 __u64 __attribute__((aligned(8)))' \ extensions/libxt_pkttype.c || return 1 } build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --sbindir=/sbin \ --without-kernel \ - --enable-devel \ + --enable-devel \ --enable-libipq \ - --enable-shared \ + --enable-shared \ || return 1 # do not use rpath sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool diff --git a/main/iptraf-ng/APKBUILD b/main/iptraf-ng/APKBUILD index 7fb417a740f..58aac827263 100644 --- a/main/iptraf-ng/APKBUILD +++ b/main/iptraf-ng/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - CFLAGS="$CFLAGS -std=gnu99" ./configure --prefix=/usr \ + CFLAGS="$CFLAGS -std=gnu99" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ || return 1 make } diff --git a/main/ircii/APKBUILD b/main/ircii/APKBUILD index a1dd40456b4..a18f48408a6 100644 --- a/main/ircii/APKBUILD +++ b/main/ircii/APKBUILD @@ -16,7 +16,10 @@ source="http://dev.alpinelinux.org/archive/ircii/ircii-$pkgver.tar.bz2" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/ircservices/APKBUILD b/main/ircservices/APKBUILD index 2e373824942..3527070319d 100644 --- a/main/ircservices/APKBUILD +++ b/main/ircservices/APKBUILD @@ -25,6 +25,8 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver + + # note: this is not autotools RUNGROUP=ircservices ./configure \ -cc "$CC" \ -cflags "$CFLAGS" \ @@ -33,9 +35,9 @@ build() { || return 1 # build targets one by one as paralell builds breaks - make config-check &&\ - make ircservices &&\ - make languages &&\ + make config-check && \ + make ircservices && \ + make languages && \ make tools } diff --git a/main/irqbalance/APKBUILD b/main/irqbalance/APKBUILD index 461aa5c9da0..45dbc9eec32 100644 --- a/main/irqbalance/APKBUILD +++ b/main/irqbalance/APKBUILD @@ -25,10 +25,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/irssi/APKBUILD b/main/irssi/APKBUILD index 8a3de49fca8..9e4d9aae8ed 100644 --- a/main/irssi/APKBUILD +++ b/main/irssi/APKBUILD @@ -29,11 +29,15 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --with-perl-staticlib \ - --with-proxy + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --with-perl-staticlib \ + --with-proxy \ + || return 1 make || return 1 } diff --git a/main/isl/APKBUILD b/main/isl/APKBUILD index 4aa28ad201e..1d9d0ef2cef 100644 --- a/main/isl/APKBUILD +++ b/main/isl/APKBUILD @@ -28,12 +28,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ - --build=${CBUILD} \ - --host=${CHOST} \ --with-sysroot=${CBUILDROOT} \ || return 1 diff --git a/main/iso-codes/APKBUILD b/main/iso-codes/APKBUILD index abee4ef9d3f..d57d1104061 100644 --- a/main/iso-codes/APKBUILD +++ b/main/iso-codes/APKBUILD @@ -14,7 +14,11 @@ source="http://pkg-isocodes.alioth.debian.org/downloads/$pkgname-$pkgver.tar.xz" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/itstool/APKBUILD b/main/itstool/APKBUILD index 4321f6d814e..6b8c48d6ee3 100644 --- a/main/itstool/APKBUILD +++ b/main/itstool/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/jansson/APKBUILD b/main/jansson/APKBUILD index d3e8a9cb3d6..8811086f372 100644 --- a/main/jansson/APKBUILD +++ b/main/jansson/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" LIBS=-lm \ - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/jasper/APKBUILD b/main/jasper/APKBUILD index f246759549c..57a5d5847c6 100644 --- a/main/jasper/APKBUILD +++ b/main/jasper/APKBUILD @@ -30,9 +30,13 @@ prepare() { build () { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ - --enable-shared || return 1 + --enable-shared \ + || return 1 make || return 1 } diff --git a/main/jfsutils/APKBUILD b/main/jfsutils/APKBUILD index 86bbd721ee7..f14ad8668bb 100644 --- a/main/jfsutils/APKBUILD +++ b/main/jfsutils/APKBUILD @@ -29,7 +29,10 @@ prepare() { build () { cd "$_builddir" ./configure \ - --mandir=/usr/share/man + --build=$CBUILD \ + --host=$CHOST \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/joe/APKBUILD b/main/joe/APKBUILD index 6ee1013bd9b..51e07aa8803 100644 --- a/main/joe/APKBUILD +++ b/main/joe/APKBUILD @@ -26,7 +26,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr --sysconfdir=/etc || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/js/APKBUILD b/main/js/APKBUILD index fb986990f1f..ec55fff2520 100644 --- a/main/js/APKBUILD +++ b/main/js/APKBUILD @@ -44,7 +44,10 @@ EOF build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-system-nspr \ --enable-threadsafe \ --enable-readline \ diff --git a/main/json-glib/APKBUILD b/main/json-glib/APKBUILD index 892b2b8ec95..66c64b4d75f 100644 --- a/main/json-glib/APKBUILD +++ b/main/json-glib/APKBUILD @@ -14,7 +14,11 @@ source="http://ftp.gnome.org/pub/GNOME/sources/json-glib/${pkgver%.*}/json-glib- _builddir="$srcdir"/$pkgname-$pkgver build() { cd $srcdir/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make } diff --git a/main/jwhois/APKBUILD b/main/jwhois/APKBUILD index c5a5c89ebaf..8bc206fdea3 100644 --- a/main/jwhois/APKBUILD +++ b/main/jwhois/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/ \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/ \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/jwm/APKBUILD b/main/jwm/APKBUILD index 12fc7d875ba..77dd40a3198 100644 --- a/main/jwm/APKBUILD +++ b/main/jwm/APKBUILD @@ -23,6 +23,8 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --enable-confirm \ @@ -36,7 +38,8 @@ build() { --enable-xmu \ --enable-xinerama \ --disable-fribidi \ - --disable-debug || return 1 + --disable-debug \ + || return 1 make || return 1 } diff --git a/main/kbd/APKBUILD b/main/kbd/APKBUILD index 59b4bf87d9e..35aa5c1e4f0 100644 --- a/main/kbd/APKBUILD +++ b/main/kbd/APKBUILD @@ -48,7 +48,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --datadir=/lib/kbd \ --localedir=/usr/share/locale \ --disable-nls \ diff --git a/main/kbproto/APKBUILD b/main/kbproto/APKBUILD index 6d5baee5b86..c12289b1274 100644 --- a/main/kbproto/APKBUILD +++ b/main/kbproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.t build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/keybinder/APKBUILD b/main/keybinder/APKBUILD index 8c4188f0232..94ea8106799 100644 --- a/main/keybinder/APKBUILD +++ b/main/keybinder/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ --disable-python \ --disable-lua \ diff --git a/main/kmod/APKBUILD b/main/kmod/APKBUILD index 65e52722c48..877c1ccfbde 100644 --- a/main/kmod/APKBUILD +++ b/main/kmod/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --bindir=/bin \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --bindir=/bin \ --with-rootlibdir=/lib \ --with-zlib \ --with-xz \ diff --git a/main/knock/APKBUILD b/main/knock/APKBUILD index 58a63654d5e..0e285324561 100644 --- a/main/knock/APKBUILD +++ b/main/knock/APKBUILD @@ -30,10 +30,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/krb5/APKBUILD b/main/krb5/APKBUILD index 72ec8549937..061e981050c 100644 --- a/main/krb5/APKBUILD +++ b/main/krb5/APKBUILD @@ -43,6 +43,8 @@ build() { cd "$_builddir"/src ./configure \ CPPFLAGS="$CPPFLAGS -fPIC -I/usr/include/et" \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --localstatedir=/var/lib \ --enable-shared \ diff --git a/main/lame/APKBUILD b/main/lame/APKBUILD index 45de772a21a..f9a9a264622 100644 --- a/main/lame/APKBUILD +++ b/main/lame/APKBUILD @@ -37,11 +37,15 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-nasm \ --disable-mp3x \ --enable-shared \ - --with-pic + --with-pic \ + || return 1 make || return 1 } diff --git a/main/lcms/APKBUILD b/main/lcms/APKBUILD index c2d09b112ba..583a251a6a2 100644 --- a/main/lcms/APKBUILD +++ b/main/lcms/APKBUILD @@ -14,7 +14,11 @@ source="http://downloads.sourceforge.net/project/lcms/lcms/$pkgver/lcms-$pkgver. _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/ldns/APKBUILD b/main/ldns/APKBUILD index 75041a6339a..b3898172322 100644 --- a/main/ldns/APKBUILD +++ b/main/ldns/APKBUILD @@ -27,14 +27,25 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ || return 1 - (cd drill && ./configure --prefix=/usr) - (cd examples && ./configure --prefix=/usr) + (cd drill && ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr) \ + || return 1 + (cd examples && ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr) \ + || return 1 make || return 1 make -C drill || return 1 diff --git a/main/less/APKBUILD b/main/less/APKBUILD index 8953f964d82..b7e140363cb 100644 --- a/main/less/APKBUILD +++ b/main/less/APKBUILD @@ -15,10 +15,14 @@ source="http://www.greenwoodsoftware.com/$pkgname/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/lftp/APKBUILD b/main/lftp/APKBUILD index de23dfddbae..c676c96dfb9 100644 --- a/main/lftp/APKBUILD +++ b/main/lftp/APKBUILD @@ -25,13 +25,17 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc/lftp \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-modules \ --disable-nls \ - --with-openssl + --with-openssl \ + || return 1 make || return 1 } diff --git a/main/lha/APKBUILD b/main/lha/APKBUILD index 5ee866fb9be..22a71502ca8 100644 --- a/main/lha/APKBUILD +++ b/main/lha/APKBUILD @@ -15,10 +15,14 @@ source="http://osdn.dl.sourceforge.jp/lha/22231/$pkgname-$pkgver-ac20050924p1.ta build () { cd $srcdir/$pkgname-$pkgver-ac20050924p1 - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 make "DESTDIR=$pkgdir" install #install -D -m755 $srcdir/lha $pkgdir/usr/bin/lha diff --git a/main/libao/APKBUILD b/main/libao/APKBUILD index 5e47953411a..cfffd994b21 100644 --- a/main/libao/APKBUILD +++ b/main/libao/APKBUILD @@ -13,10 +13,14 @@ source="http://downloads.xiph.org/releases/ao/$pkgname-$pkgver.tar.gz" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-alsa09 \ --disable-esd \ - --disable-arts + --disable-arts \ + || return 1 make || return 1 } diff --git a/main/libarchive/APKBUILD b/main/libarchive/APKBUILD index 5305967e1b7..20ee616df50 100644 --- a/main/libarchive/APKBUILD +++ b/main/libarchive/APKBUILD @@ -25,7 +25,12 @@ prepare() { build () { cd "$_builddir" - ./configure --prefix=/usr --without-xml2 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --without-xml2 \ + || return 1 make } diff --git a/main/libart-lgpl/APKBUILD b/main/libart-lgpl/APKBUILD index 0f767301114..436c460a029 100644 --- a/main/libart-lgpl/APKBUILD +++ b/main/libart-lgpl/APKBUILD @@ -15,7 +15,11 @@ source="http://ftp.gnome.org/pub/GNOME/sources/libart_lgpl/2.3/libart_lgpl-$pkgv _builddir="$srcdir"/libart_lgpl-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libass/APKBUILD b/main/libass/APKBUILD index 3edf6bf9279..34f5f2543d5 100644 --- a/main/libass/APKBUILD +++ b/main/libass/APKBUILD @@ -21,10 +21,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/libassuan/APKBUILD b/main/libassuan/APKBUILD index e85724155ea..87d89fb8f83 100644 --- a/main/libassuan/APKBUILD +++ b/main/libassuan/APKBUILD @@ -13,7 +13,11 @@ source="ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libasyncns/APKBUILD b/main/libasyncns/APKBUILD index edb57b1de17..366f3f08287 100644 --- a/main/libasyncns/APKBUILD +++ b/main/libasyncns/APKBUILD @@ -18,6 +18,8 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --disable-static \ --prefix=/usr \ || return 1 diff --git a/main/libatasmart/APKBUILD b/main/libatasmart/APKBUILD index e73dcfc6b18..4a30fbe7f22 100644 --- a/main/libatasmart/APKBUILD +++ b/main/libatasmart/APKBUILD @@ -23,12 +23,16 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-static \ - --localstatedir=/var + --localstatedir=/var \ + || return 1 make || return 1 } diff --git a/main/libavc1394/APKBUILD b/main/libavc1394/APKBUILD index ed8423ac799..f392c3aa6dd 100644 --- a/main/libavc1394/APKBUILD +++ b/main/libavc1394/APKBUILD @@ -31,7 +31,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libbluray/APKBUILD b/main/libbluray/APKBUILD index 180e8cbfed4..8472993e9b9 100644 --- a/main/libbluray/APKBUILD +++ b/main/libbluray/APKBUILD @@ -33,7 +33,10 @@ build() { # and this seems to be what libbluray assumes export CFLAGS="$CFLAGS -D_BSD_SOURCE" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libbonobo/APKBUILD b/main/libbonobo/APKBUILD index e1150894c7a..65bf5991297 100644 --- a/main/libbonobo/APKBUILD +++ b/main/libbonobo/APKBUILD @@ -32,7 +32,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ || return 1 make || return 1 diff --git a/main/libbsd/APKBUILD b/main/libbsd/APKBUILD index a8f0866b05a..1499eb93d4d 100644 --- a/main/libbsd/APKBUILD +++ b/main/libbsd/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libburn/APKBUILD b/main/libburn/APKBUILD index e42741117ee..bb7da613973 100644 --- a/main/libburn/APKBUILD +++ b/main/libburn/APKBUILD @@ -20,7 +20,12 @@ _builddir="$srcdir"/$pkgname-$_ver build () { cd "$_builddir" - ./configure --prefix=/usr --disable-static + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-static \ + || return 1 make || return 1 } diff --git a/main/libcanberra/APKBUILD b/main/libcanberra/APKBUILD index 2bbeccc57d8..26705f7225e 100644 --- a/main/libcanberra/APKBUILD +++ b/main/libcanberra/APKBUILD @@ -23,10 +23,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/libcap-ng/APKBUILD b/main/libcap-ng/APKBUILD index 8f6fd85ed82..6421b4ff9a4 100644 --- a/main/libcap-ng/APKBUILD +++ b/main/libcap-ng/APKBUILD @@ -21,10 +21,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/libcddb/APKBUILD b/main/libcddb/APKBUILD index 482702da7ad..4a03352067f 100644 --- a/main/libcddb/APKBUILD +++ b/main/libcddb/APKBUILD @@ -25,10 +25,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/libcdio-paranoia/APKBUILD b/main/libcdio-paranoia/APKBUILD index d82446378db..16cb1323d05 100644 --- a/main/libcdio-paranoia/APKBUILD +++ b/main/libcdio-paranoia/APKBUILD @@ -30,7 +30,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libcdio/APKBUILD b/main/libcdio/APKBUILD index 72619db032d..0e31e754722 100644 --- a/main/libcdio/APKBUILD +++ b/main/libcdio/APKBUILD @@ -25,14 +25,18 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-vcd-info \ --disable-static \ --disable-rpath \ - --disable-cpp-progs + --disable-cpp-progs \ + || return 1 make || return 1 } diff --git a/main/libcec/APKBUILD b/main/libcec/APKBUILD index 9068783f2e6..d8ff6106a89 100644 --- a/main/libcec/APKBUILD +++ b/main/libcec/APKBUILD @@ -28,11 +28,14 @@ prepare() { build() { cd "$_builddir" ./bootstrap || return 1 - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --localstatedir=/var \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ || return 1 } diff --git a/main/libconfig/APKBUILD b/main/libconfig/APKBUILD index d86ce9bf052..615f12e46d7 100644 --- a/main/libconfig/APKBUILD +++ b/main/libconfig/APKBUILD @@ -14,9 +14,13 @@ subpackages="$pkgname-doc $pkgname-dev" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ - --disable-cxx + --disable-cxx \ + || return 1 make || return 1 } diff --git a/main/libcroco/APKBUILD b/main/libcroco/APKBUILD index 539d3ac39a5..a183994ccee 100644 --- a/main/libcroco/APKBUILD +++ b/main/libcroco/APKBUILD @@ -15,8 +15,12 @@ depends_dev="glib-dev libxml2-dev pkgconfig" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --disable-static || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-static \ + || return 1 make || return 1 } diff --git a/main/libcue/APKBUILD b/main/libcue/APKBUILD index 0972f238808..3cb1c3d0232 100644 --- a/main/libcue/APKBUILD +++ b/main/libcue/APKBUILD @@ -17,10 +17,14 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/libdaemon/APKBUILD b/main/libdaemon/APKBUILD index bac12d55aca..a6adb55fd4d 100644 --- a/main/libdaemon/APKBUILD +++ b/main/libdaemon/APKBUILD @@ -14,7 +14,10 @@ source="http://0pointer.de/lennart/projects/libdaemon/libdaemon-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver build () { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --localstatedir=/var \ --disable-lynx \ || return 1 diff --git a/main/libdc1394/APKBUILD b/main/libdc1394/APKBUILD index f80a4a25224..488a7a06d28 100644 --- a/main/libdc1394/APKBUILD +++ b/main/libdc1394/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libdnet/APKBUILD b/main/libdnet/APKBUILD index 6bd8c61d6f8..b5b11be992e 100644 --- a/main/libdnet/APKBUILD +++ b/main/libdnet/APKBUILD @@ -30,7 +30,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --without-python \ || return 1 diff --git a/main/libdrm/APKBUILD b/main/libdrm/APKBUILD index 88aa6cc7b0e..ce89f018620 100644 --- a/main/libdrm/APKBUILD +++ b/main/libdrm/APKBUILD @@ -22,7 +22,10 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-udev \ --disable-manpages \ || return 1 diff --git a/main/libdv/APKBUILD b/main/libdv/APKBUILD index 4d46ae3be50..dd5b90ee4a7 100644 --- a/main/libdv/APKBUILD +++ b/main/libdv/APKBUILD @@ -34,7 +34,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libdvbcsa/APKBUILD b/main/libdvbcsa/APKBUILD index deb48b6e3ad..75a173d7d71 100644 --- a/main/libdvbcsa/APKBUILD +++ b/main/libdvbcsa/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libdvbpsi/APKBUILD b/main/libdvbpsi/APKBUILD index eaa87f2a4b0..bbe543c846f 100644 --- a/main/libdvbpsi/APKBUILD +++ b/main/libdvbpsi/APKBUILD @@ -14,8 +14,12 @@ source="http://download.videolan.org/pub/libdvbpsi/$pkgver/$pkgname-$pkgver.tar. _builddir="$srcdir/$pkgname-$pkgver" build() { cd "$_builddir" - ./configure --prefix=/usr \ - --enable-release || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --enable-release \ + || return 1 make || return 1 } diff --git a/main/libedit/APKBUILD b/main/libedit/APKBUILD index 410baf91cba..39e2e622c9a 100644 --- a/main/libedit/APKBUILD +++ b/main/libedit/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libee/APKBUILD b/main/libee/APKBUILD index 45de60b5301..90eeac8ad16 100644 --- a/main/libee/APKBUILD +++ b/main/libee/APKBUILD @@ -14,7 +14,11 @@ source="http://www.libee.org/download/files/download/$pkgname-$pkgver.tar.gz" _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 } build() { diff --git a/main/libelf/APKBUILD b/main/libelf/APKBUILD index 82ad01352c0..6ca2d542fd4 100644 --- a/main/libelf/APKBUILD +++ b/main/libelf/APKBUILD @@ -13,10 +13,14 @@ source="http://www.mr511.de/software/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-shared \ --enable-gnu-names \ - --enable-compat || return 1 + --enable-compat \ + || return 1 make || return 1 } diff --git a/main/libestr/APKBUILD b/main/libestr/APKBUILD index b5b2509a674..eb58b5d001c 100644 --- a/main/libestr/APKBUILD +++ b/main/libestr/APKBUILD @@ -13,7 +13,11 @@ source="http://libestr.adiscon.com/files/download/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 } build() { diff --git a/main/libetpan/APKBUILD b/main/libetpan/APKBUILD index fde5177cfe7..055df1d48aa 100644 --- a/main/libetpan/APKBUILD +++ b/main/libetpan/APKBUILD @@ -25,11 +25,15 @@ prepare() { build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-gnutls=yes \ --with-openssl=no \ --with-gnutls \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/libev/APKBUILD b/main/libev/APKBUILD index 0bc2576a9b6..7b7855b0690 100644 --- a/main/libev/APKBUILD +++ b/main/libev/APKBUILD @@ -32,8 +32,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/libevent/APKBUILD b/main/libevent/APKBUILD index ea160c1e23e..f031f8cb379 100644 --- a/main/libevent/APKBUILD +++ b/main/libevent/APKBUILD @@ -16,9 +16,12 @@ _builddir="$srcdir"/$pkgname-$pkgver-stable build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ - --disable-static || return 1 + --disable-static \ + || return 1 make || return 1 } diff --git a/main/libexif/APKBUILD b/main/libexif/APKBUILD index b26b623ecac..7380981b986 100644 --- a/main/libexif/APKBUILD +++ b/main/libexif/APKBUILD @@ -13,7 +13,11 @@ source="http://downloads.sf.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make } diff --git a/main/libffi/APKBUILD b/main/libffi/APKBUILD index 9291c6b2063..7ea08ee543a 100644 --- a/main/libffi/APKBUILD +++ b/main/libffi/APKBUILD @@ -15,7 +15,11 @@ source="ftp://sourceware.org/pub/$pkgname/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver build () { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libfontenc/APKBUILD b/main/libfontenc/APKBUILD index 93cf33d1a35..6b4c625b761 100644 --- a/main/libfontenc/APKBUILD +++ b/main/libfontenc/APKBUILD @@ -13,11 +13,15 @@ source="http://xorg.freedesktop.org/releases/individual/lib/$pkgname-$pkgver.tar build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ - --with-encodingsdir=/usr/share/fonts/encodings + --with-encodingsdir=/usr/share/fonts/encodings \ + || return 1 make || return 1 } diff --git a/main/libfprint/APKBUILD b/main/libfprint/APKBUILD index 879c91169d3..e142b8396a7 100644 --- a/main/libfprint/APKBUILD +++ b/main/libfprint/APKBUILD @@ -31,7 +31,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libgcrypt/APKBUILD b/main/libgcrypt/APKBUILD index 241ff5bdda3..84d5ff86d66 100644 --- a/main/libgcrypt/APKBUILD +++ b/main/libgcrypt/APKBUILD @@ -16,10 +16,13 @@ depends_dev="libgpg-error-dev" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --build=${CHOST:-i486-alpine-linux-uclibc} \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --enable-padlock-support \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/libgee/APKBUILD b/main/libgee/APKBUILD index 241dcd63e5f..d992c76940b 100644 --- a/main/libgee/APKBUILD +++ b/main/libgee/APKBUILD @@ -16,7 +16,12 @@ source="http://ftp.gnome.org/pub/GNOME/sources/libgee/${_xy}/libgee-$pkgver.tar. _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr --disable-static || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-static \ + || return 1 make || return 1 } diff --git a/main/libgexiv2/APKBUILD b/main/libgexiv2/APKBUILD index e0031e000c7..96cb4b8e837 100644 --- a/main/libgexiv2/APKBUILD +++ b/main/libgexiv2/APKBUILD @@ -23,10 +23,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/libglade/APKBUILD b/main/libglade/APKBUILD index f730b60c1fa..17a55d58a18 100644 --- a/main/libglade/APKBUILD +++ b/main/libglade/APKBUILD @@ -24,10 +24,14 @@ package() { build() { cd "$_builddir" - ./configure --sysconfdir=/etc \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --sysconfdir=/etc \ --prefix=/usr \ --disable-static \ - --localstatedir=/var || return 1 + --localstatedir=/var \ + || return 1 make || return 1 } diff --git a/main/libgnome-keyring/APKBUILD b/main/libgnome-keyring/APKBUILD index ecf98536f08..55d738c7ce5 100644 --- a/main/libgnome-keyring/APKBUILD +++ b/main/libgnome-keyring/APKBUILD @@ -43,9 +43,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/libgnome/APKBUILD b/main/libgnome/APKBUILD index 515f0efb08b..ada696e2e7a 100644 --- a/main/libgnome/APKBUILD +++ b/main/libgnome/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ || return 1 make || return 1 diff --git a/main/libgnomekbd/APKBUILD b/main/libgnomekbd/APKBUILD index 8407830958c..4c4045f6a7d 100644 --- a/main/libgnomekbd/APKBUILD +++ b/main/libgnomekbd/APKBUILD @@ -38,9 +38,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/libgpg-error/APKBUILD b/main/libgpg-error/APKBUILD index 1606a922039..18fec5c2495 100644 --- a/main/libgpg-error/APKBUILD +++ b/main/libgpg-error/APKBUILD @@ -13,8 +13,12 @@ source="ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/$pkgname/$pkg build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --disable-nls + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-nls \ + || return 1 make || return 1 } diff --git a/main/libgphoto2/APKBUILD b/main/libgphoto2/APKBUILD index 8cb026f8d03..f0ad59d8c1a 100644 --- a/main/libgphoto2/APKBUILD +++ b/main/libgphoto2/APKBUILD @@ -18,7 +18,10 @@ options="libtool" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - udevscriptdir=/lib/udev ./configure --prefix=/usr \ + udevscriptdir=/lib/udev ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-drivers=all \ --disable-static \ --disable-rpath \ diff --git a/main/libgsf/APKBUILD b/main/libgsf/APKBUILD index d5c099736ac..1673d973346 100644 --- a/main/libgsf/APKBUILD +++ b/main/libgsf/APKBUILD @@ -16,13 +16,17 @@ depends_dev="glib-dev bzip2-dev libxml2-dev pkgconfig" build() { cd "$srcdir"/$pkgname-$pkgver sed -i -e 's/gsf-gnome//' -e 's/thumbnailer//' Makefile.* || return 1 - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/share/man \ --disable-static \ --without-gnome-vfs \ - --without-bonobo || return 1 + --without-bonobo \ + || return 1 make || return 1 } diff --git a/main/libgssglue/APKBUILD b/main/libgssglue/APKBUILD index aeb880b6495..fc10ce7239c 100644 --- a/main/libgssglue/APKBUILD +++ b/main/libgssglue/APKBUILD @@ -14,7 +14,11 @@ source="http://www.citi.umich.edu/projects/nfsv4/linux/$pkgname/$pkgname-$pkgver _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libgtop/APKBUILD b/main/libgtop/APKBUILD index f837561e7cc..44e58b3b333 100644 --- a/main/libgtop/APKBUILD +++ b/main/libgtop/APKBUILD @@ -27,9 +27,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/libguess/APKBUILD b/main/libguess/APKBUILD index ae50e898b28..997e53c079b 100644 --- a/main/libguess/APKBUILD +++ b/main/libguess/APKBUILD @@ -28,10 +28,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/libgweather/APKBUILD b/main/libgweather/APKBUILD index 1fa9e5244fb..c2a37cb3049 100644 --- a/main/libgweather/APKBUILD +++ b/main/libgweather/APKBUILD @@ -27,10 +27,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --with-zoneinfo-dir=. \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/libical/APKBUILD b/main/libical/APKBUILD index 7ad9ffd252c..f900cc9000b 100644 --- a/main/libical/APKBUILD +++ b/main/libical/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-shared \ --disable-static \ || return 1 diff --git a/main/libice/APKBUILD b/main/libice/APKBUILD index 9bf4fbb1fc9..50023319def 100644 --- a/main/libice/APKBUILD +++ b/main/libice/APKBUILD @@ -14,8 +14,12 @@ source="http://xorg.freedesktop.org/releases/individual/lib/libICE-$pkgver.tar.b depends_dev="xproto" build () { cd "$srcdir"/libICE-$pkgver - ./configure --prefix=/usr \ - --sysconfdir=/etc + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/libiconv/APKBUILD b/main/libiconv/APKBUILD index 6f4214e72d6..e5ed3e26ef8 100644 --- a/main/libiconv/APKBUILD +++ b/main/libiconv/APKBUILD @@ -15,7 +15,10 @@ build() { #only build if we need it [ "$ALPINE_LIBC" = "eglibc" ] && return 0 - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ || return 1 # work around rpath issue diff --git a/main/libid3tag/APKBUILD b/main/libid3tag/APKBUILD index aaee71faecf..2526477bf43 100644 --- a/main/libid3tag/APKBUILD +++ b/main/libid3tag/APKBUILD @@ -16,10 +16,14 @@ source="ftp://ftp.mars.org/pub/mpeg/libid3tag-$pkgver.tar.gz" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/libidl/APKBUILD b/main/libidl/APKBUILD index c14ecd627c0..714c105e125 100644 --- a/main/libidl/APKBUILD +++ b/main/libidl/APKBUILD @@ -22,10 +22,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/libidn/APKBUILD b/main/libidn/APKBUILD index 931ad283c69..fd93b3fcb26 100644 --- a/main/libidn/APKBUILD +++ b/main/libidn/APKBUILD @@ -17,11 +17,15 @@ source="http://ftp.gnu.org/gnu/libidn/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --disable-nls + --disable-nls \ + || return 1 make || return 1 } diff --git a/main/libiec61883/APKBUILD b/main/libiec61883/APKBUILD index 7f3d5f787c6..6718faa7a82 100644 --- a/main/libiec61883/APKBUILD +++ b/main/libiec61883/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libisofs/APKBUILD b/main/libisofs/APKBUILD index 31d3653d253..7ba3c398fb2 100644 --- a/main/libisofs/APKBUILD +++ b/main/libisofs/APKBUILD @@ -14,10 +14,14 @@ source="http://files.libburnia-project.org/releases/libisofs-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-libacl \ --enable-xattr \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/libjpeg-turbo/APKBUILD b/main/libjpeg-turbo/APKBUILD index 6133c00ed9f..6b339ca4161 100644 --- a/main/libjpeg-turbo/APKBUILD +++ b/main/libjpeg-turbo/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libksba/APKBUILD b/main/libksba/APKBUILD index 09e1be546f9..f257c8e804e 100644 --- a/main/libksba/APKBUILD +++ b/main/libksba/APKBUILD @@ -13,7 +13,11 @@ source="ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/liblockfile/APKBUILD b/main/liblockfile/APKBUILD index 16d5d1b78ba..a52bb159182 100644 --- a/main/liblockfile/APKBUILD +++ b/main/liblockfile/APKBUILD @@ -18,9 +18,13 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --mandir=/usr/share/man + --mandir=/usr/share/man \ + || return 1 make -j1 || return 1 } diff --git a/main/libmad/APKBUILD b/main/libmad/APKBUILD index 8791a5d7fa2..360430ef17e 100644 --- a/main/libmad/APKBUILD +++ b/main/libmad/APKBUILD @@ -31,9 +31,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-fpm=intel \ - --enable-accuracy + --enable-accuracy \ + || return 1 make -j1 || return 1 } diff --git a/main/libmcrypt/APKBUILD b/main/libmcrypt/APKBUILD index 2edbed51639..4920b747466 100644 --- a/main/libmcrypt/APKBUILD +++ b/main/libmcrypt/APKBUILD @@ -15,9 +15,13 @@ source="http://downloads.sourceforge.net/mcrypt/${pkgname}-${pkgver}.tar.bz2" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ - --disable-posix-threads + --disable-posix-threads \ + || return 1 make || return 1 } diff --git a/main/libmicrohttpd/APKBUILD b/main/libmicrohttpd/APKBUILD index 4111ff74202..943815c0590 100644 --- a/main/libmicrohttpd/APKBUILD +++ b/main/libmicrohttpd/APKBUILD @@ -22,13 +22,17 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-largefile \ --enable-curl \ - --enable-messages + --enable-messages \ + || return 1 make || return 1 } diff --git a/main/libmikmod/APKBUILD b/main/libmikmod/APKBUILD index 374e5f08a2f..aab61c37a0a 100644 --- a/main/libmikmod/APKBUILD +++ b/main/libmikmod/APKBUILD @@ -29,7 +29,12 @@ build() { cd "$_builddir" # build fails with bash export CONFIG_SHELL="/bin/sh" - ./configure --prefix=/usr --enable-alsa || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --enable-alsa \ + || return 1 make || return 1 } diff --git a/main/libmms/APKBUILD b/main/libmms/APKBUILD index bb184d1a17b..c217d56278f 100644 --- a/main/libmms/APKBUILD +++ b/main/libmms/APKBUILD @@ -22,11 +22,15 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/libmng/APKBUILD b/main/libmng/APKBUILD index 988f4271962..0c46982ea36 100644 --- a/main/libmng/APKBUILD +++ b/main/libmng/APKBUILD @@ -23,7 +23,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libmnl/APKBUILD b/main/libmnl/APKBUILD index 068c6f46276..309be9782f5 100644 --- a/main/libmnl/APKBUILD +++ b/main/libmnl/APKBUILD @@ -16,7 +16,11 @@ source="http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 } package() { diff --git a/main/libmodplug/APKBUILD b/main/libmodplug/APKBUILD index b2c144df0e9..40f098d776d 100644 --- a/main/libmodplug/APKBUILD +++ b/main/libmodplug/APKBUILD @@ -22,10 +22,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/libmowgli/APKBUILD b/main/libmowgli/APKBUILD index 780cf6b5ef6..8e6b992b491 100644 --- a/main/libmowgli/APKBUILD +++ b/main/libmowgli/APKBUILD @@ -24,10 +24,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/libmp3splt/APKBUILD b/main/libmp3splt/APKBUILD index 3d2716ec102..41571e28461 100644 --- a/main/libmp3splt/APKBUILD +++ b/main/libmp3splt/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-ogg \ --enable-mp3 \ || return 1 diff --git a/main/libmpc/APKBUILD b/main/libmpc/APKBUILD index 2fb11293514..80b25e58031 100644 --- a/main/libmpc/APKBUILD +++ b/main/libmpc/APKBUILD @@ -22,9 +22,10 @@ build() { cd "$_builddir" # workaround for a bug in configure script EGREP=egrep \ - ./configure --prefix=/usr \ - --build=${CBUILD} \ - --host=${CHOST} \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libmpdclient/APKBUILD b/main/libmpdclient/APKBUILD index f10f18e0976..23199666245 100644 --- a/main/libmpdclient/APKBUILD +++ b/main/libmpdclient/APKBUILD @@ -13,7 +13,11 @@ source="http://www.musicpd.org/download/libmpdclient/${pkgver%.*}/libmpdclient-$ build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libmpeg2/APKBUILD b/main/libmpeg2/APKBUILD index 3b67503734b..f5d4a723f9d 100644 --- a/main/libmpeg2/APKBUILD +++ b/main/libmpeg2/APKBUILD @@ -13,9 +13,13 @@ source="http://$pkgname.sourceforge.net/files/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-shared \ - --disable-static || return 1 + --disable-static \ + || return 1 make OPT_CFLAGS="${CFLAGS}" \ MPEG2DEC_CFLAGS="${CFLAGS}" \ LIBMPEG2_CFLAGS="" || return 1 diff --git a/main/libmtp/APKBUILD b/main/libmtp/APKBUILD index e43af2e6024..87aae32d30d 100644 --- a/main/libmtp/APKBUILD +++ b/main/libmtp/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libnet/APKBUILD b/main/libnet/APKBUILD index fabb1c7d499..295eaef34c3 100644 --- a/main/libnet/APKBUILD +++ b/main/libnet/APKBUILD @@ -15,7 +15,11 @@ source="http://downloads.sourceforge.net/project/libnet-dev/libnet-$pkgver.tar.g build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libnetfilter_acct/APKBUILD b/main/libnetfilter_acct/APKBUILD index 83bba7515a0..afa4e5d89eb 100644 --- a/main/libnetfilter_acct/APKBUILD +++ b/main/libnetfilter_acct/APKBUILD @@ -15,10 +15,14 @@ source="http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/libnetfilter_conntrack/APKBUILD b/main/libnetfilter_conntrack/APKBUILD index 376e79e4657..c7b894798b3 100644 --- a/main/libnetfilter_conntrack/APKBUILD +++ b/main/libnetfilter_conntrack/APKBUILD @@ -15,10 +15,14 @@ source="http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/libnetfilter_cthelper/APKBUILD b/main/libnetfilter_cthelper/APKBUILD index aee2921c4ee..50c4533dfbf 100644 --- a/main/libnetfilter_cthelper/APKBUILD +++ b/main/libnetfilter_cthelper/APKBUILD @@ -25,7 +25,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libnetfilter_cttimeout/APKBUILD b/main/libnetfilter_cttimeout/APKBUILD index 7c63f0cdf92..f90e923e991 100644 --- a/main/libnetfilter_cttimeout/APKBUILD +++ b/main/libnetfilter_cttimeout/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libnetfilter_log/APKBUILD b/main/libnetfilter_log/APKBUILD index 5c427c9a0e3..8345639dd35 100644 --- a/main/libnetfilter_log/APKBUILD +++ b/main/libnetfilter_log/APKBUILD @@ -15,10 +15,14 @@ source="http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/libnetfilter_queue/APKBUILD b/main/libnetfilter_queue/APKBUILD index 7d4b119ebee..98a42515455 100644 --- a/main/libnetfilter_queue/APKBUILD +++ b/main/libnetfilter_queue/APKBUILD @@ -25,7 +25,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libnfnetlink/APKBUILD b/main/libnfnetlink/APKBUILD index 7a4983b6d0c..3931f27c176 100644 --- a/main/libnfnetlink/APKBUILD +++ b/main/libnfnetlink/APKBUILD @@ -15,10 +15,14 @@ source="http://www.netfilter.org/projects/libnfnetlink/files/libnfnetlink-$pkgve build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/libnfs/APKBUILD b/main/libnfs/APKBUILD index f75fcc43dcb..52375bd9003 100644 --- a/main/libnfs/APKBUILD +++ b/main/libnfs/APKBUILD @@ -28,12 +28,15 @@ prepare() { build() { cd "$_builddir" ./bootstrap || return 1 - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --localstatedir=/var \ - || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 make || return 1 } diff --git a/main/libnfsidmap/APKBUILD b/main/libnfsidmap/APKBUILD index 480dab8a810..1ed782826c4 100644 --- a/main/libnfsidmap/APKBUILD +++ b/main/libnfsidmap/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ || return 1 make || return 1 diff --git a/main/libnice/APKBUILD b/main/libnice/APKBUILD index 3e6054ade29..9905aaea535 100644 --- a/main/libnice/APKBUILD +++ b/main/libnice/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libnih/APKBUILD b/main/libnih/APKBUILD index 2d6c0c26d81..7875ed96a02 100644 --- a/main/libnih/APKBUILD +++ b/main/libnih/APKBUILD @@ -27,10 +27,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --libdir=/lib \ --sysconfdir=/etc \ - --localstatedir=/var || return 1 + --localstatedir=/var \ + || return 1 make || return 1 } diff --git a/main/libnjb/APKBUILD b/main/libnjb/APKBUILD index 186d87e744a..b5378df39ab 100644 --- a/main/libnjb/APKBUILD +++ b/main/libnjb/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libnl/APKBUILD b/main/libnl/APKBUILD index 49089fdcf3a..04c84c2b8ce 100644 --- a/main/libnl/APKBUILD +++ b/main/libnl/APKBUILD @@ -29,7 +29,11 @@ prepare () { build () { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libnl3/APKBUILD b/main/libnl3/APKBUILD index f4c4ac2db8e..f9489a6b875 100644 --- a/main/libnl3/APKBUILD +++ b/main/libnl3/APKBUILD @@ -25,7 +25,10 @@ prepare () { build () { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ || return 1 make || return 1 diff --git a/main/libnotify/APKBUILD b/main/libnotify/APKBUILD index e801dfe6f09..fcc742b3b20 100644 --- a/main/libnotify/APKBUILD +++ b/main/libnotify/APKBUILD @@ -27,7 +27,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr --disable-static || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-static \ + || return 1 make || return 1 } diff --git a/main/libogg/APKBUILD b/main/libogg/APKBUILD index d2d9e6fdb0c..6182643aa3d 100644 --- a/main/libogg/APKBUILD +++ b/main/libogg/APKBUILD @@ -15,7 +15,11 @@ source="http://downloads.xiph.org/releases/ogg/$pkgname-$pkgver.tar.gz build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/liboil/APKBUILD b/main/liboil/APKBUILD index a28283c1201..1ea58325ae5 100644 --- a/main/liboil/APKBUILD +++ b/main/liboil/APKBUILD @@ -14,7 +14,11 @@ build () { unset CFLAGS cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libotr/APKBUILD b/main/libotr/APKBUILD index 1150e948c7b..72926f5400a 100644 --- a/main/libotr/APKBUILD +++ b/main/libotr/APKBUILD @@ -27,7 +27,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libotr3/APKBUILD b/main/libotr3/APKBUILD index 664fc0d88b0..03c44342ab8 100644 --- a/main/libotr3/APKBUILD +++ b/main/libotr3/APKBUILD @@ -28,7 +28,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libpaper/APKBUILD b/main/libpaper/APKBUILD index 7bddda58e52..51364d250b8 100644 --- a/main/libpaper/APKBUILD +++ b/main/libpaper/APKBUILD @@ -15,8 +15,12 @@ _builddir="$srcdir"/$pkgname-$pkgver build () { cd "$_builddir" - ./configure --prefix=/usr \ - --mandir="$pkgdir"/usr/share/man + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir="$pkgdir"/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/libpcap/APKBUILD b/main/libpcap/APKBUILD index 4853e9f2910..91c0ccf0c2c 100644 --- a/main/libpcap/APKBUILD +++ b/main/libpcap/APKBUILD @@ -25,7 +25,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr --enable-ipv6 || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --enable-ipv6 \ + || return 1 # seems to be problem with timestamps sleep 1 ./config.status diff --git a/main/libpciaccess/APKBUILD b/main/libpciaccess/APKBUILD index 45f74f46fb6..85e18510790 100644 --- a/main/libpciaccess/APKBUILD +++ b/main/libpciaccess/APKBUILD @@ -13,7 +13,11 @@ source="http://xorg.freedesktop.org/releases/individual/lib/$pkgname-$pkgver.tar build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libpng/APKBUILD b/main/libpng/APKBUILD index 6e499884c3c..51cec202309 100644 --- a/main/libpng/APKBUILD +++ b/main/libpng/APKBUILD @@ -24,7 +24,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ || return 1 make } diff --git a/main/libpthread-stubs/APKBUILD b/main/libpthread-stubs/APKBUILD index 9f9347e0003..30a2d9159cd 100644 --- a/main/libpthread-stubs/APKBUILD +++ b/main/libpthread-stubs/APKBUILD @@ -11,7 +11,11 @@ source="http://xcb.freedesktop.org/dist/$pkgname-$pkgver.tar.bz2" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 # we actually have pthread_exit, the configure script just # fails to detect it make CFLAGS="$CFLAGS -DHAVE_PTHREAD_EXIT=1" diff --git a/main/libraw/APKBUILD b/main/libraw/APKBUILD index 221d60cc643..4d89b9239f2 100644 --- a/main/libraw/APKBUILD +++ b/main/libraw/APKBUILD @@ -23,7 +23,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make lib/libraw.a lib/libraw_r.a make } diff --git a/main/libraw1394/APKBUILD b/main/libraw1394/APKBUILD index 1b45a8e975d..8c8e36648e9 100644 --- a/main/libraw1394/APKBUILD +++ b/main/libraw1394/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libresample/APKBUILD b/main/libresample/APKBUILD index be81aacf805..0c8289049d1 100644 --- a/main/libresample/APKBUILD +++ b/main/libresample/APKBUILD @@ -26,10 +26,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/librpcsecgss/APKBUILD b/main/librpcsecgss/APKBUILD index f6ee20aa11c..57b21a8eaf1 100644 --- a/main/librpcsecgss/APKBUILD +++ b/main/librpcsecgss/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/librsvg/APKBUILD b/main/librsvg/APKBUILD index e43118c576e..b6922c336b5 100644 --- a/main/librsvg/APKBUILD +++ b/main/librsvg/APKBUILD @@ -18,12 +18,16 @@ depends_dev="glib-dev gtk+-dev cairo-dev libcroco-dev libgsf-dev" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --libexecdir=/usr/lib/$pkgname \ --with-croco \ --disable-static \ --disable-mozilla-plugin \ - --with-svgz || return 1 + --with-svgz \ + || return 1 make || return 1 } diff --git a/main/librsync/APKBUILD b/main/librsync/APKBUILD index 25c1b0ee876..3e42bf70076 100644 --- a/main/librsync/APKBUILD +++ b/main/librsync/APKBUILD @@ -18,7 +18,13 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr --mandir=/usr/share/man --enable-shared + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --enable-shared \ + || return 1 make || return 1 } diff --git a/main/libsamplerate/APKBUILD b/main/libsamplerate/APKBUILD index ecf28f7eaad..c8d3e9bfbea 100644 --- a/main/libsamplerate/APKBUILD +++ b/main/libsamplerate/APKBUILD @@ -12,7 +12,11 @@ source="http://www.mega-nerd.com/SRC/$pkgname-$pkgver.tar.gz" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libsecret/APKBUILD b/main/libsecret/APKBUILD index c355f41408e..a036d55583c 100644 --- a/main/libsecret/APKBUILD +++ b/main/libsecret/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libsexy/APKBUILD b/main/libsexy/APKBUILD index b30998cb10a..e3423d53b67 100644 --- a/main/libsexy/APKBUILD +++ b/main/libsexy/APKBUILD @@ -13,8 +13,12 @@ source="http://releases.chipx86.com/$pkgname/$pkgname/$pkgname-$pkgver.tar.gz" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --disable-static + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-static \ + || return 1 make || return 1 } diff --git a/main/libshairport/APKBUILD b/main/libshairport/APKBUILD index e320b572c48..17e036e91e4 100644 --- a/main/libshairport/APKBUILD +++ b/main/libshairport/APKBUILD @@ -29,11 +29,15 @@ prepare() { build() { cd "$_builddir" autoreconf -vif - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --localstatedir=/var + --localstatedir=/var \ + || return 1 make || return 1 } diff --git a/main/libshout/APKBUILD b/main/libshout/APKBUILD index d39a110d011..3eacdcde44b 100644 --- a/main/libshout/APKBUILD +++ b/main/libshout/APKBUILD @@ -25,7 +25,11 @@ prepare() { } build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 --sysconfdir=/etc --localstatedir=/var make LDFLAGS+=-lspeex || return 1 diff --git a/main/libsigc++/APKBUILD b/main/libsigc++/APKBUILD index 816a1eae464..e7e44d9a825 100644 --- a/main/libsigc++/APKBUILD +++ b/main/libsigc++/APKBUILD @@ -13,7 +13,11 @@ source="http://ftp.gnome.org/pub/GNOME/sources/$pkgname/2.2/$pkgname-$pkgver.tar build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libsm/APKBUILD b/main/libsm/APKBUILD index 13488e4f0cb..16ce377b495 100644 --- a/main/libsm/APKBUILD +++ b/main/libsm/APKBUILD @@ -15,7 +15,12 @@ depends_dev="libice-dev xproto" build () { cd "$srcdir"/libSM-$pkgver - ./configure --prefix=/usr --sysconfdir=/etc || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/libsndfile/APKBUILD b/main/libsndfile/APKBUILD index 19a22714d26..673d5d01650 100644 --- a/main/libsndfile/APKBUILD +++ b/main/libsndfile/APKBUILD @@ -15,7 +15,10 @@ source="http://www.mega-nerd.com/$pkgname/files/$pkgname-$pkgver.tar.gz" build () { cd "$srcdir"/$pkgname-$pkgver ac_cv_sys_largefile_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \ - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-sqlite \ --enable-largefile \ || return 1 diff --git a/main/libsoup/APKBUILD b/main/libsoup/APKBUILD index a679a1cfadc..0d522b90c19 100644 --- a/main/libsoup/APKBUILD +++ b/main/libsoup/APKBUILD @@ -15,7 +15,10 @@ source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$p build() { cd "$srcdir"/$pkgname-$pkgver - DATADIRNAME=share ./configure --prefix=/usr \ + DATADIRNAME=share ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ diff --git a/main/libspf2/APKBUILD b/main/libspf2/APKBUILD index 41ae24e8fff..5bfa649f656 100644 --- a/main/libspf2/APKBUILD +++ b/main/libspf2/APKBUILD @@ -31,7 +31,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ || return 1 make || return 1 } diff --git a/main/libssh2/APKBUILD b/main/libssh2/APKBUILD index e45b92bc77c..ca69b55a734 100644 --- a/main/libssh2/APKBUILD +++ b/main/libssh2/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libtasn1/APKBUILD b/main/libtasn1/APKBUILD index 43eaa6d3bd2..72bdfa69561 100644 --- a/main/libtasn1/APKBUILD +++ b/main/libtasn1/APKBUILD @@ -15,7 +15,11 @@ source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libtheora/APKBUILD b/main/libtheora/APKBUILD index a11d6411823..a4632b2f44f 100644 --- a/main/libtheora/APKBUILD +++ b/main/libtheora/APKBUILD @@ -32,9 +32,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-shared \ - --disable-static || return 1 + --disable-static \ + || return 1 cd lib && make || return 1 cd .. diff --git a/main/libtirpc/APKBUILD b/main/libtirpc/APKBUILD index 029d7d33de4..98f736a962d 100644 --- a/main/libtirpc/APKBUILD +++ b/main/libtirpc/APKBUILD @@ -36,7 +36,10 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-gss \ || return 1 make || return 1 diff --git a/main/libtool/APKBUILD b/main/libtool/APKBUILD index 758156d613f..d91cfe41dc5 100644 --- a/main/libtool/APKBUILD +++ b/main/libtool/APKBUILD @@ -13,7 +13,11 @@ options="libtool" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make } diff --git a/main/libtorrent/APKBUILD b/main/libtorrent/APKBUILD index 2f23d1f53bf..d7d0dad9636 100644 --- a/main/libtorrent/APKBUILD +++ b/main/libtorrent/APKBUILD @@ -13,19 +13,20 @@ options='libtool' source="http://libtorrent.rakshasa.no/downloads/${pkgname}-${pkgver}.tar.gz" build() { - cd "$srcdir"/$pkgname-$pkgver + cd "$srcdir"/$pkgname-$pkgver - ./configure \ - --prefix=/usr \ - --disable-debug \ - || return 1 - - make || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-debug \ + || return 1 + make || return 1 } package() { - cd "$srcdir"/$pkgname-$pkgver - make DESTDIR="$pkgdir" install || return 1 + cd "$srcdir"/$pkgname-$pkgver + make DESTDIR="$pkgdir" install || return 1 } md5sums="e94f6c590bb02aaf4d58618f738a85f2 libtorrent-0.13.3.tar.gz" diff --git a/main/libtxc_dxtn/APKBUILD b/main/libtxc_dxtn/APKBUILD index 13dd5142bc1..121e4ca248c 100644 --- a/main/libtxc_dxtn/APKBUILD +++ b/main/libtxc_dxtn/APKBUILD @@ -29,7 +29,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr --sysconfdir=/etc || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make } diff --git a/main/libunique/APKBUILD b/main/libunique/APKBUILD index e93a3cb1272..f0f304f90d3 100644 --- a/main/libunique/APKBUILD +++ b/main/libunique/APKBUILD @@ -24,7 +24,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-maintainer-flags=no \ diff --git a/main/libunique3/APKBUILD b/main/libunique3/APKBUILD index 2a1411e6f0e..f545c71e2c0 100644 --- a/main/libunique3/APKBUILD +++ b/main/libunique3/APKBUILD @@ -24,7 +24,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ diff --git a/main/libunistring/APKBUILD b/main/libunistring/APKBUILD index e55d7474d03..12d220a122f 100644 --- a/main/libunistring/APKBUILD +++ b/main/libunistring/APKBUILD @@ -28,7 +28,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make all || return 1 } diff --git a/main/libusb-compat/APKBUILD b/main/libusb-compat/APKBUILD index 4952b3c9750..39d03684940 100644 --- a/main/libusb-compat/APKBUILD +++ b/main/libusb-compat/APKBUILD @@ -14,7 +14,12 @@ source="http://downloads.sourceforge.net/libusb/$pkgname-$pkgver.tar.bz2" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --disable-build-docs + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-build-docs \ + || return 1 make || return 1 } diff --git a/main/libusb/APKBUILD b/main/libusb/APKBUILD index 4de038b5eea..72feccc2be6 100644 --- a/main/libusb/APKBUILD +++ b/main/libusb/APKBUILD @@ -27,7 +27,11 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2" _builddir="$srcdir"/$pkgname-$_ver build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libva-intel-driver/APKBUILD b/main/libva-intel-driver/APKBUILD index 3356450de12..5c8d43b1f0c 100644 --- a/main/libva-intel-driver/APKBUILD +++ b/main/libva-intel-driver/APKBUILD @@ -28,7 +28,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libva/APKBUILD b/main/libva/APKBUILD index 9acb53e1aaa..02b35cbc3a2 100644 --- a/main/libva/APKBUILD +++ b/main/libva/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libvdpau/APKBUILD b/main/libvdpau/APKBUILD index 51c5c223478..70e1bc7d9bd 100644 --- a/main/libvdpau/APKBUILD +++ b/main/libvdpau/APKBUILD @@ -22,10 +22,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/libverto/APKBUILD b/main/libverto/APKBUILD index 64dc5dfd85d..c0a371e0f90 100644 --- a/main/libverto/APKBUILD +++ b/main/libverto/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-libev \ --with-libevent \ || return 1 diff --git a/main/libvirt-glib/APKBUILD b/main/libvirt-glib/APKBUILD index 30c9e9e6384..834fec326a9 100644 --- a/main/libvirt-glib/APKBUILD +++ b/main/libvirt-glib/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libvirt/APKBUILD b/main/libvirt/APKBUILD index 966482aaa52..aa0d91c4039 100644 --- a/main/libvirt/APKBUILD +++ b/main/libvirt/APKBUILD @@ -59,7 +59,10 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -lm" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libvorbis/APKBUILD b/main/libvorbis/APKBUILD index 37727e4241a..8224b0a28a1 100644 --- a/main/libvorbis/APKBUILD +++ b/main/libvorbis/APKBUILD @@ -16,8 +16,12 @@ source="http://downloads.xiph.org/releases/vorbis/libvorbis-$pkgver.tar.gz" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --disable-static || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-static \ + || return 1 make || return 1 } diff --git a/main/libvpx/APKBUILD b/main/libvpx/APKBUILD index 98556a7e8dd..74a4ff470cb 100644 --- a/main/libvpx/APKBUILD +++ b/main/libvpx/APKBUILD @@ -28,6 +28,8 @@ prepare() { build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --enable-pic \ --enable-libs \ --enable-runtime-cpu-detect \ diff --git a/main/libwebp/APKBUILD b/main/libwebp/APKBUILD index de99445b439..27c0d2962a4 100644 --- a/main/libwebp/APKBUILD +++ b/main/libwebp/APKBUILD @@ -19,7 +19,11 @@ _builddir="$srcdir/$pkgname-$pkgver" build() { cd "$_builddir" sh autogen.sh - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libwnck/APKBUILD b/main/libwnck/APKBUILD index db9e905bee3..9b0699a3b72 100644 --- a/main/libwnck/APKBUILD +++ b/main/libwnck/APKBUILD @@ -18,10 +18,14 @@ depends_dev="glib-dev gtk+-dev libx11-dev pango-dev cairo-dev _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ - --disable-static || return 1 + --disable-static \ + || return 1 make || return 1 } diff --git a/main/libx11/APKBUILD b/main/libx11/APKBUILD index 7b8fc4d9951..b42b6d0d681 100644 --- a/main/libx11/APKBUILD +++ b/main/libx11/APKBUILD @@ -16,8 +16,12 @@ source="http://xorg.freedesktop.org/releases/individual/lib/libX11-$pkgver.tar.b build() { cd "$srcdir"/libX11-$pkgver - ./configure --prefix=/usr \ - --with-xcb || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --with-xcb \ + || return 1 make } diff --git a/main/libxau/APKBUILD b/main/libxau/APKBUILD index 88ed3e1b052..7c0d6c6719b 100644 --- a/main/libxau/APKBUILD +++ b/main/libxau/APKBUILD @@ -15,7 +15,12 @@ depends_dev="xproto" build() { cd "$srcdir"/libXau-$pkgver - ./configure --prefix=/usr --sysconfdir=/etc || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/libxcb/APKBUILD b/main/libxcb/APKBUILD index 1657306f5b7..23a845bb371 100644 --- a/main/libxcb/APKBUILD +++ b/main/libxcb/APKBUILD @@ -25,7 +25,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-xkb \ --enable-xinput \ --disable-xprint \ diff --git a/main/libxcomposite/APKBUILD b/main/libxcomposite/APKBUILD index b7e58c819ce..1b891c4b49b 100644 --- a/main/libxcomposite/APKBUILD +++ b/main/libxcomposite/APKBUILD @@ -15,8 +15,12 @@ depends_dev="xproto compositeproto libxfixes-dev libx11-dev libxext-dev" _builddir="$srcdir"/libXcomposite-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/libxcursor/APKBUILD b/main/libxcursor/APKBUILD index c1d14bcc6e1..c394aa1d706 100644 --- a/main/libxcursor/APKBUILD +++ b/main/libxcursor/APKBUILD @@ -24,7 +24,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ || return 1 make || return 1 diff --git a/main/libxdamage/APKBUILD b/main/libxdamage/APKBUILD index 52038101eaf..0ddd9126a90 100644 --- a/main/libxdamage/APKBUILD +++ b/main/libxdamage/APKBUILD @@ -14,7 +14,12 @@ source="http://xorg.freedesktop.org/releases/individual/lib/libXdamage-$pkgver.t depends_dev="xproto damageproto libxfixes-dev libx11-dev fixesproto" build() { cd "$srcdir"/libXdamage-$pkgver - ./configure --prefix=/usr --sysconfdir=/etc + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/libxdg-basedir/APKBUILD b/main/libxdg-basedir/APKBUILD index 63f515209fb..65934815a63 100644 --- a/main/libxdg-basedir/APKBUILD +++ b/main/libxdg-basedir/APKBUILD @@ -27,8 +27,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/libxdmcp/APKBUILD b/main/libxdmcp/APKBUILD index 62aabfb1a67..b63883dd0e0 100644 --- a/main/libxdmcp/APKBUILD +++ b/main/libxdmcp/APKBUILD @@ -13,8 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/lib/libXdmcp-$pkgver.tar build() { cd "$srcdir"/libXdmcp-$pkgver - ./configure --prefix=/usr \ - --sysconfdir=/etc + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/libxext/APKBUILD b/main/libxext/APKBUILD index 90c3921f33d..bd4e308a479 100644 --- a/main/libxext/APKBUILD +++ b/main/libxext/APKBUILD @@ -26,7 +26,12 @@ prepare() { build() { cd "$srcdir"/libXext-$pkgver - ./configure --prefix=/usr --sysconfdir=/etc + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make } diff --git a/main/libxfce4ui/APKBUILD b/main/libxfce4ui/APKBUILD index 55d39a5313d..dedff9861f7 100644 --- a/main/libxfce4ui/APKBUILD +++ b/main/libxfce4ui/APKBUILD @@ -16,13 +16,17 @@ source="http://archive.xfce.org/src/xfce/${pkgname}/${pkgver%.*}/${pkgname}-${pk depends_dev="gtk+-dev libxfce4util-dev xfconf-dev startup-notification-dev" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ --enable-gladeui \ --with-vendor-info="Alpine Linux" \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/libxfce4util/APKBUILD b/main/libxfce4util/APKBUILD index ca175426ccb..995b6d27693 100644 --- a/main/libxfce4util/APKBUILD +++ b/main/libxfce4util/APKBUILD @@ -14,11 +14,15 @@ source="http://archive.xfce.org/src/xfce/$pkgname/${pkgver%.*}/$pkgname-$pkgver. depends_dev="glib-dev" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/libxfcegui4/APKBUILD b/main/libxfcegui4/APKBUILD index 6979041cfbb..166d19d318d 100644 --- a/main/libxfcegui4/APKBUILD +++ b/main/libxfcegui4/APKBUILD @@ -15,11 +15,15 @@ source="http://archive.xfce.org/src/xfce/${pkgname}/${pkgver%.*}/${pkgname}-${pk depends_dev="gtk+-dev libxfce4util-dev xfconf-dev startup-notification-dev" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/libxfixes/APKBUILD b/main/libxfixes/APKBUILD index 89decdb0e15..c0e67347c69 100644 --- a/main/libxfixes/APKBUILD +++ b/main/libxfixes/APKBUILD @@ -24,7 +24,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr --sysconfdir=/etc --build=${CHOST} --host=${CHOST} + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/libxfont/APKBUILD b/main/libxfont/APKBUILD index 4b322417617..6313cfd50a2 100644 --- a/main/libxfont/APKBUILD +++ b/main/libxfont/APKBUILD @@ -15,7 +15,12 @@ source="http://xorg.freedesktop.org/archive/individual/lib/libXfont-$pkgver.tar. build() { cd "$srcdir"/libXfont-$pkgver - ./configure --prefix=/usr --sysconfdir=/etc || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/libxft/APKBUILD b/main/libxft/APKBUILD index ae7e4bc632c..83776140e0f 100644 --- a/main/libxft/APKBUILD +++ b/main/libxft/APKBUILD @@ -14,8 +14,12 @@ source="http://xorg.freedesktop.org/releases/individual/lib/libXft-$pkgver.tar.b build () { cd "$srcdir"/libXft-$pkgver - ./configure --prefix=/usr \ - --sysconfdir=/etc || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/libxi/APKBUILD b/main/libxi/APKBUILD index 485d33e9830..294e4aa564d 100644 --- a/main/libxi/APKBUILD +++ b/main/libxi/APKBUILD @@ -30,7 +30,12 @@ prepare() { build () { cd "$_builddir" - ./configure --prefix=/usr --sysconfdir=/etc || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/libxinerama/APKBUILD b/main/libxinerama/APKBUILD index 2d5465f243f..39c95ef994c 100644 --- a/main/libxinerama/APKBUILD +++ b/main/libxinerama/APKBUILD @@ -25,7 +25,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libxkbcommon/APKBUILD b/main/libxkbcommon/APKBUILD index d7e790cef12..fdd72b64990 100644 --- a/main/libxkbcommon/APKBUILD +++ b/main/libxkbcommon/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libxkbfile/APKBUILD b/main/libxkbfile/APKBUILD index fd53a15f50c..351c5ace4c4 100644 --- a/main/libxkbfile/APKBUILD +++ b/main/libxkbfile/APKBUILD @@ -14,8 +14,12 @@ source="http://xorg.freedesktop.org/releases/individual/lib/$pkgname-$pkgver.tar depends_dev="libx11-dev kbproto" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --sysconfdir=/etc + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/libxkbui/APKBUILD b/main/libxkbui/APKBUILD index b9cffba90c3..a2d77a03eb0 100644 --- a/main/libxkbui/APKBUILD +++ b/main/libxkbui/APKBUILD @@ -14,7 +14,11 @@ source="http://xorg.freedesktop.org/releases/individual/lib/$pkgname-$pkgver.tar depends_dev="libx11-dev xproto libxt-dev" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libxklavier/APKBUILD b/main/libxklavier/APKBUILD index d5075dce192..771398a4818 100644 --- a/main/libxklavier/APKBUILD +++ b/main/libxklavier/APKBUILD @@ -24,9 +24,13 @@ depends_dev="libxml2-dev glib-dev gettext-dev libxkbfile-dev" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-xkb-base=/usr/share/X11/xkb \ - --disable-static || return 1 + --disable-static \ + || return 1 make || return 1 } diff --git a/main/libxml2/APKBUILD b/main/libxml2/APKBUILD index 4121c44b2f5..5500426a178 100644 --- a/main/libxml2/APKBUILD +++ b/main/libxml2/APKBUILD @@ -28,10 +28,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make } diff --git a/main/libxmu/APKBUILD b/main/libxmu/APKBUILD index 3d183832386..c4f9442846c 100644 --- a/main/libxmu/APKBUILD +++ b/main/libxmu/APKBUILD @@ -16,8 +16,12 @@ depends_dev="xproto libx11-dev libxt-dev libxext-dev util-linux-dev" build () { cd "$srcdir"/libXmu-$pkgver - ./configure --prefix=/usr \ - --sysconfdir=/etc + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/libxp/APKBUILD b/main/libxp/APKBUILD index c7a6acf771b..e917d6cae8a 100644 --- a/main/libxp/APKBUILD +++ b/main/libxp/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/libxpm/APKBUILD b/main/libxpm/APKBUILD index ae409ebc4a1..90c31e2c2bf 100644 --- a/main/libxpm/APKBUILD +++ b/main/libxpm/APKBUILD @@ -15,7 +15,10 @@ source="http://xorg.freedesktop.org/releases/individual/lib/libXpm-$pkgver.tar.b depends_dev="libx11-dev" build() { cd "$srcdir"/libXpm-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ || return 1 make || return 1 diff --git a/main/libxrandr/APKBUILD b/main/libxrandr/APKBUILD index 84d96a634e6..4ae7c83c98f 100644 --- a/main/libxrandr/APKBUILD +++ b/main/libxrandr/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ || return 1 make || return 1 diff --git a/main/libxrender/APKBUILD b/main/libxrender/APKBUILD index 0a4e6a80d7c..b3591f0d26d 100644 --- a/main/libxrender/APKBUILD +++ b/main/libxrender/APKBUILD @@ -17,7 +17,11 @@ _builddir="$srcdir"/libXrender-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libxres/APKBUILD b/main/libxres/APKBUILD index 2abb57fed03..c1cdafcf551 100644 --- a/main/libxres/APKBUILD +++ b/main/libxres/APKBUILD @@ -25,8 +25,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/libxslt/APKBUILD b/main/libxslt/APKBUILD index cf9d1c32280..1b7fd68fffb 100644 --- a/main/libxslt/APKBUILD +++ b/main/libxslt/APKBUILD @@ -23,7 +23,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make } diff --git a/main/libxt/APKBUILD b/main/libxt/APKBUILD index 613958d2a5c..2f006b1db62 100644 --- a/main/libxt/APKBUILD +++ b/main/libxt/APKBUILD @@ -26,7 +26,10 @@ prepare() { build () { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ || return 1 make || return 1 diff --git a/main/libxtst/APKBUILD b/main/libxtst/APKBUILD index 30da3627f41..ff61909ae13 100644 --- a/main/libxtst/APKBUILD +++ b/main/libxtst/APKBUILD @@ -25,8 +25,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --build=${CHOST} --host=${CHOST} + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libxv/APKBUILD b/main/libxv/APKBUILD index 5e1a2dcf198..ff07b6e49f9 100644 --- a/main/libxv/APKBUILD +++ b/main/libxv/APKBUILD @@ -25,7 +25,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libxvmc/APKBUILD b/main/libxvmc/APKBUILD index 8f45ff7cc3d..7aea30dcd99 100644 --- a/main/libxvmc/APKBUILD +++ b/main/libxvmc/APKBUILD @@ -16,7 +16,12 @@ _builddir="$srcdir"/libXvMC-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr --sysconfdir=/etc + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/libxxf86dga/APKBUILD b/main/libxxf86dga/APKBUILD index 464301d61c5..4ea190070ef 100644 --- a/main/libxxf86dga/APKBUILD +++ b/main/libxxf86dga/APKBUILD @@ -24,7 +24,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/libxxf86misc/APKBUILD b/main/libxxf86misc/APKBUILD index 37501780516..1529d841ada 100644 --- a/main/libxxf86misc/APKBUILD +++ b/main/libxxf86misc/APKBUILD @@ -14,8 +14,12 @@ depends_dev="xf86miscproto libx11-dev libxext-dev" build() { cd "$srcdir"/libXxf86misc-$pkgver - ./configure --prefix=/usr \ - --mandir=/usr/share/man + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/libxxf86vm/APKBUILD b/main/libxxf86vm/APKBUILD index 474b6a97f94..d9323479d2a 100644 --- a/main/libxxf86vm/APKBUILD +++ b/main/libxxf86vm/APKBUILD @@ -25,7 +25,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/lighttpd/APKBUILD b/main/lighttpd/APKBUILD index 0ed6c45ec15..06b2446a17b 100644 --- a/main/lighttpd/APKBUILD +++ b/main/lighttpd/APKBUILD @@ -55,7 +55,10 @@ __EOF__ build() { local i cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-dependency-tracking \ --enable-lfs \ --libdir=/usr/lib/lighttpd \ @@ -71,7 +74,8 @@ build() { --with-ldap \ --with-openssl \ --with-libev \ - --with-lua || return 1 + --with-lua \ + || return 1 make } diff --git a/main/links/APKBUILD b/main/links/APKBUILD index 79b04d12339..9a0e77c0078 100644 --- a/main/links/APKBUILD +++ b/main/links/APKBUILD @@ -13,12 +13,16 @@ source="http://$pkgname.twibright.com/download/$pkgname-$pkgver.tar.bz2" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --enable-javascript \ --disable-graphics \ --without-x \ - --disable-nls || return 1 + --disable-nls \ + || return 1 make || return 1 } diff --git a/main/linux-pam/APKBUILD b/main/linux-pam/APKBUILD index b1164032503..c244e671bb6 100644 --- a/main/linux-pam/APKBUILD +++ b/main/linux-pam/APKBUILD @@ -37,7 +37,10 @@ prepare() { build() { cd "$_builddir" autoreconf -vif || return 1 - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --libdir=/lib \ --sysconfdir=/etc \ --mandir=/usr/share/man \ diff --git a/main/llvm/APKBUILD b/main/llvm/APKBUILD index 65a8bc0cf0e..2fbcd1d4044 100644 --- a/main/llvm/APKBUILD +++ b/main/llvm/APKBUILD @@ -58,11 +58,13 @@ build() { || return 1 $_srcdir/configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --enable-ffi \ + --enable-ffi \ --enable-shared \ || return 1 diff --git a/main/lockdev/APKBUILD b/main/lockdev/APKBUILD index 7dc2d061263..d5aa96dd35d 100644 --- a/main/lockdev/APKBUILD +++ b/main/lockdev/APKBUILD @@ -32,7 +32,10 @@ build() { # bootstap fails with missing m4 dir mkdir m4 ./bootstrap || return 1 - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/loudmouth/APKBUILD b/main/loudmouth/APKBUILD index aaaa9c2d332..973c32efafd 100644 --- a/main/loudmouth/APKBUILD +++ b/main/loudmouth/APKBUILD @@ -33,6 +33,8 @@ prepare() { build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --disable-static \ --with-asyncns=yes \ --with-ssl=openssl \ diff --git a/main/lsscsi/APKBUILD b/main/lsscsi/APKBUILD index 98604c036d8..66ed5b49a68 100644 --- a/main/lsscsi/APKBUILD +++ b/main/lsscsi/APKBUILD @@ -21,10 +21,14 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/lsyncd/APKBUILD b/main/lsyncd/APKBUILD index e7a27327ead..ec6b099e19d 100644 --- a/main/lsyncd/APKBUILD +++ b/main/lsyncd/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/ltrace/APKBUILD b/main/ltrace/APKBUILD index 1b1274a4385..91785f275d1 100644 --- a/main/ltrace/APKBUILD +++ b/main/ltrace/APKBUILD @@ -24,7 +24,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --disable-werror \ || return 1 diff --git a/main/lua-bitlib/APKBUILD b/main/lua-bitlib/APKBUILD index 4610091decc..0c8fd572358 100644 --- a/main/lua-bitlib/APKBUILD +++ b/main/lua-bitlib/APKBUILD @@ -17,7 +17,11 @@ _builddir="$srcdir"/$_name-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/lua-curl/APKBUILD b/main/lua-curl/APKBUILD index 501728da552..33d2564f25a 100644 --- a/main/lua-curl/APKBUILD +++ b/main/lua-curl/APKBUILD @@ -15,7 +15,11 @@ source="http://luaforge.net/frs/download.php/2634/lua-curl-0.2.tar.gz" _builddir="$srcdir"/lua-curl-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make } diff --git a/main/lua-posix/APKBUILD b/main/lua-posix/APKBUILD index 1dd8bcdb74b..5385d5a5b4f 100644 --- a/main/lua-posix/APKBUILD +++ b/main/lua-posix/APKBUILD @@ -8,7 +8,7 @@ url="https://github.com/luaposix/luaposix" arch="all" license="MIT" depends="lua lua-bitlib" -makedepends="lua-dev perl ncurses-dev" +makedepends="lua lua-dev perl ncurses-dev" source="luaposix-$pkgver.tar.gz::https://github.com/luaposix/luaposix/archive/release-v$pkgver.tar.gz 0001-Removed-Lua-5.2-functions-lua_len-and-lua_tointegerx.patch" @@ -29,7 +29,10 @@ prepare() { } build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --libdir=$_lualib \ --datadir=$_luashare \ || return 1 diff --git a/main/lua-stdlib/APKBUILD b/main/lua-stdlib/APKBUILD index b7bf1b684ae..7198b896402 100644 --- a/main/lua-stdlib/APKBUILD +++ b/main/lua-stdlib/APKBUILD @@ -16,7 +16,10 @@ _builddir="$srcdir"/stdlib-$pkgver _luashare=/usr/share/lua/5.1 build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --datadir="$_luashare" \ || return 1 make || return 1 diff --git a/main/lua5.2/APKBUILD b/main/lua5.2/APKBUILD index 4f4af2e5eec..66edf7b22e8 100644 --- a/main/lua5.2/APKBUILD +++ b/main/lua5.2/APKBUILD @@ -44,7 +44,11 @@ EOF build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 cd src make V=$pkgver \ CFLAGS=" -DLUA_USE_LINUX -DLUA_COMPAT_ALL" \ diff --git a/main/lvm2/APKBUILD b/main/lvm2/APKBUILD index 38f6bf255bb..0ae07a5ab39 100644 --- a/main/lvm2/APKBUILD +++ b/main/lvm2/APKBUILD @@ -17,7 +17,10 @@ subpackages="$pkgname-dev $pkgname-doc device-mapper:dm $pkgname-libs" build () { cd "$srcdir"/LVM2.$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libdir=/lib \ --sbindir=/sbin \ diff --git a/main/lxc/APKBUILD b/main/lxc/APKBUILD index 4a65633b7a2..cfb8866c804 100644 --- a/main/lxc/APKBUILD +++ b/main/lxc/APKBUILD @@ -33,7 +33,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-apparmor \ diff --git a/main/lxdm/APKBUILD b/main/lxdm/APKBUILD index da7382be4e2..92228c79a95 100644 --- a/main/lxdm/APKBUILD +++ b/main/lxdm/APKBUILD @@ -35,7 +35,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/lxdm \ --without-pam \ diff --git a/main/lxpolkit/APKBUILD b/main/lxpolkit/APKBUILD index afb9b97d5bd..92b36214541 100644 --- a/main/lxpolkit/APKBUILD +++ b/main/lxpolkit/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/lxsession/APKBUILD b/main/lxsession/APKBUILD index 1947d4a828b..108512e5f27 100644 --- a/main/lxsession/APKBUILD +++ b/main/lxsession/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/lxterminal/APKBUILD b/main/lxterminal/APKBUILD index e0340317956..6b3d41543c2 100644 --- a/main/lxterminal/APKBUILD +++ b/main/lxterminal/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/lynx/APKBUILD b/main/lynx/APKBUILD index 8b841714eb1..234a503e3f8 100644 --- a/main/lynx/APKBUILD +++ b/main/lynx/APKBUILD @@ -29,7 +29,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr --sysconfdir=/etc || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/lzo/APKBUILD b/main/lzo/APKBUILD index 958e0ac12cb..c522e773a5d 100644 --- a/main/lzo/APKBUILD +++ b/main/lzo/APKBUILD @@ -16,11 +16,15 @@ source="http://www.oberhumer.com/opensource/lzo/download/$pkgname-$pkgver.tar.gz build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --enable-shared + --enable-shared \ + || return 1 make || return 1 } diff --git a/main/m4/APKBUILD b/main/m4/APKBUILD index 9dff611a475..3647bb5fe64 100644 --- a/main/m4/APKBUILD +++ b/main/m4/APKBUILD @@ -22,7 +22,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make } diff --git a/main/make/APKBUILD b/main/make/APKBUILD index 124144ab855..06a4debc7b8 100644 --- a/main/make/APKBUILD +++ b/main/make/APKBUILD @@ -32,13 +32,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --build=${CBUILD} \ - --host=${CHOST} \ - --target=${CTARGET} \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --disable-nls + --disable-nls \ + || return 1 make || return 1 [ "$CBUILD" = "$CHOST" ] && (make check || return 1) return 0 diff --git a/main/makedepend/APKBUILD b/main/makedepend/APKBUILD index 414ca56a986..69240b980bb 100644 --- a/main/makedepend/APKBUILD +++ b/main/makedepend/APKBUILD @@ -27,8 +27,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/makekit/APKBUILD b/main/makekit/APKBUILD index 18ed2b2e387..aaddd9b379e 100644 --- a/main/makekit/APKBUILD +++ b/main/makekit/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { mkdir -p "$_builddir" cd "$_builddir" - ../configure --prefix=/usr \ + ../configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/man/APKBUILD b/main/man/APKBUILD index f1e8aa306ad..e590b5da1c4 100644 --- a/main/man/APKBUILD +++ b/main/man/APKBUILD @@ -24,6 +24,7 @@ prepare() { build () { cd "$_builddir" + # note: not autotools ./configure -confdir=/etc +sgid +fhs +lang none sed -i "s/\\/usr\\/bin\\/awk/\\/usr\\/bin\\/gawk/" ./conf_script make || return 1 diff --git a/main/mc/APKBUILD b/main/mc/APKBUILD index a4ac89c9e6f..857bef20d02 100644 --- a/main/mc/APKBUILD +++ b/main/mc/APKBUILD @@ -14,7 +14,10 @@ source="http://www.midnight-commander.org/downloads/mc-$pkgver.tar.bz2" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --libexecdir=/usr/lib \ --mandir=/usr/share/man \ --sysconfdir=/etc \ diff --git a/main/mcabber/APKBUILD b/main/mcabber/APKBUILD index 926590715f0..a5eeef8b8b1 100644 --- a/main/mcabber/APKBUILD +++ b/main/mcabber/APKBUILD @@ -27,6 +27,8 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --disable-static \ --enable-hgcset \ --enable-enchant \ diff --git a/main/memcached/APKBUILD b/main/memcached/APKBUILD index 24f7a0453fd..33639b9edc3 100644 --- a/main/memcached/APKBUILD +++ b/main/memcached/APKBUILD @@ -30,7 +30,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr\ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ || return 1 make || return 1 } diff --git a/main/mesa-demos/APKBUILD b/main/mesa-demos/APKBUILD index ef871587c4a..3d59f0bdc73 100644 --- a/main/mesa-demos/APKBUILD +++ b/main/mesa-demos/APKBUILD @@ -29,7 +29,11 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make V=1 || return 1 } diff --git a/main/mesa/APKBUILD b/main/mesa/APKBUILD index cf16d4f4c7a..c9d40bbb260 100644 --- a/main/mesa/APKBUILD +++ b/main/mesa/APKBUILD @@ -57,7 +57,10 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --with-dri-driverdir=$_dri_driverdir \ --disable-asm \ diff --git a/main/metacity/APKBUILD b/main/metacity/APKBUILD index 49702d0e43e..986134b8c89 100644 --- a/main/metacity/APKBUILD +++ b/main/metacity/APKBUILD @@ -36,10 +36,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --enable-compositor \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/midori/APKBUILD b/main/midori/APKBUILD index e7bbe4b4b16..c5e2b4365bb 100644 --- a/main/midori/APKBUILD +++ b/main/midori/APKBUILD @@ -33,13 +33,16 @@ source="http://www.midori-browser.org/downloads/midori_${pkgver}_all_.tar.bz2" _builddir="$srcdir"/midori_${pkgver}_all_ build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --jobs=${MAKEFLAGS/-j/} \ --disable-zeitgeist \ --enable-addons \ --enable-unique \ --enable-nls \ - --enable-gtk3\ + --enable-gtk3 \ || return 1 make } diff --git a/main/minicom/APKBUILD b/main/minicom/APKBUILD index 0573b468da1..d9a6742f5a2 100644 --- a/main/minicom/APKBUILD +++ b/main/minicom/APKBUILD @@ -17,6 +17,8 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ diff --git a/main/mkfontdir/APKBUILD b/main/mkfontdir/APKBUILD index 24b70697d3c..bdee1b75b58 100644 --- a/main/mkfontdir/APKBUILD +++ b/main/mkfontdir/APKBUILD @@ -15,7 +15,11 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/mkfontscale/APKBUILD b/main/mkfontscale/APKBUILD index 6069575a49f..553fb772a2f 100644 --- a/main/mkfontscale/APKBUILD +++ b/main/mkfontscale/APKBUILD @@ -15,7 +15,11 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/mlmmj/APKBUILD b/main/mlmmj/APKBUILD index d98dc187c3c..ac0d4ab0714 100644 --- a/main/mlmmj/APKBUILD +++ b/main/mlmmj/APKBUILD @@ -17,7 +17,11 @@ source="http://mlmmj.org/releases/mlmmj-$pkgver.tar.gz" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/mousepad/APKBUILD b/main/mousepad/APKBUILD index 48b38a9bf04..ecbbfd4275e 100644 --- a/main/mousepad/APKBUILD +++ b/main/mousepad/APKBUILD @@ -15,11 +15,15 @@ source="http://archive.xfce.org/src/apps/mousepad/${pkgver%.*}/mousepad-$pkgver. build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/xfce4 \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/mp3splt-gtk/APKBUILD b/main/mp3splt-gtk/APKBUILD index ceeff71418b..0c140906335 100644 --- a/main/mp3splt-gtk/APKBUILD +++ b/main/mp3splt-gtk/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-gnome \ || return 1 sed -i -e 's/-DGTK_DISABLE_DEPRECATED//' Makefile src/Makefile diff --git a/main/mp3splt/APKBUILD b/main/mp3splt/APKBUILD index 35a1e8c913d..d16ef30a115 100644 --- a/main/mp3splt/APKBUILD +++ b/main/mp3splt/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-mp3splt-includes=/usr/include/libmp3splt \ --enable-oggsplt_symlink \ || return 1 diff --git a/main/mpc/APKBUILD b/main/mpc/APKBUILD index 47c61aa164c..9dd066208be 100644 --- a/main/mpc/APKBUILD +++ b/main/mpc/APKBUILD @@ -13,7 +13,11 @@ source="http://www.musicpd.org/download/mpc/${pkgver%.*}/mpc-${pkgver}.tar.bz2" build() { cd "$srcdir"/mpc-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/mpc1/APKBUILD b/main/mpc1/APKBUILD index a6cb2fdb643..32c6f1c3ef5 100644 --- a/main/mpc1/APKBUILD +++ b/main/mpc1/APKBUILD @@ -22,10 +22,11 @@ build() { cd "$_builddir" # workaround for a bug in configure script EGREP=egrep \ - ./configure --prefix=/usr \ - --build=${CBUILD} \ - --host=${CHOST} \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --with-sysroot="${CBUILDROOT}" \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/mpd/APKBUILD b/main/mpd/APKBUILD index 443b186413f..bf60c1ea69e 100644 --- a/main/mpd/APKBUILD +++ b/main/mpd/APKBUILD @@ -22,7 +22,10 @@ source="http://www.musicpd.org/download/mpd/${pkgver%.*}/mpd-$pkgver.tar.xz build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/mpdscribble/APKBUILD b/main/mpdscribble/APKBUILD index e2c4d906931..16f82ed02fd 100644 --- a/main/mpdscribble/APKBUILD +++ b/main/mpdscribble/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/mpfr3/APKBUILD b/main/mpfr3/APKBUILD index 789096ff795..d9200704312 100644 --- a/main/mpfr3/APKBUILD +++ b/main/mpfr3/APKBUILD @@ -14,11 +14,13 @@ subpackages="$pkgname-doc mpfr-dev" _builddir="$srcdir"/mpfr-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ - --build=${CBUILD} \ - --host=${CHOST} \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --with-sysroot=${CBUILDROOT} \ - --enable-shared || return 1; + --prefix=/usr \ + --enable-shared \ + || return 1; make || return 1; } diff --git a/main/mpg123/APKBUILD b/main/mpg123/APKBUILD index 47778999864..3a1258754fd 100644 --- a/main/mpg123/APKBUILD +++ b/main/mpg123/APKBUILD @@ -14,13 +14,17 @@ options="libtool" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-dependency-tracking \ --with-ipv6 \ --with-pic \ --with-optimization=0 \ --with-cpu=i386_fpu \ - --with-audio="alsa oss" || return 1 + --with-audio="alsa oss" \ + || return 1 make || return 1 } diff --git a/main/mplayer/APKBUILD b/main/mplayer/APKBUILD index 668b38e5f81..45aea5661c1 100644 --- a/main/mplayer/APKBUILD +++ b/main/mplayer/APKBUILD @@ -31,7 +31,10 @@ build() { cd "$_builddir" export GCC_SPECS=hardenednopie.specs - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-gui \ --disable-gif \ --disable-arts \ @@ -48,7 +51,7 @@ build() { --disable-fribidi \ --disable-libdv \ --disable-musepack \ - --language=all\ + --language=all \ --disable-esd \ --disable-mga \ --disable-lirc \ diff --git a/main/mrtg/APKBUILD b/main/mrtg/APKBUILD index a43fbb27f64..180fa51d40c 100644 --- a/main/mrtg/APKBUILD +++ b/main/mrtg/APKBUILD @@ -17,7 +17,10 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --bindir=/usr/bin \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --bindir=/usr/bin \ --libdir=/usr/lib \ --datadir=/usr/share/doc \ --mandir=/usr/share/doc/man \ diff --git a/main/mrxvt/APKBUILD b/main/mrxvt/APKBUILD index 11b436d5d9e..7e3f45a58ba 100644 --- a/main/mrxvt/APKBUILD +++ b/main/mrxvt/APKBUILD @@ -24,6 +24,8 @@ prepare() { build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --enable-xft \ @@ -39,7 +41,8 @@ build() { --enable-greek \ --enable-cjk \ --enable-backspace-key \ - --with-save-lines=2048 || return 1 + --with-save-lines=2048 \ + || return 1 make || return 1 } diff --git a/main/msmtp/APKBUILD b/main/msmtp/APKBUILD index 4ee01cbc3c4..76ebbb0b023 100644 --- a/main/msmtp/APKBUILD +++ b/main/msmtp/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/mtdev/APKBUILD b/main/mtdev/APKBUILD index 61c5f5beb33..be94cd7b28c 100644 --- a/main/mtdev/APKBUILD +++ b/main/mtdev/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/mtools/APKBUILD b/main/mtools/APKBUILD index d7507fea059..c04f3c7218b 100644 --- a/main/mtools/APKBUILD +++ b/main/mtools/APKBUILD @@ -13,11 +13,15 @@ subpackages="$pkgname-doc" build () { cd $srcdir/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --sysconfdir=/etc \ - --without-x + --without-x \ + || return 1 make || return 1 } diff --git a/main/mtx/APKBUILD b/main/mtx/APKBUILD index dec0abd064b..5fb9a720f3e 100644 --- a/main/mtx/APKBUILD +++ b/main/mtx/APKBUILD @@ -15,8 +15,12 @@ source="http://downloads.sourceforge.net/mtx/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ - --datadir=/usr/share + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --datadir=/usr/share \ + || return 1 make || return 1 make prefix="$pkgdir" install } diff --git a/main/mutt/APKBUILD b/main/mutt/APKBUILD index 4bc57166d5a..c5da8f5f0bc 100644 --- a/main/mutt/APKBUILD +++ b/main/mutt/APKBUILD @@ -24,7 +24,10 @@ prepare() { build() { cd "$_builddir" ISPELL=/usr/bin/hunspell \ - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/nagios-plugins/APKBUILD b/main/nagios-plugins/APKBUILD index d466146b7bc..6f4a7cd7f6e 100644 --- a/main/nagios-plugins/APKBUILD +++ b/main/nagios-plugins/APKBUILD @@ -23,7 +23,10 @@ prepare() { build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --bindir=/usr/sbin \ @@ -33,7 +36,8 @@ build() { --with-ps-format="%d %s %s %s" \ --with-ps-varlist="&procpid,&procuid,&procpcpu,procprog" \ --with-ps-cols=4 \ - --with-ping-command="/bin/ping -c %d %s" + --with-ping-command="/bin/ping -c %d %s" \ + || return 1 make all || return 1 } diff --git a/main/nagios/APKBUILD b/main/nagios/APKBUILD index b53f56d12d7..e8b643a1935 100644 --- a/main/nagios/APKBUILD +++ b/main/nagios/APKBUILD @@ -22,7 +22,10 @@ _builddir="$srcdir/$pkgname" build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc/nagios \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -36,7 +39,8 @@ build() { --with-nagios-user=nagios \ --with-nagios-group=nagios \ --enable-embedded-perl \ - --with-perlcache + --with-perlcache \ + || return 1 make all || return 1 } diff --git a/main/nano/APKBUILD b/main/nano/APKBUILD index 1149d5ad6b7..560d0950b69 100644 --- a/main/nano/APKBUILD +++ b/main/nano/APKBUILD @@ -16,12 +16,16 @@ source="http://www.nano-editor.org/dist/v${pkgver%.*}/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-nls \ - --disable-speller + --disable-speller \ + || return 1 make || return 1 } diff --git a/main/nasm/APKBUILD b/main/nasm/APKBUILD index 2ff5c852fde..fc9f58349a2 100644 --- a/main/nasm/APKBUILD +++ b/main/nasm/APKBUILD @@ -25,7 +25,11 @@ build () { cd "$_builddir" export CFLAGS= export CXXFLAGS= - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make nasmlib.o || return 1 make || return 1 } diff --git a/main/nautilus/APKBUILD b/main/nautilus/APKBUILD index dea6db841de..0db3a425659 100644 --- a/main/nautilus/APKBUILD +++ b/main/nautilus/APKBUILD @@ -58,7 +58,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ || return 1 make || return 1 diff --git a/main/ncdu/APKBUILD b/main/ncdu/APKBUILD index 8f611adce13..e52110c402f 100644 --- a/main/ncdu/APKBUILD +++ b/main/ncdu/APKBUILD @@ -18,6 +18,8 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ diff --git a/main/ncftp/APKBUILD b/main/ncftp/APKBUILD index 582ff633103..850d38c8b1f 100644 --- a/main/ncftp/APKBUILD +++ b/main/ncftp/APKBUILD @@ -21,9 +21,13 @@ prepare() { build () { cd "$_builddir" || return 1 - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --mandir=/usr/share/man || return 1 + --mandir=/usr/share/man \ + || return 1 cd "$_builddir"/libncftp make shared || return 1 diff --git a/main/ncurses/APKBUILD b/main/ncurses/APKBUILD index 772ec1ad80a..341212dc30d 100644 --- a/main/ncurses/APKBUILD +++ b/main/ncurses/APKBUILD @@ -12,9 +12,10 @@ subpackages="$pkgname-dev $pkgname-doc $pkgname-base $pkgname-terminfo $pkgname-widec-libs:widec $pkgname-libs" build() { - local _confopts="--mandir=/usr/share/man + local _confopts=" --build=$CBUILD --host=$CHOST + --mandir=/usr/share/man --without-ada --disable-termcap --disable-rpath-hack @@ -26,12 +27,16 @@ build() { mkdir ncurses-build ncursesw-build cd ncurses-build - ../configure $_confopts || return 1 + ../configure $_confopts \ + || return 1 make libs || return 1 make -C progs || return 1 cd ../ncursesw-build - ../configure $_confopts --enable-widec --without-progs || return 1 + ../configure $_confopts \ + --enable-widec \ + --without-progs \ + || return 1 make libs || return 1 cd .. } diff --git a/main/neon/APKBUILD b/main/neon/APKBUILD index 7c661c0f053..5c4e3450ef4 100644 --- a/main/neon/APKBUILD +++ b/main/neon/APKBUILD @@ -14,7 +14,10 @@ source="http://www.webdav.org/$pkgname/$pkgname-$pkgver.tar.gz" build () { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-ssl \ --with-expat \ --without-gssapi \ @@ -22,7 +25,7 @@ build () { --disable-socks \ --enable-shared \ --disable-static \ - + || return 1 make || return 1 } diff --git a/main/net-snmp/APKBUILD b/main/net-snmp/APKBUILD index dce92cda11b..75e8bd46177 100644 --- a/main/net-snmp/APKBUILD +++ b/main/net-snmp/APKBUILD @@ -50,7 +50,10 @@ build() { #build fails on: libnetsnmpmibs.so: undefined reference to `pthread_create' LDFLAGS="$LDFLAGS -lpthread" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -66,7 +69,8 @@ build() { --enable-shared \ --enable-as-needed \ --with-perl-modules="INSTALLDIRS=vendor" \ - --disable-embedded-perl + --disable-embedded-perl \ + || return 1 # embedded-perl seems to create TEXTREL's # work around parallell build issue diff --git a/main/netcf/APKBUILD b/main/netcf/APKBUILD index 746b16ee5d9..771b4836df4 100644 --- a/main/netcf/APKBUILD +++ b/main/netcf/APKBUILD @@ -21,7 +21,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/nettle/APKBUILD b/main/nettle/APKBUILD index 2998922845d..236636e0ab2 100644 --- a/main/nettle/APKBUILD +++ b/main/nettle/APKBUILD @@ -29,6 +29,8 @@ prepare() { build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ diff --git a/main/newt/APKBUILD b/main/newt/APKBUILD index 6ecb58e583b..1ec0838f34f 100644 --- a/main/newt/APKBUILD +++ b/main/newt/APKBUILD @@ -26,10 +26,14 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --without-gpm \ --without-tcl \ - --disable-nls + --disable-nls \ + || return 1 make RPM_OPT_FLAGS="$CFLAGS" || return 1 } diff --git a/main/nfdump/APKBUILD b/main/nfdump/APKBUILD index e7665eb8a5b..aa4958c00d7 100644 --- a/main/nfdump/APKBUILD +++ b/main/nfdump/APKBUILD @@ -29,7 +29,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-nfprofile \ || return 1 make || return 1 diff --git a/main/nfs-utils/APKBUILD b/main/nfs-utils/APKBUILD index 2d304c41cc3..32f8fa10514 100644 --- a/main/nfs-utils/APKBUILD +++ b/main/nfs-utils/APKBUILD @@ -51,7 +51,10 @@ prepare() { build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -61,7 +64,8 @@ build() { --enable-uuid \ --enable-gss \ --enable-libmount-mount \ - --with-statedir=/var/lib/nfs + --with-statedir=/var/lib/nfs \ + || return 1 make || return 1 } diff --git a/main/nginx/APKBUILD b/main/nginx/APKBUILD index 9848263bece..dfd32500df9 100644 --- a/main/nginx/APKBUILD +++ b/main/nginx/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --conf-path=/etc/$pkgname/$pkgname.conf \ --pid-path=/var/run/$pkgname.pid \ --lock-path=/var/run/$pkgname.lock \ @@ -35,12 +38,15 @@ build() { --http-client-body-temp-path=/tmp/$pkgname/client-body \ --http-proxy-temp-path=/tmp/$pkgname/proxy \ --http-fastcgi-temp-path=/tmp/$pkgname/fastcgi \ - --user=http --group=http \ - --with-ipv6 --with-pcre-jit \ + --user=http \ + --group=http \ + --with-ipv6 \ + --with-pcre-jit \ --with-http_ssl_module \ --with-http_gzip_static_module \ --with-http_spdy_module \ - --with-mail --with-mail_ssl_module \ + --with-mail \ + --with-mail_ssl_module \ || return 1 make || return 1 } diff --git a/main/ngircd/APKBUILD b/main/ngircd/APKBUILD index 4e569814f39..c74d651a0a9 100644 --- a/main/ngircd/APKBUILD +++ b/main/ngircd/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc/ngircd \ --mandir=/usr/share/man \ --without-ident \ diff --git a/main/ngrep/APKBUILD b/main/ngrep/APKBUILD index 141d8566c7d..31666553be9 100644 --- a/main/ngrep/APKBUILD +++ b/main/ngrep/APKBUILD @@ -16,9 +16,13 @@ source="http://downloads.sourceforge.net/sourceforge/ngrep/$pkgname-$pkgver.tar. _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --with-pcap-includes=/usr/include/pcap + --with-pcap-includes=/usr/include/pcap \ + || return 1 make || return 1 } package() { diff --git a/main/nload/APKBUILD b/main/nload/APKBUILD index 7d623262813..ac7f0a82b8d 100644 --- a/main/nload/APKBUILD +++ b/main/nload/APKBUILD @@ -17,10 +17,14 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/nmap/APKBUILD b/main/nmap/APKBUILD index 3856b4c58fa..cd9c5dae6e8 100644 --- a/main/nmap/APKBUILD +++ b/main/nmap/APKBUILD @@ -17,13 +17,17 @@ source="http://nmap.org/dist/$pkgname-$pkgver.tgz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --without-zenmap \ --with-liblua=/usr/include \ - --with-openssl=/usr/lib + --with-openssl=/usr/lib \ + || return 1 make || return 1 } diff --git a/main/nrpe/APKBUILD b/main/nrpe/APKBUILD index 4d59a80fb93..98ee89f90c0 100644 --- a/main/nrpe/APKBUILD +++ b/main/nrpe/APKBUILD @@ -19,12 +19,16 @@ source="http://downloads.sourceforge.net/nagios/$pkgname-$pkgver.tar.gz build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --libexecdir=/usr/lib/nagios/plugins \ - --enable-command-args + --enable-command-args \ + || return 1 make || return 1 } diff --git a/main/nsd/APKBUILD b/main/nsd/APKBUILD index 80b104c4bf8..6a94490dc5a 100644 --- a/main/nsd/APKBUILD +++ b/main/nsd/APKBUILD @@ -36,6 +36,8 @@ build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --sbindir=/usr/sbin \ --mandir=/usr/share/man \ --with-user=nsd \ diff --git a/main/nspr/APKBUILD b/main/nspr/APKBUILD index b72e31c288e..34087da00b4 100644 --- a/main/nspr/APKBUILD +++ b/main/nspr/APKBUILD @@ -39,7 +39,10 @@ build() { conf="--enable-64bit" fi cd "$_builddir"/build - ../mozilla/nsprpub/configure --prefix=/usr \ + ../mozilla/nsprpub/configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-debug \ --enable-optimize \ $conf \ diff --git a/main/ntfs-3g/APKBUILD b/main/ntfs-3g/APKBUILD index 0122aa1b8c4..8f5024a0dd9 100644 --- a/main/ntfs-3g/APKBUILD +++ b/main/ntfs-3g/APKBUILD @@ -15,10 +15,14 @@ source="http://tuxera.com/opensource/ntfs-3g_ntfsprogs-$pkgver.tgz" _builddir="$srcdir"/ntfs-3g_ntfsprogs-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/obex-data-server/APKBUILD b/main/obex-data-server/APKBUILD index f9de2be6e93..8eac8a9178f 100644 --- a/main/obex-data-server/APKBUILD +++ b/main/obex-data-server/APKBUILD @@ -24,9 +24,13 @@ prepare() { build() { cd $srcdir/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --enable-bip=gdk-pixbuf + --enable-bip=gdk-pixbuf \ + || return 1 make } diff --git a/main/obexd/APKBUILD b/main/obexd/APKBUILD index 4b92b38f520..53af098f7d0 100644 --- a/main/obexd/APKBUILD +++ b/main/obexd/APKBUILD @@ -25,7 +25,10 @@ prepare() { build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --libexecdir=/usr/lib/obexd \ || return 1 make || return 1 diff --git a/main/ocfs2-tools/APKBUILD b/main/ocfs2-tools/APKBUILD index ee4b71d8931..a08724a96dc 100644 --- a/main/ocfs2-tools/APKBUILD +++ b/main/ocfs2-tools/APKBUILD @@ -38,14 +38,18 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-ocfs2console=yes \ --enable-dynamic-fsck=yes \ --enable-dynamic-ctl=yes \ - --disable-glibtest || return 1 + --disable-glibtest \ + || return 1 make -j1 || return 1 } diff --git a/main/oidentd/APKBUILD b/main/oidentd/APKBUILD index f7d9ca75225..b16a23344c1 100644 --- a/main/oidentd/APKBUILD +++ b/main/oidentd/APKBUILD @@ -18,10 +18,14 @@ oidentd.confd" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install install -D -m755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname diff --git a/main/open-lldp/APKBUILD b/main/open-lldp/APKBUILD index ef1e73f0394..e87fa00be1e 100644 --- a/main/open-lldp/APKBUILD +++ b/main/open-lldp/APKBUILD @@ -30,10 +30,14 @@ build() { cd "$_builddir" ./bootstrap.sh || return 1 # aclocal -W all && automake -W all && autoconf -W all - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info || return 1 + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/open-vm-tools-grsec/APKBUILD b/main/open-vm-tools-grsec/APKBUILD index f8da756fbeb..2150747b24f 100644 --- a/main/open-vm-tools-grsec/APKBUILD +++ b/main/open-vm-tools-grsec/APKBUILD @@ -60,7 +60,10 @@ prepare() { build() { export GCC_SPECS=hardenednopie.specs cd "$_builddir" - ./configure --without-pam \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --without-pam \ --without-x \ --without-dnet \ --without-icu \ diff --git a/main/open-vm-tools/APKBUILD b/main/open-vm-tools/APKBUILD index b1afc7534cf..63500a1fb57 100644 --- a/main/open-vm-tools/APKBUILD +++ b/main/open-vm-tools/APKBUILD @@ -70,7 +70,10 @@ build() { export CUSTOM_PROCPS_NAME="procps" export CFLAGS="$CLFAGS -Wno-unused-but-set-variable" cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --disable-unity \ --with-dnet \ diff --git a/main/openbox/APKBUILD b/main/openbox/APKBUILD index 1d65c2a5430..fd1114a36af 100644 --- a/main/openbox/APKBUILD +++ b/main/openbox/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --disable-static \ || return 1 diff --git a/main/openjdk6/APKBUILD b/main/openjdk6/APKBUILD index 934714211a9..694fdb359b0 100644 --- a/main/openjdk6/APKBUILD +++ b/main/openjdk6/APKBUILD @@ -121,7 +121,10 @@ build() { cd "$_builddir" sh autogen.sh - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -138,7 +141,7 @@ build() { --with-ant-home=$srcdir/apache-ant-$ANT_VER \ --with-rhino=$srcdir/rhino$RHINO_VER/js.jar \ --with-pkgversion="Alpine ${pkgver}-r${pkgrel}" \ - || return 1 + || return 1 make || return 1 } diff --git a/main/openldap/APKBUILD b/main/openldap/APKBUILD index 519cbc20163..56493071083 100644 --- a/main/openldap/APKBUILD +++ b/main/openldap/APKBUILD @@ -39,7 +39,10 @@ prepare() { build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --libexecdir=/usr/lib \ --sysconfdir=/etc \ --mandir=/usr/share/man \ diff --git a/main/openntpd/APKBUILD b/main/openntpd/APKBUILD index af553677191..a16c323a4b5 100644 --- a/main/openntpd/APKBUILD +++ b/main/openntpd/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$srcdir/$pkgname-$_myver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --sysconfdir=/etc \ || return 1 diff --git a/main/openobex/APKBUILD b/main/openobex/APKBUILD index 30438bb88a5..d784c4ccb56 100644 --- a/main/openobex/APKBUILD +++ b/main/openobex/APKBUILD @@ -15,7 +15,10 @@ source="http://downloads.sourceforge.net/project/openobex/openobex/$pkgver/openo _builddir="$srcdir"/openobex-$pkgver-Source build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-apps \ --enable-irda \ --enable-bluetooth \ diff --git a/main/openresolv/APKBUILD b/main/openresolv/APKBUILD index c84aa0093dd..5bf93c6d808 100644 --- a/main/openresolv/APKBUILD +++ b/main/openresolv/APKBUILD @@ -12,10 +12,13 @@ source="http://roy.marples.name/downloads/openresolv/openresolv-$pkgver.tar.bz2" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --libexecdir=/usr/lib \ --sysconfdir=/etc \ - || return + || return 1 make } diff --git a/main/openssh/APKBUILD b/main/openssh/APKBUILD index 4250f8cd377..e0ef9525173 100644 --- a/main/openssh/APKBUILD +++ b/main/openssh/APKBUILD @@ -11,6 +11,8 @@ depends="openssh-client" makedepends="openssl-dev zlib-dev" subpackages="$pkgname-doc $pkgname-client" source="ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$pkgname-$_myver.tar.gz + openssh-fix-includes.diff + openssh-fix-utmp.diff openssh-peaktput.diff openssh-hmac-accel.diff sshd.initd @@ -40,19 +42,22 @@ prepare() { build () { cd "$_builddir" - ./configure --prefix=/usr \ - --with-mantype=man \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc/ssh \ + --datadir=/usr/share/openssh \ + --libexecdir=/usr/lib/ssh \ --mandir=/usr/share/man \ - --with-ldflags="${LDFLAGS}" \ - --disable-strip \ + --with-mantype=man \ + --with-ldflags="${LDFLAGS}" \ + --disable-strip \ --disable-lastlog \ - --sysconfdir=/etc/ssh \ - --datadir=/usr/share/openssh \ - --with-privsep-path=/var/empty \ - --with-privsep-user=sshd \ - --with-md5-passwords \ - --with-ssl-engine \ - --libexecdir=/usr/lib/ssh \ + --with-privsep-path=/var/empty \ + --with-privsep-user=sshd \ + --with-md5-passwords \ + --with-ssl-engine \ --without-tcp-wrappers \ --without-pam \ || return 1 @@ -95,16 +100,22 @@ client() { } md5sums="be46174dcbb77ebb4ea88ef140685de1 openssh-6.2p2.tar.gz +99adc484731fcd5fc17b39a6f9fe055b openssh-fix-includes.diff +223b1a488cd937388e99ce75e00fb7d4 openssh-fix-utmp.diff 949ff348573438163240c60d6c3618eb openssh-peaktput.diff c65d454dc5b149647273485fc184636d openssh-hmac-accel.diff cb0dd08c413fad346f0c594107b4a2e0 sshd.initd b35e9f3829f4cfca07168fcba98749c7 sshd.confd" sha256sums="7f29b9d2ad672ae0f9e1dcbff871fc5c2e60a194e90c766432e32161b842313b openssh-6.2p2.tar.gz +41940659600fe455c43247c6a7cb3d258c3abb5fcec40fc5559d243277a2be35 openssh-fix-includes.diff +9f9cbea58ba220e64a97b190169b732af47bd1791d2629fdc3a469856a03db44 openssh-fix-utmp.diff dab18c1fd1496c1ba4a4fe08c6c6b8cf3347fc82878d85498202f50168161f6b openssh-peaktput.diff 902ea83a9ef726f32b096280da0f1b722f4372886c65c4e28985ee57e725d95c openssh-hmac-accel.diff 3fa062fd4bfac64abf21f3c1d0548f1dfcf3c6e56e84ece14c848f53a293024e sshd.initd 29c6d57ac3ec6018cadc6ba6cd9b90c9ed46e20049b970fdcc68ee2481a2ee41 sshd.confd" sha512sums="80c8fb6bb25e86e8261cc7c6671773cdc0d9b0da9c9ebca33b3d5278c44197734fe32e878e1f444b693c4b49b0a525458aa07e57c231cefafc23a9c6975b05df openssh-6.2p2.tar.gz +5521b3a02d36573480c799c748badeab72127b03a85c73184c556d69e8e20643c823c43e5d06f6edb46e83310969333c08427dacf6c6f09227b1871c48c96984 openssh-fix-includes.diff +de5f9b3f64e9bb13a1eed348f6f1239aa35b62bb71ee1af091437ea24b24c65681969469ce1680e307d481c51fb2cc5ebe97ab79902a04c36341a770ba0f7bbd openssh-fix-utmp.diff 64f2c94f41225c76428440d778b0bf5657408123d1cd7d6cb4bdf5000bfba8ad80ec5e57acd0880adc7a8ea7e2f1a64e329b83cf8be630b9aaebff6ab138d025 openssh-peaktput.diff aaa128126400171d0755038a846672aa7b1e87340edf73a672962d403abf404ef1821466b17da51dde25f04ec7533ae4a653399ccc912ea9c4a7b1a14032e76f openssh-hmac-accel.diff 1483e2bcd700da9b02f04508d490b472c816344787bf1675fef2f7e27f72b91e4323e4e8c1db701e47d81d37d6d4b0623eaeac46b2cf589ae5ad69f363baa594 sshd.initd diff --git a/main/openssl/APKBUILD b/main/openssl/APKBUILD index f9cd11cc02c..c55edfccd5e 100644 --- a/main/openssl/APKBUILD +++ b/main/openssl/APKBUILD @@ -67,13 +67,14 @@ build() { x86) _target="linux-elf" ;; x86_64) _target="linux-x86_64" ;; arm*) _target="linux-armv4" ;; + *) msg "Unable to determine architecture from (CARCH=$CARCH)" ; return 1 ;; esac # Configure assumes --options are for it, so can't use # gcc's --sysroot fake this by overriding CC [ -n "$CBUILDROOT" ] && CC="$CC --sysroot=${CBUILDROOT}" - ./Configure $_target --prefix=/usr \ + perl ./Configure $_target --prefix=/usr \ --libdir=lib \ --openssldir=/etc/ssl \ shared zlib enable-montasm enable-md2 \ diff --git a/main/openvpn-auth-ldap/APKBUILD b/main/openvpn-auth-ldap/APKBUILD index ab58d527a45..50e2b93bf40 100644 --- a/main/openvpn-auth-ldap/APKBUILD +++ b/main/openvpn-auth-ldap/APKBUILD @@ -24,7 +24,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/openvpn/APKBUILD b/main/openvpn/APKBUILD index 487c907bdcb..61bb99b047b 100644 --- a/main/openvpn/APKBUILD +++ b/main/openvpn/APKBUILD @@ -31,13 +31,17 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --sysconfdir=/etc/openvpn \ --enable-ssl \ --enable-crypto \ --enable-password-save \ - --enable-iproute2 + --enable-iproute2 \ + || return 1 make || return 1 cd plugin/down-root diff --git a/main/oprofile/APKBUILD b/main/oprofile/APKBUILD index 74550d29ed5..d71a8f6acca 100644 --- a/main/oprofile/APKBUILD +++ b/main/oprofile/APKBUILD @@ -23,11 +23,15 @@ prepare() { build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --with-pic + --with-pic \ + || return 1 make -j1 || return 1 } diff --git a/main/orage/APKBUILD b/main/orage/APKBUILD index 80a0cef1fcf..2ee5d67d9bc 100644 --- a/main/orage/APKBUILD +++ b/main/orage/APKBUILD @@ -19,11 +19,15 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ - --disable-static || return 1 + --disable-static \ + || return 1 make || return 1 } diff --git a/main/orbit2/APKBUILD b/main/orbit2/APKBUILD index 4387f4c12a9..fdca00968f3 100644 --- a/main/orbit2/APKBUILD +++ b/main/orbit2/APKBUILD @@ -28,7 +28,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr --sysconfdir=/etc || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/orc/APKBUILD b/main/orc/APKBUILD index 596afb906da..1df6ddcb2c1 100644 --- a/main/orc/APKBUILD +++ b/main/orc/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/ortp/APKBUILD b/main/ortp/APKBUILD index 93b0dd76694..dba936a87df 100644 --- a/main/ortp/APKBUILD +++ b/main/ortp/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ --enable-ipv6 \ || return 1 diff --git a/main/osmo/APKBUILD b/main/osmo/APKBUILD index 16982257926..33a771d66d9 100644 --- a/main/osmo/APKBUILD +++ b/main/osmo/APKBUILD @@ -28,7 +28,11 @@ prepare() { build() { cd "$_builddir" CFLAGS="$CFLAGS -I/usr/include/libical" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/p11-kit/APKBUILD b/main/p11-kit/APKBUILD index 21165d899a0..8087dab5148 100644 --- a/main/p11-kit/APKBUILD +++ b/main/p11-kit/APKBUILD @@ -28,6 +28,8 @@ prepare() { build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --sysconfdir=/etc \ --prefix=/usr \ --mandir=/usr/share/man \ diff --git a/main/pacman/APKBUILD b/main/pacman/APKBUILD index 7f8fbf9de2d..a00f439a4ec 100644 --- a/main/pacman/APKBUILD +++ b/main/pacman/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/pam-pgsql/APKBUILD b/main/pam-pgsql/APKBUILD index a085bf5aed1..e13322dfe7f 100644 --- a/main/pam-pgsql/APKBUILD +++ b/main/pam-pgsql/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ || return 1 make || return 1 } diff --git a/main/pango/APKBUILD b/main/pango/APKBUILD index 98092ffd0d4..71458daea91 100644 --- a/main/pango/APKBUILD +++ b/main/pango/APKBUILD @@ -16,10 +16,14 @@ source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$p build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --with-included-modules=basic-fc \ - --localstatedir=/var || return 1 + --localstatedir=/var \ + || return 1 make || return 1 } diff --git a/main/pangomm/APKBUILD b/main/pangomm/APKBUILD index 11496b4c8be..6aa9441c1f3 100644 --- a/main/pangomm/APKBUILD +++ b/main/pangomm/APKBUILD @@ -15,7 +15,11 @@ source="http://ftp.gnome.org/pub/GNOME/sources/pangomm/${pkgver%.*}/pangomm-$pkg _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/pangox-compat/APKBUILD b/main/pangox-compat/APKBUILD index 4d55baf9326..577ddade07f 100644 --- a/main/pangox-compat/APKBUILD +++ b/main/pangox-compat/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ || return 1 make || return 1 diff --git a/main/parole/APKBUILD b/main/parole/APKBUILD index f7683e86411..16b12936522 100644 --- a/main/parole/APKBUILD +++ b/main/parole/APKBUILD @@ -29,7 +29,10 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/parted/APKBUILD b/main/parted/APKBUILD index f06fc54ebcd..9bac464fd5c 100644 --- a/main/parted/APKBUILD +++ b/main/parted/APKBUILD @@ -14,10 +14,14 @@ source="ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.xz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-debug \ --disable-nls \ - --disable-Werror + --disable-Werror \ + || return 1 make || return 1 } diff --git a/main/patch/APKBUILD b/main/patch/APKBUILD index 4091c3e66b0..fa8f5e0478c 100644 --- a/main/patch/APKBUILD +++ b/main/patch/APKBUILD @@ -15,16 +15,21 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ - --build=${CBUILD} \ - --host=${CHOST} \ - --mandir=/usr/share/man + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } package() { cd "$_builddir" make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install + rm -rf "$pkgdir"/usr/lib/charset.alias + rmdir -p "$pkgdir"/usr/lib 2>/dev/null + return 0 } md5sums="0881a7c6477862fc395f373ada0ec6b6 patch-2.7.1.tar.bz2" diff --git a/main/patchutils/APKBUILD b/main/patchutils/APKBUILD index f30eeab846b..c1b03bc780b 100644 --- a/main/patchutils/APKBUILD +++ b/main/patchutils/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/pcre/APKBUILD b/main/pcre/APKBUILD index c0af61aefca..c90d95069ac 100644 --- a/main/pcre/APKBUILD +++ b/main/pcre/APKBUILD @@ -24,7 +24,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-jit \ --enable-utf8 \ --enable-unicode-properties \ @@ -33,7 +36,8 @@ build() { --enable-pcre32 \ --with-match-limit-recursion=8192 \ --htmldir=/usr/share/doc/$pkgname-$pkgver/html \ - --docdir=/usr/share/doc/$pkgname-$pkgver + --docdir=/usr/share/doc/$pkgname-$pkgver \ + || return 1 make || return 1 } diff --git a/main/pdnsd/APKBUILD b/main/pdnsd/APKBUILD index a8e976929c7..6dbeaf16c53 100644 --- a/main/pdnsd/APKBUILD +++ b/main/pdnsd/APKBUILD @@ -34,7 +34,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/pekwm/APKBUILD b/main/pekwm/APKBUILD index 73621122110..e4ea5a05ff2 100644 --- a/main/pekwm/APKBUILD +++ b/main/pekwm/APKBUILD @@ -21,10 +21,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/perdition/APKBUILD b/main/perdition/APKBUILD index 470dc3ba917..c63527faa11 100644 --- a/main/perdition/APKBUILD +++ b/main/perdition/APKBUILD @@ -30,7 +30,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -43,7 +46,8 @@ build() { --disable-nis \ --disable-posix-regex \ --disable-ldap \ - --disable-daemon-map + --disable-daemon-map \ + || return 1 make || return 1 } diff --git a/main/pgcluster/APKBUILD b/main/pgcluster/APKBUILD index 01eb9005d0a..f3fdf8be7f1 100644 --- a/main/pgcluster/APKBUILD +++ b/main/pgcluster/APKBUILD @@ -19,7 +19,10 @@ source="http://pgfoundry.org/frs/download.php/1705/$pkgname-$_myver.tar.gz build() { cd "$srcdir"/$pkgname-$_myver || return 1 - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --with-docdir=/usr/share/doc \ --with-openssl \ diff --git a/main/pgpool/APKBUILD b/main/pgpool/APKBUILD index a601022322e..b56ad8becff 100644 --- a/main/pgpool/APKBUILD +++ b/main/pgpool/APKBUILD @@ -17,6 +17,8 @@ _builddir="$srcdir"/$_opkgname-$pkgver build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ diff --git a/main/php-apc/APKBUILD b/main/php-apc/APKBUILD index d9263845d39..8f179d88030 100644 --- a/main/php-apc/APKBUILD +++ b/main/php-apc/APKBUILD @@ -16,9 +16,13 @@ apc.ini" build() { cd "$srcdir/APC-${pkgver}" phpize || return 1 - ./configure --enable-apc \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --enable-apc \ --disable-apc-mmap \ - --with-php-config=/usr/bin/php-config + --with-php-config=/usr/bin/php-config \ + || return 1 make || return 1 } diff --git a/main/php-mailparse/APKBUILD b/main/php-mailparse/APKBUILD index aa4a889074a..e7725300cb5 100644 --- a/main/php-mailparse/APKBUILD +++ b/main/php-mailparse/APKBUILD @@ -31,7 +31,11 @@ prepare() { build() { cd "$_builddir" phpize || return 1 - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/php-xcache/APKBUILD b/main/php-xcache/APKBUILD index 677eec0cd32..681eb6850a2 100644 --- a/main/php-xcache/APKBUILD +++ b/main/php-xcache/APKBUILD @@ -29,6 +29,8 @@ build() { cd "$_builddir" phpize --clean && phpize || return 1 ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --enable-xcache \ --enable-xcache-constant \ diff --git a/main/php/APKBUILD b/main/php/APKBUILD index 529e67cbfff..5b5fd7f692d 100644 --- a/main/php/APKBUILD +++ b/main/php/APKBUILD @@ -143,7 +143,9 @@ _do_build() { } build() { - _phpconfig="--build=${CHOST:-i486-alpine-linux-uclibc} \ + _phpconfig="\ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc/php \ --with-layout=GNU \ diff --git a/main/pidgin-audacious/APKBUILD b/main/pidgin-audacious/APKBUILD index c87b8d27c8b..56aaaa9b16c 100644 --- a/main/pidgin-audacious/APKBUILD +++ b/main/pidgin-audacious/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/pidgin-otr/APKBUILD b/main/pidgin-otr/APKBUILD index 2020cf907b9..944be373d2d 100644 --- a/main/pidgin-otr/APKBUILD +++ b/main/pidgin-otr/APKBUILD @@ -25,7 +25,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/pidgin-sipe/APKBUILD b/main/pidgin-sipe/APKBUILD index d7eb4b37dee..eeb5ea9c5dd 100644 --- a/main/pidgin-sipe/APKBUILD +++ b/main/pidgin-sipe/APKBUILD @@ -29,7 +29,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-purple \ --disable-telepathy \ --with-vv \ diff --git a/main/pidgin/APKBUILD b/main/pidgin/APKBUILD index 8803c9a96f9..622296dfad7 100644 --- a/main/pidgin/APKBUILD +++ b/main/pidgin/APKBUILD @@ -30,7 +30,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --disable-avahi \ --disable-doxygen \ diff --git a/main/pinentry/APKBUILD b/main/pinentry/APKBUILD index cd972a58a72..073d922ab3d 100644 --- a/main/pinentry/APKBUILD +++ b/main/pinentry/APKBUILD @@ -15,13 +15,17 @@ source="ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2 build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-pinentry-gtk \ --enable-pinentry-gtk2 \ --disable-pinentry-qt \ --enable-pinentry-curses \ --enable-pinentry-gtk2 \ - --enable-fallback-curses + --enable-fallback-curses \ + || return 1 make || return 1 } diff --git a/main/pixman/APKBUILD b/main/pixman/APKBUILD index 53868db89f3..f50c394ef24 100644 --- a/main/pixman/APKBUILD +++ b/main/pixman/APKBUILD @@ -13,8 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/lib/$pkgname-$pkgver.tar build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --disable-static || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-static \ + || return 1 make || return 1 } diff --git a/main/pjproject/APKBUILD b/main/pjproject/APKBUILD index 4215fe172db..710b221d99a 100644 --- a/main/pjproject/APKBUILD +++ b/main/pjproject/APKBUILD @@ -33,7 +33,9 @@ prepare() { build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --build=${CHOST:-i486-alpine-linux-uclibc} \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ diff --git a/main/pkgconf/APKBUILD b/main/pkgconf/APKBUILD index b6a29ebf286..c704cef76bd 100644 --- a/main/pkgconf/APKBUILD +++ b/main/pkgconf/APKBUILD @@ -27,13 +27,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ - --build=${CBUILD} \ - --host=${CHOST} \ || return 1 make || return 1 if [ "$CHOST" = "$CBUILD" ]; then diff --git a/main/pm-utils/APKBUILD b/main/pm-utils/APKBUILD index 1afed83ebd1..46ffb1bb59a 100644 --- a/main/pm-utils/APKBUILD +++ b/main/pm-utils/APKBUILD @@ -24,10 +24,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/pmacct/APKBUILD b/main/pmacct/APKBUILD index dbdc3d2d85a..075869081c8 100644 --- a/main/pmacct/APKBUILD +++ b/main/pmacct/APKBUILD @@ -27,14 +27,18 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-pgsql \ --enable-64bit \ --enable-threads \ - --enable-ulog + --enable-ulog \ + || return 1 make || return 1 } diff --git a/main/polkit/APKBUILD b/main/polkit/APKBUILD index f072cb76cc8..a4b8ab02069 100644 --- a/main/polkit/APKBUILD +++ b/main/polkit/APKBUILD @@ -32,7 +32,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -45,7 +48,8 @@ build() { --with-os-type=alpine \ --disable-gtk-doc \ --disable-gtk-doc-html \ - --disable-gtk-doc-pdf + --disable-gtk-doc-pdf \ + || return 1 make || return 1 } diff --git a/main/poppler-gtk/APKBUILD b/main/poppler-gtk/APKBUILD index 1d5331ed2c6..bb71f05cd9b 100644 --- a/main/poppler-gtk/APKBUILD +++ b/main/poppler-gtk/APKBUILD @@ -33,7 +33,10 @@ prepare() { build() { cd "$srcdir"/$_realname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ diff --git a/main/poppler-qt4/APKBUILD b/main/poppler-qt4/APKBUILD index d9ed0bc231d..78741975527 100644 --- a/main/poppler-qt4/APKBUILD +++ b/main/poppler-qt4/APKBUILD @@ -35,7 +35,10 @@ prepare() { build() { cd "$srcdir"/$_realname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ diff --git a/main/poppler/APKBUILD b/main/poppler/APKBUILD index fda7ba9027b..47b3e6f5330 100644 --- a/main/poppler/APKBUILD +++ b/main/poppler/APKBUILD @@ -19,7 +19,10 @@ source="http://$pkgname.freedesktop.org/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ diff --git a/main/popt/APKBUILD b/main/popt/APKBUILD index 33fa56032ff..e5d902c44eb 100644 --- a/main/popt/APKBUILD +++ b/main/popt/APKBUILD @@ -11,10 +11,12 @@ makedepends="!libiconv-dev" source="http://rpm5.org/files/$pkgname/$pkgname-$pkgver.tar.gz" subpackages="$pkgname-doc $pkgname-dev" -build () -{ +build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --libdir=/lib \ --disable-static \ || return 1 diff --git a/main/portaudio/APKBUILD b/main/portaudio/APKBUILD index 4ca739e9808..8fb8b917ee8 100644 --- a/main/portaudio/APKBUILD +++ b/main/portaudio/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ || return 1 make || return 1 } diff --git a/main/postgresql/APKBUILD b/main/postgresql/APKBUILD index 6de9ceb1513..18d33c61795 100644 --- a/main/postgresql/APKBUILD +++ b/main/postgresql/APKBUILD @@ -31,7 +31,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --with-openssl \ || return 1 diff --git a/main/pound/APKBUILD b/main/pound/APKBUILD index 7af602ffb13..7fe7c10cb96 100644 --- a/main/pound/APKBUILD +++ b/main/pound/APKBUILD @@ -25,7 +25,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr --sysconfdir=/etc/pound + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc/pound \ + || return 1 make || return 1 } diff --git a/main/ppp/APKBUILD b/main/ppp/APKBUILD index 162d6da0f90..57cc8966abd 100644 --- a/main/ppp/APKBUILD +++ b/main/ppp/APKBUILD @@ -49,7 +49,11 @@ build () { sed -i "s:^#CBCP=y:CBCP=y:" pppd/Makefile.linux # Fix build error with recent kernels rm include/linux/if_pppol2tp.h - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make COPTS="$CFLAGS" || return 1 } diff --git a/main/printproto/APKBUILD b/main/printproto/APKBUILD index dc1c0b415cc..82e0eb4f038 100644 --- a/main/printproto/APKBUILD +++ b/main/printproto/APKBUILD @@ -13,7 +13,11 @@ source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.t build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/privoxy/APKBUILD b/main/privoxy/APKBUILD index 04b8265f789..33be30fa318 100644 --- a/main/privoxy/APKBUILD +++ b/main/privoxy/APKBUILD @@ -31,7 +31,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --localstatedir=/var/ \ --enable-zlib \ --enable-dynamic-pcre \ diff --git a/main/procps/APKBUILD b/main/procps/APKBUILD index e306be5bce4..f383a1949cd 100644 --- a/main/procps/APKBUILD +++ b/main/procps/APKBUILD @@ -19,7 +19,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/ \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/ \ --bindir=/bin \ --sbindir=/sbin \ --libdir=/lib \ @@ -30,7 +33,8 @@ build() { --disable-w-from \ --disable-kill \ --disable-rpath \ - --with-ncurses + --with-ncurses \ + || return 1 make || return 1 } diff --git a/main/psqlodbc/APKBUILD b/main/psqlodbc/APKBUILD index 1ba7ae7a511..a744b1b16c3 100644 --- a/main/psqlodbc/APKBUILD +++ b/main/psqlodbc/APKBUILD @@ -15,7 +15,11 @@ _builddir="$srcdir/$pkgname-$pkgver" build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/pth/APKBUILD b/main/pth/APKBUILD index 7882289c435..5ce83025210 100644 --- a/main/pth/APKBUILD +++ b/main/pth/APKBUILD @@ -22,10 +22,14 @@ build () { patch -p1 < $i || return 1 done - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ - --mandir=/usr/share/man + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/putty/APKBUILD b/main/putty/APKBUILD index e678cfb6ce6..667dee6a375 100644 --- a/main/putty/APKBUILD +++ b/main/putty/APKBUILD @@ -32,7 +32,11 @@ build() { sed -i 's#$(INSTALL_PROGRAM) -m 755 putty $(DESTDIR)$(bindir)/putty##' Makefile.in sed -i 's#$(INSTALL_PROGRAM) -m 755 puttytel $(DESTDIR)$(bindir)/puttytel##' Makefile.in - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make all-cli || return 1 } diff --git a/main/pwgen/APKBUILD b/main/pwgen/APKBUILD index c8fa1b99dac..16a0c568559 100644 --- a/main/pwgen/APKBUILD +++ b/main/pwgen/APKBUILD @@ -16,10 +16,14 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/py-cairo/APKBUILD b/main/py-cairo/APKBUILD index 83ce38403ca..2353d1dcb1b 100644 --- a/main/py-cairo/APKBUILD +++ b/main/py-cairo/APKBUILD @@ -21,7 +21,8 @@ prepare() { build() { cd "$_builddir" ./waf configure --prefix=/usr || return 1 -# ./configure --prefix=/usr \ +# ./configure \ +# --prefix=/usr \ # --sysconfdir=/etc \ # --mandir=/usr/share/man \ # --infodir=/usr/share/info \ diff --git a/main/py-dbus/APKBUILD b/main/py-dbus/APKBUILD index eb35109855a..0117fa0f18c 100644 --- a/main/py-dbus/APKBUILD +++ b/main/py-dbus/APKBUILD @@ -14,7 +14,10 @@ source="http://dbus.freedesktop.org/releases/dbus-python/dbus-python-$pkgver.tar _builddir="$srcdir"/dbus-python-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ || return 1 make || return 1 make test || return 1 diff --git a/main/py-gnome/APKBUILD b/main/py-gnome/APKBUILD index e34b55768c4..43a6d73b0dd 100644 --- a/main/py-gnome/APKBUILD +++ b/main/py-gnome/APKBUILD @@ -26,10 +26,14 @@ prepare() { build() { cd "$_builddir" LIBS="$(pkg-config gobject-2.0 --libs)" \ - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/py-gobject/APKBUILD b/main/py-gobject/APKBUILD index 0fe0d19b318..8fe8cb2373f 100644 --- a/main/py-gobject/APKBUILD +++ b/main/py-gobject/APKBUILD @@ -21,7 +21,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/py-gobject3/APKBUILD b/main/py-gobject3/APKBUILD index c6b33ccd047..c60f660aafd 100644 --- a/main/py-gobject3/APKBUILD +++ b/main/py-gobject3/APKBUILD @@ -21,7 +21,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/py-gst/APKBUILD b/main/py-gst/APKBUILD index 9382a08074f..9a6d6dcfe99 100644 --- a/main/py-gst/APKBUILD +++ b/main/py-gst/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/py-gtk/APKBUILD b/main/py-gtk/APKBUILD index 48243c1f5e8..7e9cf6c8564 100644 --- a/main/py-gtk/APKBUILD +++ b/main/py-gtk/APKBUILD @@ -33,7 +33,11 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/python/APKBUILD b/main/python/APKBUILD index 0f79882c4d2..5de5a9d7a7a 100644 --- a/main/python/APKBUILD +++ b/main/python/APKBUILD @@ -33,7 +33,10 @@ prepare() { build() { cd "$srcdir/Python-$pkgver" export OPT="$CFLAGS" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-shared \ --with-threads \ --enable-ipv6 \ diff --git a/main/qemu/APKBUILD b/main/qemu/APKBUILD index 921b2983743..58c44eeabd3 100644 --- a/main/qemu/APKBUILD +++ b/main/qemu/APKBUILD @@ -97,7 +97,10 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --audio-drv-list=oss,alsa,sdl \ --enable-vde \ diff --git a/main/qpdf/APKBUILD b/main/qpdf/APKBUILD index 597e0214d9e..3cffa9bfd6c 100644 --- a/main/qpdf/APKBUILD +++ b/main/qpdf/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/qt/APKBUILD b/main/qt/APKBUILD index 95fecd19231..4cf6ba8720e 100644 --- a/main/qt/APKBUILD +++ b/main/qt/APKBUILD @@ -49,6 +49,7 @@ build() { export QT4DIR="$_builddir" export PATH="${QT4DIR}/bin:${PATH}" export LD_LIBRARY_PATH=${QT4DIR}/lib:${LD_LIBRARY_PATH} + # note: not autotools ./configure -confirm-license -opensource \ -prefix /usr \ -docdir /usr/share/doc/qt \ diff --git a/main/quagga/APKBUILD b/main/quagga/APKBUILD index bbf69bc036b..fed1530e5f7 100644 --- a/main/quagga/APKBUILD +++ b/main/quagga/APKBUILD @@ -36,7 +36,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ --enable-ipv6 \ --enable-ospf6d \ diff --git a/main/radvd/APKBUILD b/main/radvd/APKBUILD index 8358c39aaed..fe964793e78 100644 --- a/main/radvd/APKBUILD +++ b/main/radvd/APKBUILD @@ -31,7 +31,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc/ \ --with-pidfile=/var/run/radvd/radvd.pid \ || return 1 diff --git a/main/randrproto/APKBUILD b/main/randrproto/APKBUILD index 93ee41d3df8..dd1965f0a59 100644 --- a/main/randrproto/APKBUILD +++ b/main/randrproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.t build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/rarian/APKBUILD b/main/rarian/APKBUILD index 2818f06a32b..635f32f03ae 100644 --- a/main/rarian/APKBUILD +++ b/main/rarian/APKBUILD @@ -16,11 +16,15 @@ build () { cd "$srcdir"/$pkgname-$pkgver patch -p0 -i "$srcdir"/user-segfault.patch || return 1 - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-scrollkeeper-compat \ - --disable-static || return 1 + --disable-static \ + || return 1 make || return 1 } diff --git a/main/rdesktop/APKBUILD b/main/rdesktop/APKBUILD index 89f11058bb5..6ca11e502bb 100644 --- a/main/rdesktop/APKBUILD +++ b/main/rdesktop/APKBUILD @@ -14,8 +14,12 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --with-sound=ao + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --with-sound=ao \ + || return 1 make || return 1 } diff --git a/main/re2c/APKBUILD b/main/re2c/APKBUILD index 8d994b43735..1a7362bbf69 100644 --- a/main/re2c/APKBUILD +++ b/main/re2c/APKBUILD @@ -23,10 +23,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/readline/APKBUILD b/main/readline/APKBUILD index 4fa4dc6232a..12fa5501baf 100644 --- a/main/readline/APKBUILD +++ b/main/readline/APKBUILD @@ -35,9 +35,12 @@ prepare() { build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make SHLIB_LIBS=-lncurses || return 1 } diff --git a/main/recordmydesktop/APKBUILD b/main/recordmydesktop/APKBUILD index a1996adb9f3..12cc3fe5153 100644 --- a/main/recordmydesktop/APKBUILD +++ b/main/recordmydesktop/APKBUILD @@ -31,7 +31,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-jack \ || return 1 } diff --git a/main/recordproto/APKBUILD b/main/recordproto/APKBUILD index 9df8736fd29..599ea48d2e9 100644 --- a/main/recordproto/APKBUILD +++ b/main/recordproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.t build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/reiserfsprogs/APKBUILD b/main/reiserfsprogs/APKBUILD index 9f9a88fd92c..49a0f7b41a9 100644 --- a/main/reiserfsprogs/APKBUILD +++ b/main/reiserfsprogs/APKBUILD @@ -22,10 +22,14 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/remmina-xfce/APKBUILD b/main/remmina-xfce/APKBUILD index 406e8a026aa..96afcda0c16 100644 --- a/main/remmina-xfce/APKBUILD +++ b/main/remmina-xfce/APKBUILD @@ -16,7 +16,10 @@ _builddir="$srcdir"/$pkgname-$pkgver build () { cd $srcdir/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ || return 1 make || return 1 } diff --git a/main/renderproto/APKBUILD b/main/renderproto/APKBUILD index 03a3c186b67..8fee7398335 100644 --- a/main/renderproto/APKBUILD +++ b/main/renderproto/APKBUILD @@ -13,7 +13,11 @@ source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.t build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install || return 1 install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING diff --git a/main/resourceproto/APKBUILD b/main/resourceproto/APKBUILD index 8061f59f26f..4e14da433f3 100644 --- a/main/resourceproto/APKBUILD +++ b/main/resourceproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver. build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/rest/APKBUILD b/main/rest/APKBUILD index 210833313f4..5fcfcfd6120 100644 --- a/main/rest/APKBUILD +++ b/main/rest/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ --enable-introspection \ --without-gnome \ diff --git a/main/rgb/APKBUILD b/main/rgb/APKBUILD index 5d1cc8b8284..e84d2d37101 100644 --- a/main/rgb/APKBUILD +++ b/main/rgb/APKBUILD @@ -13,7 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/ristretto/APKBUILD b/main/ristretto/APKBUILD index 00f73038b43..c6e6a3b1020 100644 --- a/main/ristretto/APKBUILD +++ b/main/ristretto/APKBUILD @@ -24,7 +24,10 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-debug \ diff --git a/main/rp-pppoe/APKBUILD b/main/rp-pppoe/APKBUILD index a9d89c12a96..c1b7b515949 100644 --- a/main/rp-pppoe/APKBUILD +++ b/main/rp-pppoe/APKBUILD @@ -19,12 +19,16 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir"/src - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --enable-plugin=/usr/include/pppd - make all || return 1 + --enable-plugin=/usr/include/pppd \ + || return 1 + make all || return 1 } package() { diff --git a/main/rpcbind/APKBUILD b/main/rpcbind/APKBUILD index 92774d5ebb0..b0318d8bd72 100644 --- a/main/rpcbind/APKBUILD +++ b/main/rpcbind/APKBUILD @@ -25,7 +25,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr --bindir=/sbin + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --bindir=/sbin \ + || return 1 make || return 1 } diff --git a/main/rrdcollect/APKBUILD b/main/rrdcollect/APKBUILD index 5cebb462ed2..def4b88f5fb 100644 --- a/main/rrdcollect/APKBUILD +++ b/main/rrdcollect/APKBUILD @@ -30,7 +30,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --localstatedir=/var \ --sysconfdir=/etc/rrdcollect \ --mandir=/usr/share/man \ diff --git a/main/rrdtool/APKBUILD b/main/rrdtool/APKBUILD index a51ec6ad21e..f9abbb09b0f 100644 --- a/main/rrdtool/APKBUILD +++ b/main/rrdtool/APKBUILD @@ -29,7 +29,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-nls \ --disable-tcl \ --disable-ruby \ diff --git a/main/rsync/APKBUILD b/main/rsync/APKBUILD index ed226d7c356..858a7f60183 100644 --- a/main/rsync/APKBUILD +++ b/main/rsync/APKBUILD @@ -16,10 +16,20 @@ source="http://$pkgname.samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.gz " subpackages="$pkgname-doc" -build() { - cd "$srcdir/$pkgname-$pkgver" +_builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + cd "$_builddir" ./prepare-source || return 1 - ./configure --prefix=/usr || return 1 +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/rsyslog/APKBUILD b/main/rsyslog/APKBUILD index c43cc4ab2bc..a145aae4bbb 100644 --- a/main/rsyslog/APKBUILD +++ b/main/rsyslog/APKBUILD @@ -23,6 +23,8 @@ prepare() { cd "$_builddir" export LDFLAGS="-lestr" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --disable-gui \ --disable-rfc3195 \ --enable-largefile \ @@ -40,7 +42,8 @@ prepare() { --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 } build() { diff --git a/main/rt4/APKBUILD b/main/rt4/APKBUILD index 1621ed11a02..82e064ad91e 100644 --- a/main/rt4/APKBUILD +++ b/main/rt4/APKBUILD @@ -121,7 +121,10 @@ EOF build() { cd "$_builddir" - ./configure --enable-layout=Alpine \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --enable-layout=Alpine \ --with-rt-group=rt4 \ --with-web-group=rt4 \ --with-web-user=rt4 \ diff --git a/main/rtorrent/APKBUILD b/main/rtorrent/APKBUILD index 0bd70d8dad6..24399d2fcaf 100644 --- a/main/rtorrent/APKBUILD +++ b/main/rtorrent/APKBUILD @@ -12,22 +12,24 @@ subpackages="$pkgname-doc" source="http://libtorrent.rakshasa.no/downloads/${pkgname}-${pkgver}.tar.gz" build() { - cd "$srcdir"/$pkgname-$pkgver + cd "$srcdir"/$pkgname-$pkgver - export LDFLAGS="$LDFLAGS -lpthread" - ./configure \ - --prefix=/usr \ - --disable-debug \ - --with-xmlrpc-c \ - || return 1 + export LDFLAGS="$LDFLAGS -lpthread" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-debug \ + --with-xmlrpc-c \ + || return 1 - make || return 1 + make || return 1 } package() { - cd "$srcdir"/$pkgname-$pkgver - make DESTDIR="$pkgdir" install - install -D doc/rtorrent.rc "$pkgdir"/usr/share/doc/rtorrent/rtorrent.r + cd "$srcdir"/$pkgname-$pkgver + make DESTDIR="$pkgdir" install + install -D doc/rtorrent.rc "$pkgdir"/usr/share/doc/rtorrent/rtorrent.r } md5sums="0bf2f262faa8c8c8d3b11ce286ea2bf2 rtorrent-0.9.3.tar.gz" diff --git a/main/rtpproxy/APKBUILD b/main/rtpproxy/APKBUILD index dbc42e774d1..4725332a3a1 100644 --- a/main/rtpproxy/APKBUILD +++ b/main/rtpproxy/APKBUILD @@ -29,10 +29,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/ruby/APKBUILD b/main/ruby/APKBUILD index 9da0f6d940b..4f39d613661 100644 --- a/main/ruby/APKBUILD +++ b/main/ruby/APKBUILD @@ -65,11 +65,17 @@ build() { # ruby saves path to install. we want use $PATH export INSTALL=install - # the configure script does not detect isnan/isinf as macros - ac_cv_func_isnan=yes \ - ac_cv_func_isinf=yes \ + case "$CLIBC" in + uclibc) + # the configure script does not detect isnan/isinf as macros + export ac_cv_func_isnan=yes + export ac_cv_func_isinf=yes + ;; + esac + ./configure \ - --build=${CHOST:-i486-alpine-linux-uclibc} \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ diff --git a/main/run-parts/APKBUILD b/main/run-parts/APKBUILD index 2a98f09cb46..293480e32a1 100644 --- a/main/run-parts/APKBUILD +++ b/main/run-parts/APKBUILD @@ -12,7 +12,11 @@ source="http://ftp.de.debian.org/debian/pool/main/d/debianutils/debianutils_${pk build () { cd $srcdir/debianutils-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make } diff --git a/main/rxvt-unicode/APKBUILD b/main/rxvt-unicode/APKBUILD index 756e06020b7..aa73472f47d 100644 --- a/main/rxvt-unicode/APKBUILD +++ b/main/rxvt-unicode/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-terminfo=/usr/share/terminfo \ --enable-256-color \ --enable-font-styles \ diff --git a/main/samba/APKBUILD b/main/samba/APKBUILD index d0fb47c9d26..596348cd9c6 100644 --- a/main/samba/APKBUILD +++ b/main/samba/APKBUILD @@ -30,7 +30,10 @@ prepare() { build() { cd "$_builddir"/source3 - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc/samba \ --with-configdir=/etc/samba \ --localstatedir=/var \ @@ -47,7 +50,8 @@ build() { --enable-external-libtalloc \ --disable-nss-wrapper \ --disable-dnssd \ - --disable-swat + --disable-swat \ + || return 1 make || return 1 } diff --git a/main/screen/APKBUILD b/main/screen/APKBUILD index bcf2849a5ef..378a771466c 100644 --- a/main/screen/APKBUILD +++ b/main/screen/APKBUILD @@ -21,7 +21,10 @@ build() { patch -p1 < $i || return 1 done - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/scrnsaverproto/APKBUILD b/main/scrnsaverproto/APKBUILD index 8d4f5fd229c..e391421b5dd 100644 --- a/main/scrnsaverproto/APKBUILD +++ b/main/scrnsaverproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver. build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/scrot/APKBUILD b/main/scrot/APKBUILD index a11a79c2de1..781d56915be 100644 --- a/main/scrot/APKBUILD +++ b/main/scrot/APKBUILD @@ -13,7 +13,12 @@ source="http://linuxbrit.co.uk/downloads/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/sdl/APKBUILD b/main/sdl/APKBUILD index b58047148e2..ba9b6bb51cd 100644 --- a/main/sdl/APKBUILD +++ b/main/sdl/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-nasm \ --disable-esd \ --disable-video-svga \ @@ -35,7 +38,8 @@ build() { --enable-alsa \ --with-x \ --disable-rpath \ - --disable-nls + --disable-nls \ + || return 1 make } diff --git a/main/sdl_image/APKBUILD b/main/sdl_image/APKBUILD index e49faded1ab..7c02b18bda5 100644 --- a/main/sdl_image/APKBUILD +++ b/main/sdl_image/APKBUILD @@ -27,10 +27,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/sdl_mixer/APKBUILD b/main/sdl_mixer/APKBUILD index f6ff767636e..7254cdd751b 100644 --- a/main/sdl_mixer/APKBUILD +++ b/main/sdl_mixer/APKBUILD @@ -25,11 +25,15 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --enable-music-mod + --enable-music-mod \ + || return 1 make || return 1 } diff --git a/main/sed/APKBUILD b/main/sed/APKBUILD index 21a8f61b223..f2e2b1422ed 100644 --- a/main/sed/APKBUILD +++ b/main/sed/APKBUILD @@ -14,12 +14,16 @@ source="ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --bindir=/bin \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-i18n \ - --disable-nls + --disable-nls \ + || return 1 make || return 1 } diff --git a/main/sessreg/APKBUILD b/main/sessreg/APKBUILD index 68824d5d7ef..eb5b7f75037 100644 --- a/main/sessreg/APKBUILD +++ b/main/sessreg/APKBUILD @@ -13,7 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/setxkbmap/APKBUILD b/main/setxkbmap/APKBUILD index 287586fd524..766cc56971d 100644 --- a/main/setxkbmap/APKBUILD +++ b/main/setxkbmap/APKBUILD @@ -14,7 +14,11 @@ build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 make DESTDIR=""$pkgdir"" install || return 1 } diff --git a/main/sfic/APKBUILD b/main/sfic/APKBUILD index 14d28a5f318..46c5afaac21 100644 --- a/main/sfic/APKBUILD +++ b/main/sfic/APKBUILD @@ -30,7 +30,11 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/sg3_utils/APKBUILD b/main/sg3_utils/APKBUILD index 9b082816901..b52278e2867 100644 --- a/main/sg3_utils/APKBUILD +++ b/main/sg3_utils/APKBUILD @@ -22,10 +22,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/shared-mime-info/APKBUILD b/main/shared-mime-info/APKBUILD index 73845cb6678..68d4e7c6e3c 100644 --- a/main/shared-mime-info/APKBUILD +++ b/main/shared-mime-info/APKBUILD @@ -15,8 +15,12 @@ source="http://freedesktop.org/~hadess/$pkgname-$pkgver.tar.xz" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --disable-update-mimedb || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-update-mimedb \ + || return 1 make -j1 } diff --git a/main/shotwell/APKBUILD b/main/shotwell/APKBUILD index c4220325046..7ee880f0118 100644 --- a/main/shotwell/APKBUILD +++ b/main/shotwell/APKBUILD @@ -32,9 +32,13 @@ prepare() { build () { cd $srcdir/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-desktop-update \ - --disable-icon-update + --disable-icon-update \ + || return 1 make } diff --git a/main/sipsak/APKBUILD b/main/sipsak/APKBUILD index 13b11ff37a4..b93d5a815ca 100644 --- a/main/sipsak/APKBUILD +++ b/main/sipsak/APKBUILD @@ -16,11 +16,13 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - || return 1 + || return 1 make || return 1 } diff --git a/main/slang/APKBUILD b/main/slang/APKBUILD index 486e74cde22..7f13a9f0f37 100644 --- a/main/slang/APKBUILD +++ b/main/slang/APKBUILD @@ -24,7 +24,10 @@ prepare () { build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ || return 1 make -j1 elf static || return 1 diff --git a/main/smartmontools/APKBUILD b/main/smartmontools/APKBUILD index ffd1d9cda35..68130d849ce 100644 --- a/main/smartmontools/APKBUILD +++ b/main/smartmontools/APKBUILD @@ -16,7 +16,12 @@ source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.t build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --sysconfdir=/etc + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/smokeping/APKBUILD b/main/smokeping/APKBUILD index f97d2840511..24f5de44abc 100644 --- a/main/smokeping/APKBUILD +++ b/main/smokeping/APKBUILD @@ -44,7 +44,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --bindir=/usr/bin \ --libdir=/usr/lib \ --sysconfdir=/etc/smokeping \ diff --git a/main/smstools/APKBUILD b/main/smstools/APKBUILD index 732a48a79a0..f4898731eda 100644 --- a/main/smstools/APKBUILD +++ b/main/smstools/APKBUILD @@ -28,10 +28,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/snort/APKBUILD b/main/snort/APKBUILD index 325a43e17f6..5d7d28e126b 100644 --- a/main/snort/APKBUILD +++ b/main/snort/APKBUILD @@ -44,12 +44,16 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --enable-ipv6 \ - --enable-gre + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-ipv6 \ + --enable-gre \ + || return 1 make || return 1 } diff --git a/main/socat/APKBUILD b/main/socat/APKBUILD index 81d2dc22272..e25aaf942fc 100644 --- a/main/socat/APKBUILD +++ b/main/socat/APKBUILD @@ -15,7 +15,11 @@ source="http://www.dest-unreach.org/$pkgname/download/$pkgname-$pkgver.tar.bz2" _builddir="$srcdir/$pkgname-$pkgver" build() { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/sox/APKBUILD b/main/sox/APKBUILD index 5822e611a10..53ec5793d3d 100644 --- a/main/sox/APKBUILD +++ b/main/sox/APKBUILD @@ -26,10 +26,14 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --with-dyn-default \ - --with-distro="Alpine Linux" || return 1 + --with-distro="Alpine Linux" \ + || return 1 make || return 1 } diff --git a/main/spandsp/APKBUILD b/main/spandsp/APKBUILD index b9d4ed9bb0c..de0c7426e75 100644 --- a/main/spandsp/APKBUILD +++ b/main/spandsp/APKBUILD @@ -19,10 +19,14 @@ _builddir="$srcdir"/$pkgname-0.0.6 build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/speex/APKBUILD b/main/speex/APKBUILD index 9c29dc84d34..f9ac9b64341 100644 --- a/main/speex/APKBUILD +++ b/main/speex/APKBUILD @@ -20,10 +20,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/spice-gtk/APKBUILD b/main/spice-gtk/APKBUILD index 7400273e935..08323c65a9d 100644 --- a/main/spice-gtk/APKBUILD +++ b/main/spice-gtk/APKBUILD @@ -33,7 +33,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --with-gtk=3.0 \ diff --git a/main/spice-protocol/APKBUILD b/main/spice-protocol/APKBUILD index 263942fbee3..194b69a0b7a 100644 --- a/main/spice-protocol/APKBUILD +++ b/main/spice-protocol/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ || return 1 make || return 1 } diff --git a/main/spice/APKBUILD b/main/spice/APKBUILD index 5b5c73a4a77..08fae70d39f 100644 --- a/main/spice/APKBUILD +++ b/main/spice/APKBUILD @@ -30,7 +30,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/sqlite/APKBUILD b/main/sqlite/APKBUILD index 1a48d5f7569..08b605831f3 100644 --- a/main/sqlite/APKBUILD +++ b/main/sqlite/APKBUILD @@ -37,7 +37,10 @@ build() { cd "$_builddir" export LTLINK_EXTRAS="-ldl" export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_RTREE=1 -DSQLITE_USE_URI -Iext/fts3" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-threadsafe \ --disable-static \ --enable-readline \ diff --git a/main/sqsh/APKBUILD b/main/sqsh/APKBUILD index c424c42c1bc..5e2ea2f9a61 100644 --- a/main/sqsh/APKBUILD +++ b/main/sqsh/APKBUILD @@ -29,11 +29,14 @@ build() { cd "$_builddir" SYBASE=/usr export SYBASE - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/doc \ -# --with-x \ - --with-readline + --with-readline \ + || return 1 make || return 1 } diff --git a/main/squid/APKBUILD b/main/squid/APKBUILD index 1d5f12fc5a4..a4b40a07a22 100644 --- a/main/squid/APKBUILD +++ b/main/squid/APKBUILD @@ -44,7 +44,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --datadir=/usr/share/squid \ --sysconfdir=/etc/squid \ --libexecdir=/usr/lib/squid \ diff --git a/main/sshfs/APKBUILD b/main/sshfs/APKBUILD index 31ffb8df2b1..75407d35379 100644 --- a/main/sshfs/APKBUILD +++ b/main/sshfs/APKBUILD @@ -14,7 +14,11 @@ _builddir="$srcdir"/sshfs-fuse-$pkgver build () { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/sshguard/APKBUILD b/main/sshguard/APKBUILD index a337bbfc637..79d5e4d521e 100644 --- a/main/sshguard/APKBUILD +++ b/main/sshguard/APKBUILD @@ -30,7 +30,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-firewall=iptables \ || return 1 make || return 1 diff --git a/main/sshpass/APKBUILD b/main/sshpass/APKBUILD index c47f23ffc32..0162d35f70d 100644 --- a/main/sshpass/APKBUILD +++ b/main/sshpass/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/ssmtp/APKBUILD b/main/ssmtp/APKBUILD index d8ee553a242..ee4019674a8 100644 --- a/main/ssmtp/APKBUILD +++ b/main/ssmtp/APKBUILD @@ -31,10 +31,14 @@ build() { cd "$_builddir" sed -i -e 's:$(CC) -o:$(CC) @LDFLAGS@ -o:' Makefile.in - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --sysconfdir=/etc \ - --enable-ssl + --enable-ssl \ + || return 1 make } diff --git a/main/startup-notification/APKBUILD b/main/startup-notification/APKBUILD index 49014bf1c5d..4111bce7ff6 100644 --- a/main/startup-notification/APKBUILD +++ b/main/startup-notification/APKBUILD @@ -14,7 +14,10 @@ source="http://www.freedesktop.org/software/$pkgname/releases/$pkgname-$pkgver.t depends_dev="libsm-dev xcb-util-dev" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --localstatedir=/var \ --sysconfdir=/etc \ || return 1 diff --git a/main/strace/APKBUILD b/main/strace/APKBUILD index 81c8349a449..fab598ff39f 100644 --- a/main/strace/APKBUILD +++ b/main/strace/APKBUILD @@ -17,8 +17,11 @@ build () #changes in kernel headers in 2.6.32 sed -i -e 's/include <linux\/socket.h>/include <sys\/socket.h>/g' \ configure - ./configure --prefix=/usr \ - + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/subversion/APKBUILD b/main/subversion/APKBUILD index 8e8e5ee1091..a6d79376280 100644 --- a/main/subversion/APKBUILD +++ b/main/subversion/APKBUILD @@ -33,7 +33,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-nls \ --with-apxs \ --with-apache-libexecdir \ @@ -41,7 +44,8 @@ build() { --disable-javahl \ --disable-static \ --enable-disallowing-of-undefined-references \ - --without-jdk + --without-jdk \ + || return 1 make all || return 1 make swig-pl-lib || return 1 diff --git a/main/sudo/APKBUILD b/main/sudo/APKBUILD index 818ff148415..aa266058f7d 100644 --- a/main/sudo/APKBUILD +++ b/main/sudo/APKBUILD @@ -30,9 +30,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --build=${CBUILD} \ - --host=${CHOST} \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-env-editor \ --without-pam \ --without-skey \ diff --git a/main/swfdec-mozilla/APKBUILD b/main/swfdec-mozilla/APKBUILD index 984cb2308d6..40e462cb482 100644 --- a/main/swfdec-mozilla/APKBUILD +++ b/main/swfdec-mozilla/APKBUILD @@ -13,9 +13,13 @@ source="http://swfdec.freedesktop.org/download/$pkgname/0.8/$pkgname-$pkgver.tar build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ - --with-plugin-dir=/usr/lib/mozilla/plugins/ + --with-plugin-dir=/usr/lib/mozilla/plugins/ \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install find "$pkgdir" -name '*.la' -delete diff --git a/main/swfdec/APKBUILD b/main/swfdec/APKBUILD index ee22c23565a..128c2dc3427 100644 --- a/main/swfdec/APKBUILD +++ b/main/swfdec/APKBUILD @@ -17,12 +17,16 @@ source="http://$pkgname.freedesktop.org/download/$pkgname/0.8/$pkgname-$pkgver.t build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ --enable-gtk \ --enable-gstreamer \ --enable-soup \ - --with-audio=alsa + --with-audio=alsa \ + || return 1 make || return 1 } diff --git a/main/swig/APKBUILD b/main/swig/APKBUILD index 2f9a30b59ac..3549002d881 100644 --- a/main/swig/APKBUILD +++ b/main/swig/APKBUILD @@ -12,7 +12,11 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/swish-e/APKBUILD b/main/swish-e/APKBUILD index cc40b53b5c9..9b9af9a2645 100644 --- a/main/swish-e/APKBUILD +++ b/main/swish-e/APKBUILD @@ -16,10 +16,14 @@ source="http://www.swish-e.org/distribution/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/sylpheed/APKBUILD b/main/sylpheed/APKBUILD index 5dcbc61eaae..fdc49c10329 100644 --- a/main/sylpheed/APKBUILD +++ b/main/sylpheed/APKBUILD @@ -24,9 +24,13 @@ prepare() { build() { cd "$srcdir/sylpheed-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-ldap \ - --disable-gtkspell || return 1 + --disable-gtkspell \ + || return 1 make || return 1 } diff --git a/main/sysfsutils/APKBUILD b/main/sysfsutils/APKBUILD index e334e2bb640..5b086068549 100644 --- a/main/sysfsutils/APKBUILD +++ b/main/sysfsutils/APKBUILD @@ -13,8 +13,12 @@ source="http://downloads.sourceforge.net/sourceforge/linux-diag/$pkgname-$pkgver build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --mandir=/usr/share/man + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/sysstat/APKBUILD b/main/sysstat/APKBUILD index c3b687df1d4..c7cd0b81767 100644 --- a/main/sysstat/APKBUILD +++ b/main/sysstat/APKBUILD @@ -14,11 +14,15 @@ source="http://pagesperso-orange.fr/sebastien.godard/sysstat-$pkgver.tar.gz" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --disable-nls + --disable-nls \ + || return 1 make || return 1 } diff --git a/main/talloc/APKBUILD b/main/talloc/APKBUILD index 979e234f6cb..d53483b8c2f 100644 --- a/main/talloc/APKBUILD +++ b/main/talloc/APKBUILD @@ -29,9 +29,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-python \ - --sysconfdir=/etc || return 1 + --sysconfdir=/etc \ + || return 1 make || return 1 } diff --git a/main/tango-icon-theme/APKBUILD b/main/tango-icon-theme/APKBUILD index ecc608f85be..21a84c0faeb 100644 --- a/main/tango-icon-theme/APKBUILD +++ b/main/tango-icon-theme/APKBUILD @@ -13,7 +13,11 @@ source="http://tango.freedesktop.org/releases/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver build () { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/tar/APKBUILD b/main/tar/APKBUILD index 9ef8468786a..a9f28dbe29e 100644 --- a/main/tar/APKBUILD +++ b/main/tar/APKBUILD @@ -22,8 +22,12 @@ prepare() { build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ - --mandir=/usr/share/man + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/tcl/APKBUILD b/main/tcl/APKBUILD index 5f8f0c54449..94f989a10fc 100644 --- a/main/tcl/APKBUILD +++ b/main/tcl/APKBUILD @@ -8,19 +8,33 @@ arch="all" license="TCL" depends= makedepends="" -source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname$pkgver-src.tar.gz" +source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname$pkgver-src.tar.gz + tcl-stat64.patch + " subpackages="$pkgname-doc $pkgname-dev" _major=${pkgver%.*} - _builddir="$srcdir"/tcl${pkgver}/unix + +prepare() { + cd "$srcdir"/tcl${pkgver} + for i in $source; do + case $i in + *.patch) msg "$i"; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + build() { local _64bit="--disable-64bit" case "$CARCH" in x86_64) _64bit="--enable-64bit";; esac cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ $_64bit \ || return 1 @@ -47,6 +61,9 @@ dev() { done } -md5sums="573aa5fe678e9185ef2b3c56b24658d3 tcl8.6.0-src.tar.gz" -sha256sums="354422b9c4791685499123b2dfe01faa98b555c08906c010cb4449ddc75dcade tcl8.6.0-src.tar.gz" -sha512sums="ea64d2bb5b37b55bc424c759c67b5624e7d9a13b8bede744fd635cf668ff9e4a8681e41d94849f6c0a3564ee177268cbc3e5f287448b5a93179098d678e321f8 tcl8.6.0-src.tar.gz" +md5sums="573aa5fe678e9185ef2b3c56b24658d3 tcl8.6.0-src.tar.gz +5828445dcdebfbc761caecadf624bf1a tcl-stat64.patch" +sha256sums="354422b9c4791685499123b2dfe01faa98b555c08906c010cb4449ddc75dcade tcl8.6.0-src.tar.gz +ce1b6f1eab4445337c82d4c56f8d4483e312d7f65769b5e8cd7a72fdc2ac5ff5 tcl-stat64.patch" +sha512sums="ea64d2bb5b37b55bc424c759c67b5624e7d9a13b8bede744fd635cf668ff9e4a8681e41d94849f6c0a3564ee177268cbc3e5f287448b5a93179098d678e321f8 tcl8.6.0-src.tar.gz +cd52cbe80fd2be227c9018dbe38fa0888302293402e7a57f2e231c195b7c1902f1b58bc87d19c9d123915ca757e871abf084c0ef23b1a7f187bc03ba93904cc2 tcl-stat64.patch" diff --git a/main/tcpdump/APKBUILD b/main/tcpdump/APKBUILD index d7707dd23d5..34438c3c67d 100644 --- a/main/tcpdump/APKBUILD +++ b/main/tcpdump/APKBUILD @@ -15,6 +15,8 @@ _builddir="$srcdir"/$pkgname-$pkgver build () { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man \ --enable-ipv6 \ diff --git a/main/tcpflow/APKBUILD b/main/tcpflow/APKBUILD index e5c3d3c7282..2addf08f2b1 100644 --- a/main/tcpflow/APKBUILD +++ b/main/tcpflow/APKBUILD @@ -17,6 +17,8 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man \ || return 1 diff --git a/main/testdisk/APKBUILD b/main/testdisk/APKBUILD index 84ca5bda310..fa6bd4fc76f 100644 --- a/main/testdisk/APKBUILD +++ b/main/testdisk/APKBUILD @@ -21,10 +21,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/texinfo/APKBUILD b/main/texinfo/APKBUILD index 121ca9c7d2c..8e0b3abc071 100644 --- a/main/texinfo/APKBUILD +++ b/main/texinfo/APKBUILD @@ -14,15 +14,24 @@ subpackages="$pkgname-doc" _builddir="$srcdir"/texinfo-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR=${pkgdir} install || return 1 + rm -f ${pkgdir}/usr/share/info/dir gzip ${pkgdir}/usr/share/info/* + + rm -rf "$pkgdir"/usr/lib/charset.alias + rmdir -p "$pkgdir"/usr/lib 2>/dev/null + return 0 } md5sums="54e250014fe698fb4832016158747c03 texinfo-5.1.tar.gz" diff --git a/main/tftp-hpa/APKBUILD b/main/tftp-hpa/APKBUILD index 6e4c858c860..a42bf9408b3 100644 --- a/main/tftp-hpa/APKBUILD +++ b/main/tftp-hpa/APKBUILD @@ -16,8 +16,12 @@ source="http://www.kernel.org/pub/software/network/tftp/tftp-hpa/tftp-hpa-$pkgve build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make } diff --git a/main/thunar-archive-plugin/APKBUILD b/main/thunar-archive-plugin/APKBUILD index 5662e96ecfc..35104cded4d 100644 --- a/main/thunar-archive-plugin/APKBUILD +++ b/main/thunar-archive-plugin/APKBUILD @@ -14,11 +14,15 @@ source="http://archive.xfce.org/src/thunar-plugins/thunar-archive-plugin/${pkgve build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/xfce4 \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/thunar-vcs-plugin/APKBUILD b/main/thunar-vcs-plugin/APKBUILD index d8272390b02..c996d8cdd99 100644 --- a/main/thunar-vcs-plugin/APKBUILD +++ b/main/thunar-vcs-plugin/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --libexecdir=/usr/lib/xfce4 \ --disable-static \ --enable-subversion \ diff --git a/main/thunar-volman/APKBUILD b/main/thunar-volman/APKBUILD index d889ff9de19..ac069e484e1 100644 --- a/main/thunar-volman/APKBUILD +++ b/main/thunar-volman/APKBUILD @@ -21,10 +21,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/thunar/APKBUILD b/main/thunar/APKBUILD index 717f8b6f1fa..a95c1821640 100644 --- a/main/thunar/APKBUILD +++ b/main/thunar/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ diff --git a/main/tiff/APKBUILD b/main/tiff/APKBUILD index 2bfdb997a8e..97aa3515246 100644 --- a/main/tiff/APKBUILD +++ b/main/tiff/APKBUILD @@ -30,11 +30,15 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --disable-cxx + --disable-cxx \ + || return 1 make || return 1 } diff --git a/main/tig/APKBUILD b/main/tig/APKBUILD index 62edd3d6613..51903154e87 100644 --- a/main/tig/APKBUILD +++ b/main/tig/APKBUILD @@ -18,6 +18,8 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ diff --git a/main/tinc/APKBUILD b/main/tinc/APKBUILD index 704f032dfca..51118d0aa04 100644 --- a/main/tinc/APKBUILD +++ b/main/tinc/APKBUILD @@ -23,13 +23,17 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-jumbograms \ --enable-lzo \ - --enable-zlib + --enable-zlib \ + || return 1 make || return 1 } diff --git a/main/tinyproxy/APKBUILD b/main/tinyproxy/APKBUILD index 0bcb89648d2..1240e124065 100644 --- a/main/tinyproxy/APKBUILD +++ b/main/tinyproxy/APKBUILD @@ -36,11 +36,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --localstatedir=/var \ --sysconfdir=/etc/tinyproxy \ --disable-dependency-tracking \ - || return + || return 1 make || return 1 } diff --git a/main/tlsdate/APKBUILD b/main/tlsdate/APKBUILD index eb0058e5f17..c072d8ef49b 100644 --- a/main/tlsdate/APKBUILD +++ b/main/tlsdate/APKBUILD @@ -28,9 +28,13 @@ prepare() { build() { cd "$_builddir" autoreconf --install - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ - --sysconfdir=/etc || return 1 + --sysconfdir=/etc \ + || return 1 make CFLAGS+="-DUNPRIV_GROUP='\"nobody\"'" || return 1 } diff --git a/main/tmux/APKBUILD b/main/tmux/APKBUILD index 918ad1b098d..ae5f98a273c 100644 --- a/main/tmux/APKBUILD +++ b/main/tmux/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr\ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ || return 1 make || return 1 } diff --git a/main/transmission/APKBUILD b/main/transmission/APKBUILD index 49bc46e2487..88cc2fa65a3 100644 --- a/main/transmission/APKBUILD +++ b/main/transmission/APKBUILD @@ -36,11 +36,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --localstatedir=/var \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ --enable-utp \ --with-inotify \ || return 1 diff --git a/main/tumbler/APKBUILD b/main/tumbler/APKBUILD index fe814e920de..b24554f528e 100644 --- a/main/tumbler/APKBUILD +++ b/main/tumbler/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/tvheadend/APKBUILD b/main/tvheadend/APKBUILD index 39b26767690..80eb7c76f46 100644 --- a/main/tvheadend/APKBUILD +++ b/main/tvheadend/APKBUILD @@ -32,15 +32,18 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --localstatedir=/var \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ --release \ - --enable-dvbcsa \ + --enable-dvbcsa \ --disable-libav \ - || return 1 + || return 1 make || return 1 } diff --git a/main/ucarp/APKBUILD b/main/ucarp/APKBUILD index 8e8da21eec2..e7639dd42ca 100644 --- a/main/ucarp/APKBUILD +++ b/main/ucarp/APKBUILD @@ -21,11 +21,15 @@ source="http://download.pureftpd.org/pub/ucarp/$pkgname-$pkgver.tar.gz build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --disable-nls + --disable-nls \ + || return 1 make || return 1 } diff --git a/main/udev/APKBUILD b/main/udev/APKBUILD index 7fce39d00b2..390625261cb 100644 --- a/main/udev/APKBUILD +++ b/main/udev/APKBUILD @@ -20,7 +20,10 @@ source="http://www.kernel.org/pub/linux/utils/kernel/hotplug/$pkgname-$pkgver.ta build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --sbindir=/sbin \ --libdir=/usr/lib \ diff --git a/main/udisks/APKBUILD b/main/udisks/APKBUILD index 62b01659187..ab01329b568 100644 --- a/main/udisks/APKBUILD +++ b/main/udisks/APKBUILD @@ -30,7 +30,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/udisks2/APKBUILD b/main/udisks2/APKBUILD index 70c9be167e7..c8bf6620d54 100644 --- a/main/udisks2/APKBUILD +++ b/main/udisks2/APKBUILD @@ -31,7 +31,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/ulogd/APKBUILD b/main/ulogd/APKBUILD index de590c2fd62..72a5181a8fc 100644 --- a/main/ulogd/APKBUILD +++ b/main/ulogd/APKBUILD @@ -21,12 +21,16 @@ _builddir="$srcdir/$pkgname-$pkgver" build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-pgsql \ - --with-mysql + --with-mysql \ + || return 1 make || return 1 } diff --git a/main/umix/APKBUILD b/main/umix/APKBUILD index 97062edfbbb..ec07cc7e087 100644 --- a/main/umix/APKBUILD +++ b/main/umix/APKBUILD @@ -16,10 +16,14 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/unbound/APKBUILD b/main/unbound/APKBUILD index 00639a8bb57..43ac363205b 100644 --- a/main/unbound/APKBUILD +++ b/main/unbound/APKBUILD @@ -35,7 +35,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --with-pidfile=/var/run/unbound/unbound.pid \ --with-username=unbound \ diff --git a/main/unfs3/APKBUILD b/main/unfs3/APKBUILD index d39d77347d4..41c4e580add 100644 --- a/main/unfs3/APKBUILD +++ b/main/unfs3/APKBUILD @@ -14,8 +14,12 @@ subpackages="$pkgname-doc" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ - --mandir=/usr/share/man + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make -j1 || return 1 make DESTDIR="$pkgdir/" install } diff --git a/main/unixodbc/APKBUILD b/main/unixodbc/APKBUILD index 81080280ee4..0b0ceadda6e 100644 --- a/main/unixodbc/APKBUILD +++ b/main/unixodbc/APKBUILD @@ -17,12 +17,16 @@ _builddir="$srcdir/unixODBC-$pkgver" build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-nls \ - --enable-gui=no + --enable-gui=no \ + || return 1 make || return 1 } diff --git a/main/upower/APKBUILD b/main/upower/APKBUILD index 1d0a6eae5a2..3e2a7c764c3 100644 --- a/main/upower/APKBUILD +++ b/main/upower/APKBUILD @@ -15,11 +15,15 @@ source="http://upower.freedesktop.org/releases/upower-$pkgver.tar.xz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/upower \ - --disable-static + --disable-static \ + || return 1 make } diff --git a/main/usbredir/APKBUILD b/main/usbredir/APKBUILD index 0e0614fdec4..03ff7a142e2 100644 --- a/main/usbredir/APKBUILD +++ b/main/usbredir/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/usbutils/APKBUILD b/main/usbutils/APKBUILD index 2841475b3a0..299d7f52b69 100644 --- a/main/usbutils/APKBUILD +++ b/main/usbutils/APKBUILD @@ -15,10 +15,14 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --datadir=/usr/share/hwdata \ --disable-usbids \ - --disable-zlib + --disable-zlib \ + || return 1 make || return 1 } diff --git a/main/util-macros/APKBUILD b/main/util-macros/APKBUILD index f2a1910ef87..5a9f32ebf06 100644 --- a/main/util-macros/APKBUILD +++ b/main/util-macros/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org/releases/individual/util/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/util-vserver/APKBUILD b/main/util-vserver/APKBUILD index f06ece122a3..2f970c7c25a 100644 --- a/main/util-vserver/APKBUILD +++ b/main/util-vserver/APKBUILD @@ -33,7 +33,10 @@ prepare() { build() { local i cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --sysconfdir=/etc \ --with-initscripts=gentoo \ diff --git a/main/v4l-utils/APKBUILD b/main/v4l-utils/APKBUILD index a1884ff87e2..b8fb807c500 100644 --- a/main/v4l-utils/APKBUILD +++ b/main/v4l-utils/APKBUILD @@ -33,13 +33,16 @@ build() { if [ "$ALPINE_LIBC" != "eglibc" ]; then export LDFLAGS="$LDFLAGS -largp -liconv" fi - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --localstatedir=/var \ - --disable-static \ - || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --disable-static \ + || return 1 make || return 1 } diff --git a/main/v86d/APKBUILD b/main/v86d/APKBUILD index 2a15f0159bc..7e6ae9ede74 100644 --- a/main/v86d/APKBUILD +++ b/main/v86d/APKBUILD @@ -14,7 +14,11 @@ source="http://dev.gentoo.org/~spock/projects/uvesafb/archive/$pkgname-$pkgver.t build () { cd "$srcdir"/v86d-$pkgver - ./configure --with-x86emu + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --with-x86emu \ + || return 1 make || return 1 } diff --git a/main/vala/APKBUILD b/main/vala/APKBUILD index ad341e59bc5..693c2464551 100644 --- a/main/vala/APKBUILD +++ b/main/vala/APKBUILD @@ -25,8 +25,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --enable-vapigen || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --enable-vapigen \ + || return 1 make || return 1 } diff --git a/main/valgrind/APKBUILD b/main/valgrind/APKBUILD index a04b508380c..beebe558508 100644 --- a/main/valgrind/APKBUILD +++ b/main/valgrind/APKBUILD @@ -36,9 +36,13 @@ build() { # fails to build with ccache export CC="gcc" export CFLAGS="$CFLAGS -fno-stack-protector -fno-pie" - ./configure --prefix=/usr \ - --without-mpicc \ - --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --without-mpicc \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/vanessa_adt/APKBUILD b/main/vanessa_adt/APKBUILD index 938e7ff53fc..3e841400364 100644 --- a/main/vanessa_adt/APKBUILD +++ b/main/vanessa_adt/APKBUILD @@ -24,10 +24,14 @@ prepare() { build() { export LDFLAGS="$LDFLAGS -lvanessa_logger" cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/vanessa_logger/APKBUILD b/main/vanessa_logger/APKBUILD index 3fc1f8f4fec..53c6533f6d8 100644 --- a/main/vanessa_logger/APKBUILD +++ b/main/vanessa_logger/APKBUILD @@ -23,10 +23,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/vanessa_socket/APKBUILD b/main/vanessa_socket/APKBUILD index a49474c22e6..227e8ed644f 100644 --- a/main/vanessa_socket/APKBUILD +++ b/main/vanessa_socket/APKBUILD @@ -24,10 +24,14 @@ prepare() { build() { export LDFLAGS="$LDFLAGS -lvanessa_logger" cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/varnish/APKBUILD b/main/varnish/APKBUILD index 74edee65cf9..5af7c5c675f 100644 --- a/main/varnish/APKBUILD +++ b/main/varnish/APKBUILD @@ -34,7 +34,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/vde2/APKBUILD b/main/vde2/APKBUILD index 76a6794871d..a7a23dc33ce 100644 --- a/main/vde2/APKBUILD +++ b/main/vde2/APKBUILD @@ -19,7 +19,10 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ || return 1 make -C src/common || return 1 diff --git a/main/videoproto/APKBUILD b/main/videoproto/APKBUILD index 4128949afa9..625c9d66d21 100644 --- a/main/videoproto/APKBUILD +++ b/main/videoproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver. build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/vim/APKBUILD b/main/vim/APKBUILD index 9c2523a1f9b..04d441b4eaf 100644 --- a/main/vim/APKBUILD +++ b/main/vim/APKBUILD @@ -27,12 +27,16 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-luainterp \ --without-x \ --disable-nls \ --enable-multibyte \ - --enable-gui=no + --enable-gui=no \ + || return 1 make || return 1 } diff --git a/main/vlc/APKBUILD b/main/vlc/APKBUILD index 6d20b3ca63c..bacdb28a1af 100644 --- a/main/vlc/APKBUILD +++ b/main/vlc/APKBUILD @@ -100,7 +100,10 @@ build () export CFLAGS="$CFLAGS -D_GNU_SOURCE" export CXXFLAGS="$CXXFLAGS -fpermissive" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-mmx \ --disable-nls \ --disable-optimizations \ diff --git a/main/vte/APKBUILD b/main/vte/APKBUILD index d862f0687c3..9d41d5110bc 100644 --- a/main/vte/APKBUILD +++ b/main/vte/APKBUILD @@ -25,7 +25,10 @@ prepare() { } build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/vte \ --localstatedir=/var \ diff --git a/main/vte3/APKBUILD b/main/vte3/APKBUILD index 4520132a375..c0777d8d099 100644 --- a/main/vte3/APKBUILD +++ b/main/vte3/APKBUILD @@ -26,7 +26,10 @@ prepare() { } build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/$pkgname \ --localstatedir=/var \ diff --git a/main/wavpack/APKBUILD b/main/wavpack/APKBUILD index def61f19c70..83658b91b1c 100644 --- a/main/wavpack/APKBUILD +++ b/main/wavpack/APKBUILD @@ -31,12 +31,16 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-mmx \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/webkitgtk/APKBUILD b/main/webkitgtk/APKBUILD index 209f6e5c062..c9ca0bea25f 100644 --- a/main/webkitgtk/APKBUILD +++ b/main/webkitgtk/APKBUILD @@ -68,7 +68,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/wget/APKBUILD b/main/wget/APKBUILD index 072352fd8f8..204536e7055 100644 --- a/main/wget/APKBUILD +++ b/main/wget/APKBUILD @@ -17,6 +17,8 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ diff --git a/main/wine/APKBUILD b/main/wine/APKBUILD index 8d5346f1d47..665fcd9cc90 100644 --- a/main/wine/APKBUILD +++ b/main/wine/APKBUILD @@ -35,9 +35,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-dbus \ - --with-x + --with-x \ + || return 1 make } diff --git a/main/wireshark/APKBUILD b/main/wireshark/APKBUILD index 413fc82eb46..999f9319dc7 100644 --- a/main/wireshark/APKBUILD +++ b/main/wireshark/APKBUILD @@ -33,7 +33,10 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ @@ -41,7 +44,8 @@ build() { --with-gnutls \ --disable-text2pcap \ --disable-dftest \ - --disable-randpkt + --disable-randpkt \ + || return 1 make } diff --git a/main/wv/APKBUILD b/main/wv/APKBUILD index 16488cc1668..8a1c941fec0 100644 --- a/main/wv/APKBUILD +++ b/main/wv/APKBUILD @@ -18,8 +18,12 @@ prepare() { build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/wxgtk/APKBUILD b/main/wxgtk/APKBUILD index 9aa4167191e..d8d0e97e5f2 100644 --- a/main/wxgtk/APKBUILD +++ b/main/wxgtk/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-sdl \ --enable-unicode \ --enable-no_deps \ diff --git a/main/x264/APKBUILD b/main/x264/APKBUILD index d34eea129c2..663404e5607 100644 --- a/main/x264/APKBUILD +++ b/main/x264/APKBUILD @@ -17,11 +17,15 @@ build() { if [ "$CARCH" = "x86" ]; then _asmopts="--disable-asm" fi - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-visualize \ --enable-shared \ $_asmopts \ - --enable-pic || return 1 + --enable-pic \ + || return 1 make || return 1 } diff --git a/main/xarchiver/APKBUILD b/main/xarchiver/APKBUILD index b8ea83d27ba..2ba0696b9a7 100644 --- a/main/xarchiver/APKBUILD +++ b/main/xarchiver/APKBUILD @@ -20,8 +20,12 @@ prepare() { build() { cd "$srcdir/xarchiver-$pkgver" - ./configure --prefix=/usr \ - --libexecdir=/usr/lib/xfce4 || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --libexecdir=/usr/lib/xfce4 \ + || return 1 make || return 1 } diff --git a/main/xauth/APKBUILD b/main/xauth/APKBUILD index f5d80992162..cf3696dd25b 100644 --- a/main/xauth/APKBUILD +++ b/main/xauth/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org/releases/individual/app/xauth-$pkgver.tar.bz build() { cd "$srcdir"/xauth-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xbacklight/APKBUILD b/main/xbacklight/APKBUILD index 657ce84e5ba..42aa3d1f314 100644 --- a/main/xbacklight/APKBUILD +++ b/main/xbacklight/APKBUILD @@ -13,7 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/xbitmaps/APKBUILD b/main/xbitmaps/APKBUILD index 646f641fde7..c2e8f416005 100644 --- a/main/xbitmaps/APKBUILD +++ b/main/xbitmaps/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org/releases/individual/data/$pkgname-$pkgver.ta build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xbmc-pvr-addons/APKBUILD b/main/xbmc-pvr-addons/APKBUILD index 63310b4d142..dc20f310022 100644 --- a/main/xbmc-pvr-addons/APKBUILD +++ b/main/xbmc-pvr-addons/APKBUILD @@ -34,7 +34,10 @@ prepare() { build() { cd "$_builddir" ./bootstrap || return 1 - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/xbmc/APKBUILD b/main/xbmc/APKBUILD index f42fec0e5be..ac9542cc9f3 100644 --- a/main/xbmc/APKBUILD +++ b/main/xbmc/APKBUILD @@ -44,7 +44,10 @@ prepare() { build() { cd "$_builddir" ./bootstrap || return 1 - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/xcb-proto/APKBUILD b/main/xcb-proto/APKBUILD index d313a94a3b2..7103dc3ac4c 100644 --- a/main/xcb-proto/APKBUILD +++ b/main/xcb-proto/APKBUILD @@ -12,7 +12,11 @@ source="http://xcb.freedesktop.org/dist/$pkgname-$pkgver.tar.bz2" build() { cd "$srcdir"/${pkgname}-${pkgver} - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xcb-util-image/APKBUILD b/main/xcb-util-image/APKBUILD index 7f18e70921d..06f479b8a90 100644 --- a/main/xcb-util-image/APKBUILD +++ b/main/xcb-util-image/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/xcb-util-keysyms/APKBUILD b/main/xcb-util-keysyms/APKBUILD index 57292c54c51..8b295102508 100644 --- a/main/xcb-util-keysyms/APKBUILD +++ b/main/xcb-util-keysyms/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/xcb-util-renderutil/APKBUILD b/main/xcb-util-renderutil/APKBUILD index 2e95f1d5d31..d61122a9b8b 100644 --- a/main/xcb-util-renderutil/APKBUILD +++ b/main/xcb-util-renderutil/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/xcb-util-wm/APKBUILD b/main/xcb-util-wm/APKBUILD index cec44432df4..a9ab2a8230d 100644 --- a/main/xcb-util-wm/APKBUILD +++ b/main/xcb-util-wm/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/xcb-util/APKBUILD b/main/xcb-util/APKBUILD index 0796e789c31..4b0b2a6d459 100644 --- a/main/xcb-util/APKBUILD +++ b/main/xcb-util/APKBUILD @@ -14,7 +14,12 @@ source="http://xcb.freedesktop.org/dist/$pkgname-$pkgver.tar.bz2" build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --disable-static || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-static \ + || return 1 make || return 1 } diff --git a/main/xchat/APKBUILD b/main/xchat/APKBUILD index 8ba2a091cc7..2091d59ea87 100644 --- a/main/xchat/APKBUILD +++ b/main/xchat/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --enable-openssl \ --enable-dbus \ @@ -37,7 +40,8 @@ build() { --disable-python \ --enable-ipv6 \ --enable-shm \ - --enable-spell=static || return 1 + --enable-spell=static \ + || return 1 make || return 1 } diff --git a/main/xcmiscproto/APKBUILD b/main/xcmiscproto/APKBUILD index 6f4aa429e47..3f7edb9a5b2 100644 --- a/main/xcmiscproto/APKBUILD +++ b/main/xcmiscproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver. build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xcmsdb/APKBUILD b/main/xcmsdb/APKBUILD index 1a7b9a94c12..526a59111ac 100644 --- a/main/xcmsdb/APKBUILD +++ b/main/xcmsdb/APKBUILD @@ -13,7 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/xdelta3/APKBUILD b/main/xdelta3/APKBUILD index cadc708966c..8fd1df56338 100644 --- a/main/xdelta3/APKBUILD +++ b/main/xdelta3/APKBUILD @@ -12,7 +12,11 @@ source="http://xdelta.googlecode.com/files/$pkgname-$pkgver.tar.gz" build() { cd $srcdir/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make } diff --git a/main/xdg-utils/APKBUILD b/main/xdg-utils/APKBUILD index b31b5f12131..c94a5a1e45d 100644 --- a/main/xdg-utils/APKBUILD +++ b/main/xdg-utils/APKBUILD @@ -28,10 +28,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/xdpyinfo/APKBUILD b/main/xdpyinfo/APKBUILD index aacbf836b1b..5e57ff0d96a 100644 --- a/main/xdpyinfo/APKBUILD +++ b/main/xdpyinfo/APKBUILD @@ -13,8 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install || return 1 } diff --git a/main/xdriinfo/APKBUILD b/main/xdriinfo/APKBUILD index 07368425ec6..a28c0ebae70 100644 --- a/main/xdriinfo/APKBUILD +++ b/main/xdriinfo/APKBUILD @@ -13,8 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install || return 1 } diff --git a/main/xen/APKBUILD b/main/xen/APKBUILD index 8c4abb98dcc..7ec7f33e907 100644 --- a/main/xen/APKBUILD +++ b/main/xen/APKBUILD @@ -76,7 +76,10 @@ build() { cd "$_builddir" msg "Running configure..." - ./configure || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + || return 1 # Unset CFLAGS and LDFLAGS because the xen build system # doesn't support them. Instead use .config in xen root diff --git a/main/xev/APKBUILD b/main/xev/APKBUILD index b2c40357e78..2123a720b34 100644 --- a/main/xev/APKBUILD +++ b/main/xev/APKBUILD @@ -13,8 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install || return 1 } diff --git a/main/xextproto/APKBUILD b/main/xextproto/APKBUILD index daf511942d6..5e720959ecc 100644 --- a/main/xextproto/APKBUILD +++ b/main/xextproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.t build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-input-evdev/APKBUILD b/main/xf86-input-evdev/APKBUILD index e73ba221d65..691b99076d3 100644 --- a/main/xf86-input-evdev/APKBUILD +++ b/main/xf86-input-evdev/APKBUILD @@ -16,7 +16,10 @@ build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ || return 1 make } diff --git a/main/xf86-input-keyboard/APKBUILD b/main/xf86-input-keyboard/APKBUILD index b5bba71b1c3..4024896c9b8 100644 --- a/main/xf86-input-keyboard/APKBUILD +++ b/main/xf86-input-keyboard/APKBUILD @@ -14,7 +14,11 @@ source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver. build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-input-mouse/APKBUILD b/main/xf86-input-mouse/APKBUILD index 32278431e31..31027bda445 100644 --- a/main/xf86-input-mouse/APKBUILD +++ b/main/xf86-input-mouse/APKBUILD @@ -14,7 +14,11 @@ source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver. build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-input-synaptics/APKBUILD b/main/xf86-input-synaptics/APKBUILD index 1ca67471983..9ec72b02755 100644 --- a/main/xf86-input-synaptics/APKBUILD +++ b/main/xf86-input-synaptics/APKBUILD @@ -15,7 +15,11 @@ source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver. build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-input-vmmouse/APKBUILD b/main/xf86-input-vmmouse/APKBUILD index aaf6ae595fe..7139b8d0c4a 100644 --- a/main/xf86-input-vmmouse/APKBUILD +++ b/main/xf86-input-vmmouse/APKBUILD @@ -14,7 +14,11 @@ source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver. build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-apm/APKBUILD b/main/xf86-video-apm/APKBUILD index b62539ddaec..9621f1e4a29 100644 --- a/main/xf86-video-apm/APKBUILD +++ b/main/xf86-video-apm/APKBUILD @@ -28,7 +28,11 @@ build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-ark/APKBUILD b/main/xf86-video-ark/APKBUILD index 32e0cd093fb..1ba1d8ee35e 100644 --- a/main/xf86-video-ark/APKBUILD +++ b/main/xf86-video-ark/APKBUILD @@ -26,7 +26,11 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-ast/APKBUILD b/main/xf86-video-ast/APKBUILD index d770103958a..57d1a7ac7fb 100644 --- a/main/xf86-video-ast/APKBUILD +++ b/main/xf86-video-ast/APKBUILD @@ -26,7 +26,11 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-ati/APKBUILD b/main/xf86-video-ati/APKBUILD index 2244e59dd1e..89a4c8551e0 100644 --- a/main/xf86-video-ati/APKBUILD +++ b/main/xf86-video-ati/APKBUILD @@ -34,7 +34,10 @@ build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-dri \ --enable-kms \ || return 1 diff --git a/main/xf86-video-chips/APKBUILD b/main/xf86-video-chips/APKBUILD index 9b739621a94..d06527a25bf 100644 --- a/main/xf86-video-chips/APKBUILD +++ b/main/xf86-video-chips/APKBUILD @@ -27,7 +27,11 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-cirrus/APKBUILD b/main/xf86-video-cirrus/APKBUILD index eb9f0381358..160a38318a4 100644 --- a/main/xf86-video-cirrus/APKBUILD +++ b/main/xf86-video-cirrus/APKBUILD @@ -25,7 +25,11 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-dummy/APKBUILD b/main/xf86-video-dummy/APKBUILD index 7d08b9602b0..e891d074f07 100644 --- a/main/xf86-video-dummy/APKBUILD +++ b/main/xf86-video-dummy/APKBUILD @@ -26,7 +26,11 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-fbdev/APKBUILD b/main/xf86-video-fbdev/APKBUILD index b20df67bed0..54c13c86424 100644 --- a/main/xf86-video-fbdev/APKBUILD +++ b/main/xf86-video-fbdev/APKBUILD @@ -27,7 +27,11 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-geode/APKBUILD b/main/xf86-video-geode/APKBUILD index 1243689be10..9bd45d99580 100644 --- a/main/xf86-video-geode/APKBUILD +++ b/main/xf86-video-geode/APKBUILD @@ -26,7 +26,11 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-glint/APKBUILD b/main/xf86-video-glint/APKBUILD index 079bd2c7c97..94d3f4e21d2 100644 --- a/main/xf86-video-glint/APKBUILD +++ b/main/xf86-video-glint/APKBUILD @@ -28,7 +28,11 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-i128/APKBUILD b/main/xf86-video-i128/APKBUILD index 263a0a49ef0..f2f3ef5a184 100644 --- a/main/xf86-video-i128/APKBUILD +++ b/main/xf86-video-i128/APKBUILD @@ -27,7 +27,11 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-i740/APKBUILD b/main/xf86-video-i740/APKBUILD index bfa9958a320..80a71a782e4 100644 --- a/main/xf86-video-i740/APKBUILD +++ b/main/xf86-video-i740/APKBUILD @@ -27,7 +27,11 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-intel/APKBUILD b/main/xf86-video-intel/APKBUILD index dcfc73ca26a..eaf5412e3c9 100644 --- a/main/xf86-video-intel/APKBUILD +++ b/main/xf86-video-intel/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-xvmc \ --disable-selective-werror \ || return 1 diff --git a/main/xf86-video-mach64/APKBUILD b/main/xf86-video-mach64/APKBUILD index a8e0ea2755a..1ba510150ab 100644 --- a/main/xf86-video-mach64/APKBUILD +++ b/main/xf86-video-mach64/APKBUILD @@ -18,7 +18,11 @@ source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver. build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-nouveau/APKBUILD b/main/xf86-video-nouveau/APKBUILD index 6317109596b..d2db8b3cda4 100644 --- a/main/xf86-video-nouveau/APKBUILD +++ b/main/xf86-video-nouveau/APKBUILD @@ -29,7 +29,11 @@ mksource() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-nv/APKBUILD b/main/xf86-video-nv/APKBUILD index 9c090078169..ea6c985c3a4 100644 --- a/main/xf86-video-nv/APKBUILD +++ b/main/xf86-video-nv/APKBUILD @@ -27,7 +27,11 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make } diff --git a/main/xf86-video-openchrome/APKBUILD b/main/xf86-video-openchrome/APKBUILD index a9e66766ce8..741f69d31a4 100644 --- a/main/xf86-video-openchrome/APKBUILD +++ b/main/xf86-video-openchrome/APKBUILD @@ -29,7 +29,11 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-qxl/APKBUILD b/main/xf86-video-qxl/APKBUILD index 80f92f48b52..884bc0a648b 100644 --- a/main/xf86-video-qxl/APKBUILD +++ b/main/xf86-video-qxl/APKBUILD @@ -29,7 +29,10 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/xf86-video-r128/APKBUILD b/main/xf86-video-r128/APKBUILD index aedd198e4cc..79d2b50cef5 100644 --- a/main/xf86-video-r128/APKBUILD +++ b/main/xf86-video-r128/APKBUILD @@ -18,7 +18,10 @@ source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver. build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-dri \ || return 1 make || return 1 diff --git a/main/xf86-video-rendition/APKBUILD b/main/xf86-video-rendition/APKBUILD index e2d02188a55..d89eda86c1c 100644 --- a/main/xf86-video-rendition/APKBUILD +++ b/main/xf86-video-rendition/APKBUILD @@ -26,7 +26,11 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make } diff --git a/main/xf86-video-s3/APKBUILD b/main/xf86-video-s3/APKBUILD index 162c8b529a5..b62e6078754 100644 --- a/main/xf86-video-s3/APKBUILD +++ b/main/xf86-video-s3/APKBUILD @@ -27,7 +27,11 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-s3virge/APKBUILD b/main/xf86-video-s3virge/APKBUILD index d4cb83a8f8a..1dfd799aa31 100644 --- a/main/xf86-video-s3virge/APKBUILD +++ b/main/xf86-video-s3virge/APKBUILD @@ -24,7 +24,11 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-savage/APKBUILD b/main/xf86-video-savage/APKBUILD index a6cc5b86e71..09c785f951b 100644 --- a/main/xf86-video-savage/APKBUILD +++ b/main/xf86-video-savage/APKBUILD @@ -17,7 +17,11 @@ source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver. build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-siliconmotion/APKBUILD b/main/xf86-video-siliconmotion/APKBUILD index d1c3ad2ce41..2b5ffc2f38a 100644 --- a/main/xf86-video-siliconmotion/APKBUILD +++ b/main/xf86-video-siliconmotion/APKBUILD @@ -16,7 +16,11 @@ source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver. build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-sis/APKBUILD b/main/xf86-video-sis/APKBUILD index 18ba6e91ca7..386844c56ce 100644 --- a/main/xf86-video-sis/APKBUILD +++ b/main/xf86-video-sis/APKBUILD @@ -29,7 +29,11 @@ build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-sunleo/APKBUILD b/main/xf86-video-sunleo/APKBUILD index 04307e20b0e..a6dd6e9426d 100644 --- a/main/xf86-video-sunleo/APKBUILD +++ b/main/xf86-video-sunleo/APKBUILD @@ -16,7 +16,11 @@ source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver. build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-tdfx/APKBUILD b/main/xf86-video-tdfx/APKBUILD index 8a72dd76806..4564e730c4a 100644 --- a/main/xf86-video-tdfx/APKBUILD +++ b/main/xf86-video-tdfx/APKBUILD @@ -29,7 +29,11 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-v4l/APKBUILD b/main/xf86-video-v4l/APKBUILD index 90eddc922cb..b6d392fa905 100644 --- a/main/xf86-video-v4l/APKBUILD +++ b/main/xf86-video-v4l/APKBUILD @@ -16,7 +16,11 @@ source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver. build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-vesa/APKBUILD b/main/xf86-video-vesa/APKBUILD index aac853ca6b6..63662e8bbed 100644 --- a/main/xf86-video-vesa/APKBUILD +++ b/main/xf86-video-vesa/APKBUILD @@ -28,7 +28,11 @@ prepare() { build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-vmware/APKBUILD b/main/xf86-video-vmware/APKBUILD index 8c827c6e3d9..fd37ea5e8dd 100644 --- a/main/xf86-video-vmware/APKBUILD +++ b/main/xf86-video-vmware/APKBUILD @@ -26,7 +26,11 @@ build() { cd "$srcdir"/$pkgname-$pkgver export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86-video-xgixp/APKBUILD b/main/xf86-video-xgixp/APKBUILD index c835545b414..c21c2cdd600 100644 --- a/main/xf86-video-xgixp/APKBUILD +++ b/main/xf86-video-xgixp/APKBUILD @@ -26,7 +26,11 @@ build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86bigfontproto/APKBUILD b/main/xf86bigfontproto/APKBUILD index ba577c9f8a3..a9a2808d6de 100644 --- a/main/xf86bigfontproto/APKBUILD +++ b/main/xf86bigfontproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.t build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install || return 1 } diff --git a/main/xf86dgaproto/APKBUILD b/main/xf86dgaproto/APKBUILD index e29903cf146..927b216e2f5 100644 --- a/main/xf86dgaproto/APKBUILD +++ b/main/xf86dgaproto/APKBUILD @@ -13,7 +13,11 @@ source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.t build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install || return 1 } diff --git a/main/xf86driproto/APKBUILD b/main/xf86driproto/APKBUILD index c3f726edbfb..797052d939e 100644 --- a/main/xf86driproto/APKBUILD +++ b/main/xf86driproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver. build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xf86miscproto/APKBUILD b/main/xf86miscproto/APKBUILD index c1fc9bfab3b..77b83bcffc9 100644 --- a/main/xf86miscproto/APKBUILD +++ b/main/xf86miscproto/APKBUILD @@ -13,7 +13,11 @@ source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver. build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install || return 1 } diff --git a/main/xf86vidmodeproto/APKBUILD b/main/xf86vidmodeproto/APKBUILD index 60c6d207ff0..9041b654990 100644 --- a/main/xf86vidmodeproto/APKBUILD +++ b/main/xf86vidmodeproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver. build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xfburn/APKBUILD b/main/xfburn/APKBUILD index a729e0e65f6..e991f7ceaf6 100644 --- a/main/xfburn/APKBUILD +++ b/main/xfburn/APKBUILD @@ -31,10 +31,14 @@ prepare() { build () { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --enable-gstreamer \ --enable-thunar-vfs \ - --enable-dbus + --enable-dbus \ + || return 1 make || return 1 } diff --git a/main/xfce-utils/APKBUILD b/main/xfce-utils/APKBUILD index 2db04237ed7..b58a54f35e2 100644 --- a/main/xfce-utils/APKBUILD +++ b/main/xfce-utils/APKBUILD @@ -14,7 +14,10 @@ source="http://archive.xfce.org/src/xfce/$pkgname/${pkgver%.*}/$pkgname-$pkgver. build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ diff --git a/main/xfce4-appfinder/APKBUILD b/main/xfce4-appfinder/APKBUILD index 41bff73cec8..4a36dcb29f5 100644 --- a/main/xfce4-appfinder/APKBUILD +++ b/main/xfce4-appfinder/APKBUILD @@ -15,11 +15,15 @@ source="http://archive.xfce.org/src/xfce/$pkgname/${pkgver%.*}/$pkgname-$pkgver. build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ - --disable-static || return 1 + --disable-static \ + || return 1 make || return 1 } diff --git a/main/xfce4-battery-plugin/APKBUILD b/main/xfce4-battery-plugin/APKBUILD index 7a4e495a408..733d13214f8 100644 --- a/main/xfce4-battery-plugin/APKBUILD +++ b/main/xfce4-battery-plugin/APKBUILD @@ -23,11 +23,15 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/xfce4-clipman-plugin/APKBUILD b/main/xfce4-clipman-plugin/APKBUILD index 5a44ff0a61d..0f7608c09d8 100644 --- a/main/xfce4-clipman-plugin/APKBUILD +++ b/main/xfce4-clipman-plugin/APKBUILD @@ -25,7 +25,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-static \ --enable-unique \ || return 1 diff --git a/main/xfce4-cpufreq-plugin/APKBUILD b/main/xfce4-cpufreq-plugin/APKBUILD index 6d8aa814040..13ec1b3e45b 100644 --- a/main/xfce4-cpufreq-plugin/APKBUILD +++ b/main/xfce4-cpufreq-plugin/APKBUILD @@ -16,11 +16,15 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/xfce4 \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/xfce4-cpugraph-plugin/APKBUILD b/main/xfce4-cpugraph-plugin/APKBUILD index 77acb585153..cc8b6e25a4a 100644 --- a/main/xfce4-cpugraph-plugin/APKBUILD +++ b/main/xfce4-cpugraph-plugin/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/xfce4-dev-tools/APKBUILD b/main/xfce4-dev-tools/APKBUILD index e6d3ffcf8a5..f567894faea 100644 --- a/main/xfce4-dev-tools/APKBUILD +++ b/main/xfce4-dev-tools/APKBUILD @@ -12,11 +12,15 @@ source="http://archive.xfce.org/src/xfce/xfce4-dev-tools/${pkgver%.*}/xfce4-dev- build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/xfce4-mixer/APKBUILD b/main/xfce4-mixer/APKBUILD index ebdcdf5d11b..6946da1e0b6 100644 --- a/main/xfce4-mixer/APKBUILD +++ b/main/xfce4-mixer/APKBUILD @@ -16,12 +16,16 @@ source="http://archive.xfce.org/src/apps/xfce4-mixer/${pkgver%.*}/xfce4-mixer-$p build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ --disable-static \ - --with-sound=alsa || return 1 + --with-sound=alsa \ + || return 1 make || return 1 } diff --git a/main/xfce4-notes-plugin/APKBUILD b/main/xfce4-notes-plugin/APKBUILD index 94af6b0e9a2..98791512b7d 100644 --- a/main/xfce4-notes-plugin/APKBUILD +++ b/main/xfce4-notes-plugin/APKBUILD @@ -22,10 +22,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/xfce4-notifyd/APKBUILD b/main/xfce4-notifyd/APKBUILD index 6c92495ea34..f3576ae3167 100644 --- a/main/xfce4-notifyd/APKBUILD +++ b/main/xfce4-notifyd/APKBUILD @@ -16,11 +16,15 @@ source="http://archive.xfce.org/src/apps/xfce4-notifyd/${pkgver%.*}/xfce4-notify _builddir="$srcdir"/$pkgname-$pkgver build () { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/xfce4 \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/xfce4-panel/APKBUILD b/main/xfce4-panel/APKBUILD index 38bb98bde6b..753fd1e77c0 100644 --- a/main/xfce4-panel/APKBUILD +++ b/main/xfce4-panel/APKBUILD @@ -26,11 +26,15 @@ prepare() { } build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make } diff --git a/main/xfce4-power-manager/APKBUILD b/main/xfce4-power-manager/APKBUILD index 31dd472f59e..2ec1b9595eb 100644 --- a/main/xfce4-power-manager/APKBUILD +++ b/main/xfce4-power-manager/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/xfce4-screenshooter/APKBUILD b/main/xfce4-screenshooter/APKBUILD index fd6a9af5b96..e18a6531b6e 100644 --- a/main/xfce4-screenshooter/APKBUILD +++ b/main/xfce4-screenshooter/APKBUILD @@ -26,11 +26,15 @@ prepare() { build () { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/xfce4-session/APKBUILD b/main/xfce4-session/APKBUILD index dcd0f3239ec..d54518d4ee3 100644 --- a/main/xfce4-session/APKBUILD +++ b/main/xfce4-session/APKBUILD @@ -28,7 +28,10 @@ prepare() { build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/xfce4 \ --localstatedir=/var \ diff --git a/main/xfce4-settings/APKBUILD b/main/xfce4-settings/APKBUILD index 8881b41ebfb..de50cd69911 100644 --- a/main/xfce4-settings/APKBUILD +++ b/main/xfce4-settings/APKBUILD @@ -30,13 +30,17 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-static \ --enable-libxklavier \ --enable-xrandr \ - --enable-sound-settings + --enable-sound-settings \ + || return 1 make || return 1 } diff --git a/main/xfce4-taskmanager/APKBUILD b/main/xfce4-taskmanager/APKBUILD index 8fd84548458..0e5143c15e7 100644 --- a/main/xfce4-taskmanager/APKBUILD +++ b/main/xfce4-taskmanager/APKBUILD @@ -13,11 +13,15 @@ source="http://archive.xfce.org/src/apps/${pkgname}/1.0/${pkgname}-${pkgver}.tar build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/xfce4 \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/xfce4-terminal/APKBUILD b/main/xfce4-terminal/APKBUILD index 55897e7fb9c..bfa04ae45b6 100644 --- a/main/xfce4-terminal/APKBUILD +++ b/main/xfce4-terminal/APKBUILD @@ -16,7 +16,10 @@ source="http://archive.xfce.org/src/apps/${pkgname}/${pkgver%.*}/xfce4-terminal- _builddir="$srcdir"/xfce4-terminal-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib/xfce4 \ --localstatedir=/var \ diff --git a/main/xfce4-vala/APKBUILD b/main/xfce4-vala/APKBUILD index b986011b788..0f39749ee8c 100644 --- a/main/xfce4-vala/APKBUILD +++ b/main/xfce4-vala/APKBUILD @@ -30,10 +30,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/xfce4-wavelan-plugin/APKBUILD b/main/xfce4-wavelan-plugin/APKBUILD index f3542b549c2..e270b0885ad 100644 --- a/main/xfce4-wavelan-plugin/APKBUILD +++ b/main/xfce4-wavelan-plugin/APKBUILD @@ -26,11 +26,14 @@ prepare() { build() { cd "$_builddir" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/xfce4-xkb-plugin/APKBUILD b/main/xfce4-xkb-plugin/APKBUILD index 25a74cbf0a8..cfcea8833a2 100644 --- a/main/xfce4-xkb-plugin/APKBUILD +++ b/main/xfce4-xkb-plugin/APKBUILD @@ -22,11 +22,15 @@ prepare() { build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/xfconf/APKBUILD b/main/xfconf/APKBUILD index 93fe535f667..62a76ad047f 100644 --- a/main/xfconf/APKBUILD +++ b/main/xfconf/APKBUILD @@ -17,11 +17,15 @@ depends_dev="glib-dev dbus-dev dbus-glib-dev" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/xfdesktop/APKBUILD b/main/xfdesktop/APKBUILD index d11f07d8dd1..0d59d6ffd68 100644 --- a/main/xfdesktop/APKBUILD +++ b/main/xfdesktop/APKBUILD @@ -26,11 +26,15 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ - --disable-static || return 1 + --disable-static \ + || return 1 make || return 1 } diff --git a/main/xfsprogs/APKBUILD b/main/xfsprogs/APKBUILD index 05c711dc6e9..81d3a586585 100644 --- a/main/xfsprogs/APKBUILD +++ b/main/xfsprogs/APKBUILD @@ -25,11 +25,15 @@ build() { export OPTIMIZER="$CFLAGS" ac_cv_header_aio_h=yes ac_cv_lib_rt_lio_listio=yes \ - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sbindir=/sbin \ --libexecdir=/usr/lib \ --enable-lib64=no \ - --enable-gettext=no + --enable-gettext=no \ + || return 1 make SHELL=/bin/bash || return 1 } diff --git a/main/xfwm4-themes/APKBUILD b/main/xfwm4-themes/APKBUILD index d9eb9fafb3e..093258a25d4 100644 --- a/main/xfwm4-themes/APKBUILD +++ b/main/xfwm4-themes/APKBUILD @@ -13,11 +13,15 @@ source="http://archive.xfce.org/src/art/xfwm4-themes/${pkgver%.*}/xfwm4-themes-$ build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ - --disable-static + --disable-static \ + || return 1 make || return 1 } diff --git a/main/xfwm4/APKBUILD b/main/xfwm4/APKBUILD index 6fc8249a43e..c82d94dd8c4 100644 --- a/main/xfwm4/APKBUILD +++ b/main/xfwm4/APKBUILD @@ -15,13 +15,17 @@ source="http://archive.xfce.org/src/xfce/xfwm4/${pkgver%.*}/xfwm4-$pkgver.tar.bz build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ --disable-static \ --enable-compositor \ - --enable-xsync || return 1 + --enable-xsync \ + || return 1 make || return 1 } diff --git a/main/xgamma/APKBUILD b/main/xgamma/APKBUILD index 731befccb28..758f174a206 100644 --- a/main/xgamma/APKBUILD +++ b/main/xgamma/APKBUILD @@ -13,7 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/xhost/APKBUILD b/main/xhost/APKBUILD index f3635c1ee40..e00fdd11446 100644 --- a/main/xhost/APKBUILD +++ b/main/xhost/APKBUILD @@ -13,7 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/xineramaproto/APKBUILD b/main/xineramaproto/APKBUILD index 1c1910c3627..d7574b6a88b 100644 --- a/main/xineramaproto/APKBUILD +++ b/main/xineramaproto/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver. build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xinit/APKBUILD b/main/xinit/APKBUILD index 8b809843fca..3a6923d9640 100644 --- a/main/xinit/APKBUILD +++ b/main/xinit/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$srcdir"/xinit-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-xinitdir=/etc/X11/xinit \ || return 1 make || return 1 diff --git a/main/xkbcomp/APKBUILD b/main/xkbcomp/APKBUILD index da3bc4853a4..3629142a2d1 100644 --- a/main/xkbcomp/APKBUILD +++ b/main/xkbcomp/APKBUILD @@ -14,10 +14,14 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/xkeyboard-config/APKBUILD b/main/xkeyboard-config/APKBUILD index df6462d3e53..84a51293ef2 100644 --- a/main/xkeyboard-config/APKBUILD +++ b/main/xkeyboard-config/APKBUILD @@ -24,10 +24,14 @@ prepare() { build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --with-xkb-base=/usr/share/X11/xkb \ --with-xkb-rules-symlink=xorg \ - --enable-compat-rules=yes || return 1 + --enable-compat-rules=yes \ + || return 1 make || return 1 } diff --git a/main/xmlrpc-c/APKBUILD b/main/xmlrpc-c/APKBUILD index 416231b9f83..dea1834a2df 100644 --- a/main/xmlrpc-c/APKBUILD +++ b/main/xmlrpc-c/APKBUILD @@ -25,16 +25,20 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ --enable-libxml2-backend \ --disable-cgi-server \ --disable-libwww-client \ - --disable-wininet-client + --disable-wininet-client \ + || return 1 # no parallel builds :-( - make -C include &&\ - make -C lib &&\ - make -j1 -C src &&\ + make -C include && \ + make -C lib && \ + make -j1 -C src && \ make } diff --git a/main/xmlto/APKBUILD b/main/xmlto/APKBUILD index ad4387fa316..5335ace4f07 100644 --- a/main/xmlto/APKBUILD +++ b/main/xmlto/APKBUILD @@ -27,8 +27,12 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ - --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make -j1 || return 1 } diff --git a/main/xmodmap/APKBUILD b/main/xmodmap/APKBUILD index 2a44bfbe204..cf7405096cd 100644 --- a/main/xmodmap/APKBUILD +++ b/main/xmodmap/APKBUILD @@ -13,7 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/xorg-server/APKBUILD b/main/xorg-server/APKBUILD index 8e3115b1637..6198ae2cd10 100644 --- a/main/xorg-server/APKBUILD +++ b/main/xorg-server/APKBUILD @@ -90,7 +90,10 @@ build() { export LDFLAGS="$LDFLAGS -Wl,-z,lazy" _fontroot="/usr/share/fonts" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc/X11 \ --localstatedir=/var \ --with-fontrootdir=$_fontroot \ diff --git a/main/xprop/APKBUILD b/main/xprop/APKBUILD index ee0a935cd6a..dd972dde839 100644 --- a/main/xprop/APKBUILD +++ b/main/xprop/APKBUILD @@ -27,7 +27,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ || return 1 make || return 1 } diff --git a/main/xproto/APKBUILD b/main/xproto/APKBUILD index 3b04b62b778..13cdcb0fd74 100644 --- a/main/xproto/APKBUILD +++ b/main/xproto/APKBUILD @@ -16,7 +16,11 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xrandr/APKBUILD b/main/xrandr/APKBUILD index 312bc852bd5..8c32a5ffb0b 100644 --- a/main/xrandr/APKBUILD +++ b/main/xrandr/APKBUILD @@ -13,7 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/xrdb/APKBUILD b/main/xrdb/APKBUILD index 6819aac85f2..f109b9c0fae 100644 --- a/main/xrdb/APKBUILD +++ b/main/xrdb/APKBUILD @@ -13,7 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/xrefresh/APKBUILD b/main/xrefresh/APKBUILD index fd7dd669dc0..ef3d04bc321 100644 --- a/main/xrefresh/APKBUILD +++ b/main/xrefresh/APKBUILD @@ -13,7 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/xscreensaver/APKBUILD b/main/xscreensaver/APKBUILD index bb742c7fd8c..731051eaadb 100644 --- a/main/xscreensaver/APKBUILD +++ b/main/xscreensaver/APKBUILD @@ -30,7 +30,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/xset/APKBUILD b/main/xset/APKBUILD index 105dbe4ac8a..5ca771c77d5 100644 --- a/main/xset/APKBUILD +++ b/main/xset/APKBUILD @@ -13,7 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/xsetmode/APKBUILD b/main/xsetmode/APKBUILD index 8b11f547858..a51dbfe082b 100644 --- a/main/xsetmode/APKBUILD +++ b/main/xsetmode/APKBUILD @@ -13,7 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/xsetroot/APKBUILD b/main/xsetroot/APKBUILD index e8a6d072af8..928981be482 100644 --- a/main/xsetroot/APKBUILD +++ b/main/xsetroot/APKBUILD @@ -13,7 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 } diff --git a/main/xtables-addons-grsec/APKBUILD b/main/xtables-addons-grsec/APKBUILD index 5ecd7a45442..d4ea035f67a 100644 --- a/main/xtables-addons-grsec/APKBUILD +++ b/main/xtables-addons-grsec/APKBUILD @@ -41,8 +41,12 @@ prepare() { build() { cd "$srcdir/$_realname-$_realver" - ./configure --prefix=/usr \ - --with-kbuild=/usr/src/linux-headers-${_abi_release} + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --with-kbuild=/usr/src/linux-headers-${_abi_release} \ + || return 1 cd extensions export GCC_SPECS=hardenednopie.specs diff --git a/main/xtables-addons/APKBUILD b/main/xtables-addons/APKBUILD index 2653a6fbe59..d7ba0aa1a1a 100644 --- a/main/xtables-addons/APKBUILD +++ b/main/xtables-addons/APKBUILD @@ -15,9 +15,13 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz" build() { cd "$srcdir/$pkgname-$pkgver" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ - --without-kbuild + --without-kbuild \ + || return 1 make CC="${CC-gcc}" kbuilddir= } diff --git a/main/xtrans/APKBUILD b/main/xtrans/APKBUILD index d5c6cbb689c..82fa1fc9642 100644 --- a/main/xtrans/APKBUILD +++ b/main/xtrans/APKBUILD @@ -12,7 +12,11 @@ source="http://xorg.freedesktop.org/releases/individual/lib/$pkgname-$pkgver.tar build() { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/xvidcore/APKBUILD b/main/xvidcore/APKBUILD index e3bbfa68f92..bcfcfae1c34 100644 --- a/main/xvidcore/APKBUILD +++ b/main/xvidcore/APKBUILD @@ -13,8 +13,12 @@ source="http://downloads.xvid.org/downloads/$pkgname-$pkgver.tar.bz2" build() { cd "$srcdir"/$pkgname/build/generic - ./configure --prefix=/usr \ - --disable-assembly + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-assembly \ + || return 1 make || return 1 } diff --git a/main/xvinfo/APKBUILD b/main/xvinfo/APKBUILD index c4aea3448e2..8e28a122106 100644 --- a/main/xvinfo/APKBUILD +++ b/main/xvinfo/APKBUILD @@ -13,8 +13,12 @@ source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar build () { cd "$srcdir"/$pkgname-$pkgver - ./configure --prefix=/usr \ - --mandir=/usr/share/man || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + || return 1 make || return 1 make DESTDIR="$pkgdir" install || return 1 } diff --git a/main/xwininfo/APKBUILD b/main/xwininfo/APKBUILD index 32313ccb8a0..4d348ae3821 100644 --- a/main/xwininfo/APKBUILD +++ b/main/xwininfo/APKBUILD @@ -19,10 +19,14 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/xz/APKBUILD b/main/xz/APKBUILD index 0d39293fc81..58af03b75b4 100644 --- a/main/xz/APKBUILD +++ b/main/xz/APKBUILD @@ -15,9 +15,13 @@ _builddir="$srcdir"/$pkgname-$pkgver build () { cd $srcdir/$pkgname-$pkgver - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --disable-rpath \ - --disable-werror + --disable-werror \ + || return 1 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make diff --git a/main/yaml/APKBUILD b/main/yaml/APKBUILD index f93c31ccf07..0be218f4bb7 100644 --- a/main/yaml/APKBUILD +++ b/main/yaml/APKBUILD @@ -26,7 +26,10 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/yasm/APKBUILD b/main/yasm/APKBUILD index 0b1a1f2ab1a..09afbe7b993 100644 --- a/main/yasm/APKBUILD +++ b/main/yasm/APKBUILD @@ -14,7 +14,11 @@ source="http://www.tortall.net/projects/$pkgname/releases/$pkgname-$pkgver.tar.g _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } diff --git a/main/zabbix/APKBUILD b/main/zabbix/APKBUILD index 4cb00d9b9ab..933a058fd96 100644 --- a/main/zabbix/APKBUILD +++ b/main/zabbix/APKBUILD @@ -65,8 +65,12 @@ build() { msg "Building for $db" cp -r "$pkgname-$pkgver" "$pkgname-$pkgver-$db" cd "$_builddir-$db" - ./configure --with-$db \ - $_configure + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --with-$db \ + $_configure \ + || return 1 make || return 1 done } diff --git a/main/zenity/APKBUILD b/main/zenity/APKBUILD index 10aae22c815..7414486a2a9 100644 --- a/main/zenity/APKBUILD +++ b/main/zenity/APKBUILD @@ -27,9 +27,13 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ - --disable-scrollkeeper || return 1 + --disable-scrollkeeper \ + || return 1 make || return 1 } diff --git a/main/zeromq/APKBUILD b/main/zeromq/APKBUILD index 361efd0c589..1a2e93149ef 100644 --- a/main/zeromq/APKBUILD +++ b/main/zeromq/APKBUILD @@ -22,11 +22,15 @@ prepare() { build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --with-pgm \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/zlib/APKBUILD b/main/zlib/APKBUILD index 4d521dcacae..c64e2866291 100644 --- a/main/zlib/APKBUILD +++ b/main/zlib/APKBUILD @@ -20,7 +20,13 @@ build() { cd "$_builddir" # we trade size for a little more speed. export CFLAGS="$CFLAGS -O2" - CHOST="${CHOST}" ./configure --prefix=/usr --libdir=/lib --shared + CHOST="${CHOST}" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --libdir=/lib \ + --shared \ + || return 1 make || return 1 } diff --git a/main/znc/APKBUILD b/main/znc/APKBUILD index 28809cfd71c..ccdfc63103a 100644 --- a/main/znc/APKBUILD +++ b/main/znc/APKBUILD @@ -32,7 +32,10 @@ prepare() { build() { cd "$_builddir" export CHARSET= - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ diff --git a/main/zsh/APKBUILD b/main/zsh/APKBUILD index 4076da3e889..49a28e437f9 100644 --- a/main/zsh/APKBUILD +++ b/main/zsh/APKBUILD @@ -16,7 +16,10 @@ _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --bindir=/bin \ --enable-etcdir=/etc/zsh \ --enable-zshenv=/etc/zsh/zshenv \ @@ -30,7 +33,8 @@ build() { --sysconfdir=/etc \ --with-tcsetpgrp \ --mandir=/usr/share/man \ - --infodir=/usr/share/info + --infodir=/usr/share/info \ + || return 1 make || return 1 } diff --git a/main/zsnes/APKBUILD b/main/zsnes/APKBUILD index 955314d90bf..47c503aaf71 100644 --- a/main/zsnes/APKBUILD +++ b/main/zsnes/APKBUILD @@ -28,11 +28,15 @@ build () cd "$srcdir"/${pkgname}_${pkgver%.*}_${pkgver#*.}/src aclocal && autoconf || return 1 export GCC_SPECS=hardenednopie.specs - ./configure --prefix=/usr \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ --mandir=/usr/share/man \ x_libraries=/usr/lib \ force_arch=i486 \ - --enable-release || return 1 + --enable-release \ + || return 1 make makefile.dep make || return 1 } |