summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-04-03 17:46:11 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-04-03 17:46:11 (EDT)
commit791200f22601515320a479945e92d07f5a8b21d3 (patch)
treec5959a0ecd7d02fa34522e58e00938679c9a6a3a /build
parent0cc72785a4d6317f65c12e4d3f7319243bf5ecbb (diff)
Use SPF 2.0, opkhelper 3.0, and multiarch libdirs.
Diffstat (limited to 'build')
-rwxr-xr-xbuild34
1 files changed, 22 insertions, 12 deletions
diff --git a/build b/build
index 40deb9c..657151b 100755
--- a/build
+++ b/build
@@ -1,14 +1,24 @@
#! /usr/bin/make -f
-libz.1: libz.1.buildstamp
-
-.SILENT: libz.1.buildstamp
-libz.1.buildstamp:
- cd src && ./configure --prefix=/usr && make && \
- make DESTDIR=$$(pwd)/../dest install
- oh-strip -gl usr/lib/libz.so.1.2.6
- oh-installfiles libz.1
- oh-installdocs libz.1
- oh-gencontrol libz.1
- oh-buildopk libz.1
- touch zlib.buildstamp
+nop:
+ @:
+
+configure:
+ cd src && ./configure \
+ --prefix='/usr' --libdir='$${prefix}/lib/$(OPK_HOST_ARCH)'
+ touch $@
+
+build: configure
+ oh-autobuild
+ touch $@
+
+install: build
+ oh-autoinstall
+ oh-fixperms
+ oh-strip
+ oh-installfiles
+
+clean:
+ oh-autoclean
+ rm -f configure build
+ rm -Rf *.data