mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
4a5150b387
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
82 lines
4.3 KiB
Diff
82 lines
4.3 KiB
Diff
--- ./makefile.orig 2020-05-19 16:44:50.000000000 -0500
|
|
+++ ./makefile 2020-10-23 15:49:08.155992793 -0500
|
|
@@ -39,8 +39,9 @@
|
|
|
|
lib/lib$(PROGN).so: $(LIBSRCS)
|
|
@mkdir -p lib
|
|
- $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-soname,lib$(PROGN).so -o lib/lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) $^ $(LIBS)
|
|
- @ln -sf lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) lib/lib$(PROGN).so
|
|
+ @$(CXX) $(LDFLAGS) -fPIC -shared -Wl,-soname,lib$(PROGN).so.$(MAJOR) -o lib/lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) $^ $(LIBS)
|
|
+ @ln -sf lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) lib/lib$(PROGN).so.$(MAJOR)
|
|
+ @ln -sf lib$(PROGN).so.$(MAJOR) lib/lib$(PROGN).so
|
|
|
|
bin-linked: lib/lib$(PROGN).so
|
|
@mkdir -p bin
|
|
@@ -56,42 +57,43 @@
|
|
@install -m 755 -d \
|
|
$(DESTDIR)/usr/bin \
|
|
$(DESTDIR)/etc/$(PROGN)/samples \
|
|
- $(DESTDIR)/etc/udev/rules.d
|
|
+# $(DESTDIR)/etc/udev/rules.d
|
|
@cp bin/$(PROGN) $(DESTDIR)/usr/bin
|
|
- @test -s $(DESTDIR)/usr/bin/g213-led || ln -s /usr/bin/$(PROGN) $(DESTDIR)/usr/bin/g213-led
|
|
- @test -s $(DESTDIR)/usr/bin/g410-led || ln -s /usr/bin/$(PROGN) $(DESTDIR)/usr/bin/g410-led
|
|
- @test -s $(DESTDIR)/usr/bin/g413-led || ln -s /usr/bin/$(PROGN) $(DESTDIR)/usr/bin/g413-led
|
|
- @test -s $(DESTDIR)/usr/bin/g512-led || ln -s /usr/bin/$(PROGN) $(DESTDIR)/usr/bin/g512-led
|
|
- @test -s $(DESTDIR)/usr/bin/g513-led || ln -s /usr/bin/$(PROGN) $(DESTDIR)/usr/bin/g513-led
|
|
- @test -s $(DESTDIR)/usr/bin/g610-led || ln -s /usr/bin/$(PROGN) $(DESTDIR)/usr/bin/g610-led
|
|
- @test -s $(DESTDIR)/usr/bin/g815-led || ln -s /usr/bin/$(PROGN) $(DESTDIR)/usr/bin/g815-led
|
|
- @test -s $(DESTDIR)/usr/bin/g910-led || ln -s /usr/bin/$(PROGN) $(DESTDIR)/usr/bin/g910-led
|
|
- @test -s $(DESTDIR)/usr/bin/gpro-led || ln -s /usr/bin/$(PROGN) $(DESTDIR)/usr/bin/gpro-led
|
|
+ @test -s $(DESTDIR)/usr/bin/g213-led || ln -s $(PROGN) $(DESTDIR)/usr/bin/g213-led
|
|
+ @test -s $(DESTDIR)/usr/bin/g410-led || ln -s $(PROGN) $(DESTDIR)/usr/bin/g410-led
|
|
+ @test -s $(DESTDIR)/usr/bin/g413-led || ln -s $(PROGN) $(DESTDIR)/usr/bin/g413-led
|
|
+ @test -s $(DESTDIR)/usr/bin/g512-led || ln -s $(PROGN) $(DESTDIR)/usr/bin/g512-led
|
|
+ @test -s $(DESTDIR)/usr/bin/g513-led || ln -s $(PROGN) $(DESTDIR)/usr/bin/g513-led
|
|
+ @test -s $(DESTDIR)/usr/bin/g610-led || ln -s $(PROGN) $(DESTDIR)/usr/bin/g610-led
|
|
+ @test -s $(DESTDIR)/usr/bin/g815-led || ln -s $(PROGN) $(DESTDIR)/usr/bin/g815-led
|
|
+ @test -s $(DESTDIR)/usr/bin/g910-led || ln -s $(PROGN) $(DESTDIR)/usr/bin/g910-led
|
|
+ @test -s $(DESTDIR)/usr/bin/gpro-led || ln -s $(PROGN) $(DESTDIR)/usr/bin/gpro-led
|
|
@cp sample_profiles/* $(DESTDIR)/etc/$(PROGN)/samples
|
|
- @cp udev/$(PROGN).rules $(DESTDIR)/etc/udev/rules.d
|
|
- @test -s /usr/bin/systemd-run && \
|
|
- install -m 755 -d $(DESTDIR)$(SYSTEMDDIR)/system && \
|
|
- cp systemd/$(PROGN)-reboot.service $(DESTDIR)$(SYSTEMDDIR)/system
|
|
+# @cp udev/$(PROGN).rules $(DESTDIR)/etc/udev/rules.d
|
|
+# @test -s /usr/bin/systemd-run && \
|
|
+# install -m 755 -d $(DESTDIR)$(SYSTEMDDIR)/system && \
|
|
+# cp systemd/$(PROGN)-reboot.service $(DESTDIR)$(SYSTEMDDIR)/system
|
|
|
|
install-lib: lib
|
|
@install -m 755 -d $(libdir)
|
|
@install -m 644 lib/lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) $(libdir)/
|
|
- @ln -sf lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) $(libdir)/lib$(PROGN).so
|
|
+ @ln -sf lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) $(libdir)/lib$(PROGN).so.$(MAJOR)
|
|
+ @ln -sf lib$(PROGN).so.$(MAJOR) $(libdir)/lib$(PROGN).so
|
|
|
|
install-dev: install-lib
|
|
@mkdir -p $(includedir)/$(PROGN)/
|
|
@install -m 644 src/classes/*.h $(includedir)/$(PROGN)
|
|
|
|
install: setup
|
|
- @test -s /etc/$(PROGN)/profile || \
|
|
- cp /etc/$(PROGN)/samples/group_keys /etc/$(PROGN)/profile
|
|
- @test -s /etc/$(PROGN)/reboot || \
|
|
- cp /etc/$(PROGN)/samples/all_off /etc/$(PROGN)/reboot
|
|
- @udevadm control --reload-rules
|
|
- @$(PROGN) -p /etc/$(PROGN)/profile
|
|
- @test -s /usr/bin/systemd-run && \
|
|
- systemctl daemon-reload && \
|
|
- systemctl enable $(PROGN)-reboot
|
|
+ @test -s $(DESTDIR)/etc/$(PROGN)/profile || \
|
|
+ cp $(DESTDIR)/etc/$(PROGN)/samples/group_keys $(DESTDIR)/etc/$(PROGN)/profile
|
|
+ @test -s $(DESTDIR)/etc/$(PROGN)/reboot || \
|
|
+ cp $(DESTDIR)/etc/$(PROGN)/samples/all_off $(DESTDIR)/etc/$(PROGN)/reboot
|
|
+# @udevadm control --reload-rules
|
|
+# @$(PROGN) -p /etc/$(PROGN)/profile
|
|
+# @test -s /usr/bin/systemd-run && \
|
|
+# systemctl daemon-reload && \
|
|
+# systemctl enable $(PROGN)-reboot
|
|
|
|
uninstall-lib:
|
|
@rm -f $(libdir)/lib$(PROGN).so*
|