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 /main/tcl | |
parent | a879839450737e3cbdb64415af42347c97ccfa28 (diff) | |
download | aports-5c904717322f8113870abf48cc93c3c8b00ab4e8.tar.bz2 aports-5c904717322f8113870abf48cc93c3c8b00ab4e8.tar.xz |
[all autotools packages]: normalize ./configure
Diffstat (limited to 'main/tcl')
-rw-r--r-- | main/tcl/APKBUILD | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/main/tcl/APKBUILD b/main/tcl/APKBUILD index 5f8f0c5444..94f989a10f 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" |