summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-04 09:04:36 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-04 09:04:36 (EDT)
commit3ef033b8988a62fe8a8e4d5e31c2febc1e25ae8c (patch)
tree642741813aac34ab6a9e37fd790ab95c2e9dfa9b
parent2c36b2eee9c82612a8cf03fd1cf8378cc7d3dcc6 (diff)
build: Unify common configure options
This also adds "--with-termlib=tinfo" and "--with-ticlib=tic" to the "build-ncursesw" target.
-rwxr-xr-xbuild46
1 files changed, 18 insertions, 28 deletions
diff --git a/build b/build
index 80fa3bd..cd2a9d8 100755
--- a/build
+++ b/build
@@ -2,46 +2,36 @@
include ../source.mk
+common_opts = \
+ --without-ada \
+ --without-tests \
+ --with-pkg-config-libdir='/usr/lib/$(OPK_HOST_ARCH)/pkgconfig' \
+ --enable-pc-files \
+ --with-install-prefix="$${PWD}/dest" \
+ --with-shared \
+ --without-debug \
+ --without-profile \
+ --with-termlib=tinfo \
+ --with-ticlib=tic \
+ --disable-termcap \
+ --enable-symlinks \
+ --enable-const
+
nop:
@:
build-ncurses:
oh-autoconfigure -B obj-ncurses -- \
- --without-ada \
- --without-tests \
- --with-pkg-config-libdir='/usr/lib/$(OPK_HOST_ARCH)/pkgconfig' \
- --enable-pc-files \
- --with-install-prefix="$${PWD}/dest" \
- --with-shared \
- --without-debug \
- --without-profile \
- --with-termlib=tinfo \
- --with-ticlib=tic \
- --disable-termcap \
- --enable-symlinks \
- --enable-const
+ $(common_opts)
oh-autobuild -B obj-ncurses
touch $@
build-ncursesw:
oh-autoconfigure -B obj-ncursesw -- \
+ $(common_opts) \
--includedir=/usr/include/ncursesw \
- --without-ada \
- --without-manpages \
--without-progs \
- --without-tests \
- --with-pkg-config-libdir='/usr/lib/$(OPK_HOST_ARCH)/pkgconfig' \
- --enable-pc-files \
- --with-install-prefix="$${PWD}/dest" \
- --with-shared \
- --without-debug \
- --without-profile \
- --without-termlib \
- --without-ticlib \
- --disable-termcap \
- --enable-symlinks \
- --enable-widec \
- --enable-const
+ --enable-widec
oh-autobuild -B obj-ncursesw
touch $@