summaryrefslogtreecommitdiff
path: root/package/gettext-tiny/patches/patch-Makefile
blob: c9584ef3cf021fee86bf3e8b0d135ccd61ccef70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
--- gettext-tiny-0.0.3.orig/Makefile	2013-06-30 06:48:42.000000000 +0200
+++ gettext-tiny-0.0.3/Makefile	2013-10-30 22:13:29.000000000 +0100
@@ -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
@@ -47,22 +47,25 @@ libintl.a: $(LIBOBJS)
 	$(RANLIB) $@
 
 msgmerge: $(OBJS)
-	$(CC) $(LDFLAGS) -static -o $@ src/msgmerge.o $(PARSEROBJS)
+	$(CC) $(LDFLAGS) -o $@ src/msgmerge.o $(PARSEROBJS)
 
 msgfmt: $(OBJS)
-	$(CC) $(LDFLAGS) -static -o $@ src/msgfmt.o $(PARSEROBJS)
+	$(CC) $(LDFLAGS) -o $@ src/msgfmt.o $(PARSEROBJS)
 
 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