From a6087b4263869fc5d36482cc4f58857338055e40 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 11 Feb 2015 15:23:32 +0100 Subject: better handling of staging area for apps using wiringPi --- package/wiringPi/patches/patch-wiringPi_Makefile | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'package/wiringPi/patches/patch-wiringPi_Makefile') 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) -- cgit v1.2.3