summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-08-03 18:15:48 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-08-03 18:15:48 (EDT)
commit78b87d879c5f8a223e36dbfb140a09ca021223f5 (patch)
tree34c675651a90a8aa75cf9a7eb9850f818eb68b25 /build
parent82c1c22be076215a3ebe8730ff2d7c4d4db54ff5 (diff)
Use SPF 2.0 and opkhelper 3.0.
Diffstat (limited to 'build')
-rwxr-xr-xbuild73
1 files changed, 32 insertions, 41 deletions
diff --git a/build b/build
index 3f1bb42..39de86c 100755
--- a/build
+++ b/build
@@ -1,45 +1,36 @@
-#! /usr/bin/make -f
+#!/usr/bin/make -f
-pkgs_normal = libncurses.5 libncurses.5-dev libncurses-doc \
- libtinfo.5 libtinfo-dev terminfo \
- ncurses-bin
-pkgs_wide = libncursesw.5 libncursesw.5-dev
+build-ncurses:
+ oh-autoconfigure -B obj-ncurses -- \
+ --without-profile \
+ --without-debug \
+ --without-ada \
+ --with-shared \
+ --disable-termcap \
+ --with-termlib=tinfo \
+ --with-ticlib=tic \
+ --disable-python
+ oh-autobuild -B obj-ncurses
+ touch $@
-$(pkgs_normal): ncurses.buildstamp
-$(pkgs_wide): ncursesw.buildstamp
+build-ncursesw:
+ oh-autoconfigure -B obj-ncursesw -- \
+ --includedir=/usr/include/ncursesw \
+ --without-profile \
+ --without-debug \
+ --without-ada \
+ --with-shared \
+ --disable-termcap \
+ --without-termlib \
+ --without-ticlib \
+ --enable-widec \
+ --disable-python
+ oh-autobuild -B obj-ncursesw
+ touch $@
-.SILENT: ncurses.buildstamp
-ncurses.buildstamp:
- cd src && \
- ./configure --prefix=/usr \
- --build=$${OH_BUILD_ARCH_GNU} --host=$${OH_HOST_ARCH_GNU} \
- --without-profile --without-debug --without-ada --with-shared \
- --disable-termcap --with-termlib=tinfo --with-ticlib=tic \
- --disable-maintainer-mode \
- --disable-python && \
- make && make DESTDIR=$$(pwd)/../dest install
- oh-installfiles $(pkgs_normal)
- oh-installdocs libtinfo.5
- oh-gencontrol $(pkgs_normal)
- oh-buildopk $(pkgs_normal)
- touch ncurses.buildstamp
+build: build-ncurses build-ncursesw
-.SILENT: ncursesw.buildstamp
-ncursesw.buildstamp:
- cd src && \
- ./configure --prefix=/usr --includedir=/usr/include/ncursesw \
- --build=$${OH_BUILD_ARCH_GNU} --host=$${OH_HOST_ARCH_GNU} \
- --without-profile --without-debug --without-ada --with-shared \
- --disable-termcap --without-termlib --without-ticlib \
- --enable-widec \
- --disable-maintainer-mode \
- --disable-python && \
- make && make DESTDIR=$$(pwd)/../dest install
- cd dest && \
- rm -Rf usr/bin usr/man usr/share && \
- rm -Rf usr/lib/terminfo
- oh-installfiles $(pkgs_wide)
- oh-installdocs libtinfo.5
- oh-gencontrol $(pkgs_wide)
- oh-buildopk $(pkgs_wide)
- touch ncursesw.buildstamp
+install: build
+ oh-autoinstall -B obj-ncurses
+ oh-autoinstall -B obj-ncursesw
+ oh-installfiles