summaryrefslogtreecommitdiffstats
path: root/patches/bing_src-1.1.3/adapt_makefile_for_linux.diff
diff options
context:
space:
mode:
Diffstat (limited to 'patches/bing_src-1.1.3/adapt_makefile_for_linux.diff')
-rw-r--r--patches/bing_src-1.1.3/adapt_makefile_for_linux.diff64
1 files changed, 64 insertions, 0 deletions
diff --git a/patches/bing_src-1.1.3/adapt_makefile_for_linux.diff b/patches/bing_src-1.1.3/adapt_makefile_for_linux.diff
new file mode 100644
index 000000000..cb25b4b04
--- /dev/null
+++ b/patches/bing_src-1.1.3/adapt_makefile_for_linux.diff
@@ -0,0 +1,64 @@
+From: Wolfram Sang <w.sang@pengutronix.de>
+From: Marc Kleine-Budde <mkl@pengutronix.de>
+Subject: Adapt makefile for Linux, add destdir support
+
+Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
+Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
+---
+# 20081124: wsa: there is no upstream anymore :(
+
+ Makefile | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+Index: Makefile
+===================================================================
+--- Makefile.orig
++++ Makefile
+@@ -9,9 +9,9 @@
+ #
+ ##########
+
+-BINDIR=/usr/local/bin
+-MANDIR=/usr/local/man
+-
++PREFIX ?= /usr
++BINDIR = $(PREFIX)/sbin
++MANDIR = $(PREFIX)/man
+
+ ##########
+ #
+@@ -21,7 +21,7 @@ MANDIR=/usr/local/man
+
+ # Uncomment if you need the 4.4 BSD compatibility includes.
+ # -> required on Linux (and Win32)
+-#COMPAT_INCS = -Iinclude
++COMPAT_INCS = -Iinclude
+
+ # Maybe specify some specific compatibility options
+ # -> on AIX activate the BSD mode
+@@ -37,7 +37,7 @@ MANDIR=/usr/local/man
+
+ # Define to use srandom/random rather than srand/rand
+ # -> required on SunOS 4.1.3, SunOS 5, AIX 2 (BOSX 2 really), OSF1 V2.0
+-NO_SNPRINTF = -DNO_SNPRINTF=1
++#NO_SNPRINTF = -DNO_SNPRINTF=1
+
+ # Define if you lack strerror()
+ #NO_STRERROR = -DNO_STRERROR=1
+@@ -47,7 +47,7 @@ NO_SNPRINTF = -DNO_SNPRINTF=1
+ # -> if you want to debug bing define
+ #COPTIM = -g
+ # -> on Linux, SunOS 4 and OSF1 V2.0 you may specify
+-#COPTIM = -O2
++COPTIM = -O2
+ # -> on Solaris you may use
+ #COPTIM = -O
+ # on some hosts like AIX, HP-UX the optimisation options are already set
+@@ -109,5 +109,5 @@ clean:
+ $(RM) -f bing bing.ps bing.0 $(OBJS)
+
+ install: bing unix/bing.8
+- $(INSTALL) -m 644 -o man -g man unix/bing.8 $(MANDIR)/man8
+- $(INSTALL) -m 4555 -o root -g staff bing $(BINDIR)
++ $(INSTALL) -m 644 unix/bing.8 $(DESTDIR)$(MANDIR)/man8
++ $(INSTALL) -m 4555 -o root bing $(DESTDIR)$(BINDIR)