summaryrefslogtreecommitdiff
path: root/package/wiringPi/patches/patch-wiringPi_Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbrodkorb@conet.de>2015-02-11 15:23:32 +0100
committerWaldemar Brodkorb <wbrodkorb@conet.de>2015-02-11 15:23:32 +0100
commita6087b4263869fc5d36482cc4f58857338055e40 (patch)
tree6433cca3e2e91f8fb6a73ba021f90eb6e864fd01 /package/wiringPi/patches/patch-wiringPi_Makefile
parent93f72c0d1f14c34fc5481cae9c8391c1c4e66a68 (diff)
better handling of staging area for apps using wiringPi
Diffstat (limited to 'package/wiringPi/patches/patch-wiringPi_Makefile')
-rw-r--r--package/wiringPi/patches/patch-wiringPi_Makefile23
1 files changed, 21 insertions, 2 deletions
diff --git a/package/wiringPi/patches/patch-wiringPi_Makefile b/package/wiringPi/patches/patch-wiringPi_Makefile
index 4695031e6..4dac54612 100644
--- a/package/wiringPi/patches/patch-wiringPi_Makefile
+++ b/package/wiringPi/patches/patch-wiringPi_Makefile
@@ -1,6 +1,16 @@
--- wiringPi-72b2af231be337d45a557ce6ca3ed1eeb6675ffd.orig/wiringPi/Makefile 2015-02-11 09:58:24.000000000 +0100
-+++ wiringPi-72b2af231be337d45a557ce6ca3ed1eeb6675ffd/wiringPi/Makefile 2015-02-11 10:20:20.360739647 +0100
-@@ -30,10 +30,10 @@ DYNAMIC=libwiringPi.so.$(VERSION)
++++ wiringPi-72b2af231be337d45a557ce6ca3ed1eeb6675ffd/wiringPi/Makefile 2015-02-11 13:29:16.820794439 +0100
+@@ -22,18 +22,18 @@
+ #################################################################################
+
+ VERSION=$(shell cat ../VERSION)
+-DESTDIR=/usr
+-PREFIX=/local
++DESTDIR?=
++PREFIX=/usr
+
+ STATIC=libwiringPi.a
+ DYNAMIC=libwiringPi.so.$(VERSION)
#DEBUG = -g -O0
DEBUG = -O2
@@ -28,3 +38,12 @@
.PHONY: clean
+@@ -110,7 +111,7 @@ install: $(DYNAMIC)
+ @install -m 0755 -d $(DESTDIR)$(PREFIX)/lib
+ @install -m 0755 libwiringPi.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION)
+ @ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION) $(DESTDIR)/lib/libwiringPi.so
+- @ldconfig
++ @ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION) $(DESTDIR)/lib/libwiringPi.so.2
+
+ .PHONY: install-static
+ install-static: $(STATIC)