diff options
author | P. J. McDermott <pjm@nac.net> | 2013-06-03 13:11:27 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-06-03 13:11:27 (EDT) |
commit | bca7dbbc209e2256ab1bf3054bbc6e2638bb8cbb (patch) | |
tree | bf88579ec08e1e3035eb55376b919a5ced2c7d8b /build | |
parent | 2c0f711d9bf87797d8de5a9a6e3fad2eeb31076d (diff) |
Use SPF 2.0, opkhelper 3.0, and new upstream ver.
Diffstat (limited to 'build')
-rwxr-xr-x | build | 34 |
1 files changed, 11 insertions, 23 deletions
@@ -1,26 +1,14 @@ -#! /usr/bin/make -f +#!/usr/bin/make -f -VER = 1.0 -PKGS = opkhelper-$(VER) opkhelper-$(VER)-doc +include ../source.mk -$(PKGS): opkhelper.buildstamp +build: + oh-autoconfigure -- \ + --bindir=/usr/share/$(OPK_SOURCE) \ + --libdir=/usr/share \ + --with-libopkbuild.1=/usr/share/libopkbuild.1 + oh-autobuild -.SILENT: opkhelper.buildstamp -opkhelper.buildstamp: - mkdir build && cd build && \ - ../src/configure --prefix=/usr --libdir=/usr/share && \ - make && make DESTDIR=$$(pwd)/../dest install - mv dest/usr/share/opkhelper dest/usr/share/opkhelper-$(VER) - for file in dest/usr/bin/*; do \ - basename="$${file##*/}"; \ - mv "$${file}" "$${file}-$(VER)"; \ - done - for file in dest/usr/share/man/man*/*; do \ - basename="$${file##*/}"; \ - mv "$${file}" "$${file%.*}-$(VER).$${basename##*.}"; \ - done - oh-installfiles $(PKGS) - oh-installdocs opkhelper-$(VER) - oh-gencontrol $(PKGS) - oh-buildopk $(PKGS) - touch $@ +install: build + oh-autoinstall + oh-installfiles |