aboutsummaryrefslogtreecommitdiffstats
path: root/main/ncurses
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-07-13 14:29:12 +0000
committerTimo Teräs <timo.teras@iki.fi>2016-07-13 14:29:12 +0000
commitb3de9c7809bc3117b5a183a06c463e3edfbfa80a (patch)
treede0461090e0a5f3a353f5e09e31789e02a3090d0 /main/ncurses
parente6c48b3f09a0c912bfc28fd1c0ff08d0b955b23d (diff)
downloadaports-b3de9c7809bc3117b5a183a06c463e3edfbfa80a.tar.bz2
aports-b3de9c7809bc3117b5a183a06c463e3edfbfa80a.tar.xz
main/ncurses: support cross building
Diffstat (limited to 'main/ncurses')
-rw-r--r--main/ncurses/APKBUILD16
1 files changed, 4 insertions, 12 deletions
diff --git a/main/ncurses/APKBUILD b/main/ncurses/APKBUILD
index ef0cab9152..002514e81d 100644
--- a/main/ncurses/APKBUILD
+++ b/main/ncurses/APKBUILD
@@ -7,23 +7,16 @@ url="http://www.gnu.org/software/ncurses/"
arch="all"
license=MIT
depends=
+makedepends_build="ncurses"
source="http://ftp.gnu.org/pub/gnu/ncurses/ncurses-${pkgver}.tar.gz
"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc
$pkgname-terminfo-base:base $pkgname-terminfo $pkgname-libs"
-_builddir="$srcdir"/ncurses-$pkgver
-prepare() {
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir"/ncurses-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
@@ -43,7 +36,7 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
# Install basic terms in /etc/terminfo
@@ -68,7 +61,6 @@ dev() {
echo "INPUT(-l${lib}w)" > "$subpkgdir"/usr/lib/lib${lib}.so
ln -s ${lib}w.pc "$subpkgdir"/usr/lib/pkgconfig/${lib}.pc
done
-
# link curses -> ncurses
echo "INPUT(-lncursesw)" > "$subpkgdir"/usr/lib/libcursesw.so
ln -s libncurses.so "$subpkgdir"/usr/lib/libcurses.so