summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild26
1 files changed, 9 insertions, 17 deletions
diff --git a/build b/build
index 1289978..bc2cfba 100755
--- a/build
+++ b/build
@@ -1,19 +1,11 @@
-#! /usr/bin/make -f
+#!/usr/bin/make -f
-PKGS = gettext gettext-dev gettext-doc
+build:
+ oh-autoconfigure -s src/gettext-runtime -B src/gettext-runtime -- \
+ --enable-threads --disable-java
+ oh-autobuild -s src/gettext-runtime -B src/gettext-runtime
-$(PKGS): gettext.buildstamp
-
-.SILENT: gettext.buildstamp
-gettext.buildstamp:
- cd src/gettext-runtime && \
- ./configure --prefix=/usr \
- --enable-threads --disable-java && \
- make && make DESTDIR=$$(pwd)/../../dest install
- oh-strip -gl /usr/lib/libasprintf.so.0.0.0
- oh-strip -g /usr/bin/gettext /usr/bin/ngettext /usr/bin/envsubst
- oh-installfiles $(PKGS)
- oh-installdocs gettext
- oh-gencontrol $(PKGS)
- oh-buildopk $(PKGS)
- touch gettext.buildstamp
+install: build
+ oh-autoinstall -s src/gettext-runtime -B src/gettext-runtime
+ oh-strip -k
+ oh-installfiles