Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:rogeroberholtzer
wiringPi
install.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File install.diff of Package wiringPi
Index: b/devLib/Makefile =================================================================== --- a/devLib/Makefile 2020-08-28 14:31:01.083219930 +0200 +++ b/devLib/Makefile 2020-08-28 14:41:35.650952914 +0200 @@ -24,6 +24,9 @@ VERSION=$(shell cat ../VERSION) DESTDIR?=/usr PREFIX?=/local +INCLUDEDIR?=$(PREFIX)/include +LIB?=lib +LIBDIR?=$(PREFIX)/$(LIB) LDCONFIG?=ldconfig @@ -87,22 +90,22 @@ tags: $(SRC) .PHONY: install install: $(DYNAMIC) $Q echo "[Install Headers]" - $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/include - $Q install -m 0644 $(HEADERS) $(DESTDIR)$(PREFIX)/include + $Q install -m 0755 -d $(DESTDIR)$(INCLUDEDIR) + $Q install -m 0644 $(HEADERS) $(DESTDIR)$(INCLUDEDIR) $Q echo "[Install Dynamic Lib]" - $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/lib - $Q install -m 0755 libwiringPiDev.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION) - $Q ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION) $(DESTDIR)/lib/libwiringPiDev.so + $Q install -m 0755 -d $(DESTDIR)$(LIBDIR) + $Q install -m 0755 libwiringPiDev.so.$(VERSION) $(DESTDIR)$(LIBDIR)/libwiringPiDev.so.$(VERSION) + $Q ln -sf libwiringPiDev.so.$(VERSION) $(DESTDIR)$(LIBDIR)/libwiringPiDev.so $Q $(LDCONFIG) .PHONY: install-static install-static: $(STATIC) $Q echo "[Install Headers]" - $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/include - $Q install -m 0644 $(HEADERS) $(DESTDIR)$(PREFIX)/include + $Q install -m 0755 -d $(DESTDIR)$(INCLUDEDIR) + $Q install -m 0644 $(HEADERS) $(DESTDIR)$(INCLUDEDIR) $Q echo "[Install Static Lib]" - $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/lib - $Q install -m 0755 libwiringPiDev.a $(DESTDIR)$(PREFIX)/lib + $Q install -m 0755 -d $(DESTDIR)$(LIBDIR) + $Q install -m 0755 libwiringPiDev.a $(DESTDIR)$(LIBDIR) .PHONY: install-deb install-deb: $(DYNAMIC) @@ -117,8 +120,8 @@ install-deb: $(DYNAMIC) .PHONY: uninstall uninstall: $Q echo "[UnInstall]" - $Q cd $(DESTDIR)$(PREFIX)/include/ && rm -f $(HEADERS) - $Q cd $(DESTDIR)$(PREFIX)/lib/ && rm -f libwiringPiDev.* + $Q cd $(DESTDIR)$(INCLUDEDIR)/ && rm -f $(HEADERS) + $Q cd $(DESTDIR)$(LIBDIR)/ && rm -f libwiringPiDev.* $Q $(LDCONFIG) Index: b/gpio/Makefile =================================================================== --- a/gpio/Makefile 2020-08-28 14:31:01.079219780 +0200 +++ b/gpio/Makefile 2020-08-28 15:14:04.395223948 +0200 @@ -25,6 +25,10 @@ DESTDIR?=/usr PREFIX?=/local +BINDIR?=$(PREFIX)/bin +INCLUDEDIR?=$(PREFIX)/include +LIBDIR?=$(PREFIX)/lib +MANDIR?=$(PREFIX)/man ifneq ($V,1) Q ?= @ @@ -32,10 +36,10 @@ endif #DEBUG = -g -O0 DEBUG = -O2 -INCLUDE = -I$(DESTDIR)$(PREFIX)/include +INCLUDE = -I$(DESTDIR)$(INCLUDEDIR) CFLAGS = $(DEBUG) -Wall -Wextra $(INCLUDE) -Winline -pipe -LDFLAGS = -L$(DESTDIR)$(PREFIX)/lib +LDFLAGS = -L$(DESTDIR)$(LIBDIR) LIBS = -lwiringPi -lwiringPiDev -lpthread # May not need to alter anything below this line @@ -71,13 +75,14 @@ tags: $(SRC) .PHONY: install install: gpio $Q echo "[Install]" - $Q cp gpio $(DESTDIR)$(PREFIX)/bin + $Q mkdir -p $(DESTDIR)$(BINDIR) + $Q cp gpio $(DESTDIR)$(BINDIR)/ ifneq ($(WIRINGPI_SUID),0) - $Q chown root.root $(DESTDIR)$(PREFIX)/bin/gpio - $Q chmod 4755 $(DESTDIR)$(PREFIX)/bin/gpio + $Q chown root.root $(DESTDIR)$(BINDIR)/gpio + $Q chmod 4755 $(DESTDIR)$(BINDIR)/gpio endif - $Q mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1 - $Q cp gpio.1 $(DESTDIR)$(PREFIX)/share/man/man1 + $Q mkdir -p $(DESTDIR)$(MANDIR)/man1 + $Q cp gpio.1 $(DESTDIR)$(MANDIR)/man1/ .PHONY: install-deb install-deb: gpio @@ -90,8 +95,8 @@ install-deb: gpio .PHONY: uninstall uninstall: $Q echo "[UnInstall]" - $Q rm -f $(DESTDIR)$(PREFIX)/bin/gpio - $Q rm -f $(DESTDIR)$(PREFIX)/share/man/man1/gpio.1 + $Q rm -f $(DESTDIR)$(BINDIR)/gpio + $Q rm -f $(DESTDIR)$(MANDIR)/man1/gpio.1 .PHONY: depend depend: Index: b/wiringPi/Makefile =================================================================== --- a/wiringPi/Makefile 2020-08-28 14:31:01.083219930 +0200 +++ b/wiringPi/Makefile 2020-08-28 15:33:07.614050115 +0200 @@ -24,6 +24,8 @@ VERSION=$(shell cat ../VERSION) DESTDIR?=/usr PREFIX?=/local +INCLUDEDIR?=$(PREFIX)/include +LIBDIR?=$(PREFIX)/lib LDCONFIG?=ldconfig @@ -96,12 +98,12 @@ tags: $(SRC) .PHONY: install install: $(DYNAMIC) $Q echo "[Install Headers]" - $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/include - $Q install -m 0644 $(HEADERS) $(DESTDIR)$(PREFIX)/include + $Q install -m 0755 -d $(DESTDIR)$(INCLUDEDIR) + $Q install -m 0644 $(HEADERS) $(DESTDIR)$(INCLUDEDIR) $Q echo "[Install Dynamic Lib]" - $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/lib - $Q install -m 0755 libwiringPi.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION) - $Q ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION) $(DESTDIR)/lib/libwiringPi.so + $Q install -m 0755 -d $(DESTDIR)$(LIBDIR) + $Q install -m 0755 libwiringPi.so.$(VERSION) $(DESTDIR)$(LIBDIR)/libwiringPi.so.$(VERSION) + $Q ln -sf libwiringPi.so.$(VERSION) $(DESTDIR)$(LIBDIR)/libwiringPi.so $Q $(LDCONFIG) .PHONY: install-deb @@ -117,8 +119,8 @@ install-deb: $(DYNAMIC) .PHONY: uninstall uninstall: $Q echo "[UnInstall]" - $Q cd $(DESTDIR)$(PREFIX)/include/ && rm -f $(HEADERS) - $Q cd $(DESTDIR)$(PREFIX)/lib/ && rm -f libwiringPi.* + $Q cd $(DESTDIR)$(INCLUDEDIR)/ && rm -f $(HEADERS) + $Q cd $(DESTDIR)$(LIBDIR)/ && rm -f libwiringPi.* $Q $(LDCONFIG)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor