diff options
| author | Yuval Adam <yuval@y3xz.com> | 2016-06-12 13:11:03 +0300 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2016-06-12 13:11:03 +0300 |
| commit | f6d3341b26649a69d987a52e61c724827c4fcde3 (patch) | |
| tree | 44ed07d873da3ebe3936efcb8b1c83312d759599 /_wip/pigpio-git/make.patch | |
| parent | fa23ff39a7b5a5e0f75e1aee2ff9737c75a9e713 (diff) | |
Rename pigpio to pigpio-git
Diffstat (limited to '_wip/pigpio-git/make.patch')
| -rw-r--r-- | _wip/pigpio-git/make.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/_wip/pigpio-git/make.patch b/_wip/pigpio-git/make.patch new file mode 100644 index 0000000..07acb78 --- /dev/null +++ b/_wip/pigpio-git/make.patch @@ -0,0 +1,29 @@ +diff --git a/Makefile b/Makefile +index 846daf0..f2f0402 100644 +--- a/Makefile ++++ b/Makefile +@@ -27,7 +27,7 @@ LL2 = -L. -lpigpiod_if -pthread -lrt + + LL3 = -L. -lpigpiod_if2 -pthread -lrt + +-prefix = /usr/local ++prefix = /usr + exec_prefix = $(prefix) + bindir = $(exec_prefix)/bin + includedir = $(prefix)/include +@@ -83,13 +83,12 @@ install: $(ALL) + install -m 0755 -s pig2vcd $(DESTDIR)$(bindir) + install -m 0755 -s pigpiod $(DESTDIR)$(bindir) + install -m 0755 -s pigs $(DESTDIR)$(bindir) +- if which python2; then python2 setup.py install; fi +- if which python3; then python3 setup.py install; fi ++ if which python2; then python2 setup.py install --root=$(DESTDIR); fi ++ if which python3; then python3 setup.py install --root=$(DESTDIR); fi + install -m 0755 -d $(DESTDIR)$(mandir)/man1 + install -m 0644 *.1 $(DESTDIR)$(mandir)/man1 + install -m 0755 -d $(DESTDIR)$(mandir)/man3 + install -m 0644 *.3 $(DESTDIR)$(mandir)/man3 +- ldconfig + + uninstall: + rm -f $(DESTDIR)$(includedir)/pigpio.h |
