summaryrefslogtreecommitdiff
path: root/package/gettext-tiny/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-04 18:42:48 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-04 18:42:48 +0200
commitf057e4a2dc1d6d2db4ec7750a43054fe15a1c71e (patch)
treef9186263483b6dbc68bce8c1fa1ef36f3e011316 /package/gettext-tiny/patches
parentfa9bd9d822a4053714e9448adcc591b7fe38c34e (diff)
use gettext-tiny instead of gettext
Diffstat (limited to 'package/gettext-tiny/patches')
-rw-r--r--package/gettext-tiny/patches/patch-Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/gettext-tiny/patches/patch-Makefile b/package/gettext-tiny/patches/patch-Makefile
new file mode 100644
index 000000000..45cbae4dc
--- /dev/null
+++ b/package/gettext-tiny/patches/patch-Makefile
@@ -0,0 +1,37 @@
+--- gettext-tiny-0.0.3.orig/Makefile 2013-06-30 06:48:42.000000000 +0200
++++ gettext-tiny-0.0.3/Makefile 2013-10-04 11:58:03.000000000 +0200
+@@ -1,4 +1,4 @@
+-prefix=/usr/local
++prefix=/usr
+ bindir=$(prefix)/bin
+ includedir=$(prefix)/include
+ libdir=$(prefix)/lib
+@@ -19,7 +19,7 @@ ALL_INCLUDES = $(HEADERS)
+ ALL_LIBS=libintl.a
+ ALL_TOOLS=msgfmt msgmerge xgettext
+
+-CFLAGS=-O0 -fPIC
++CFLAGS?=-O0 -fPIC
+
+ AR ?= $(CROSS_COMPILE)ar
+ RANLIB ?= $(CROSS_COMPILE)ranlib
+@@ -56,13 +56,16 @@ xgettext:
+ cp src/xgettext.sh ./xgettext
+
+ $(DESTDIR)$(libdir)/%.a: %.a
+- install -D -m 755 $< $@
++ mkdir -p $(DESTDIR)$(libdir)
++ install -m 755 $< $@
+
+ $(DESTDIR)$(includedir)/%.h: include/%.h
+- install -D -m 644 $< $@
++ mkdir -p $(DESTDIR)$(includedir)
++ install -m 644 $< $@
+
+ $(DESTDIR)$(bindir)/%: %
+- install -D -m 755 $< $@
++ mkdir -p $(DESTDIR)$(bindir)
++ install -m 755 $< $@
+
+ .PHONY: all clean install
+