SwordArMor-gentoo-overlay/dev-libs/libcli/files/libcli-Makefile.patch

31 lines
1.1 KiB
Diff
Raw Permalink Normal View History

2020-02-26 23:41:04 +01:00
--- a/libcli-1.10.2/Makefile 2020-02-26 21:30:48.655822684 +0100
+++ b/libcli-1.10.2/Makefile 2020-02-26 21:30:59.877871306 +0100
@@ -7,7 +7,7 @@
UNAME = $(shell sh -c 'uname -s 2>/dev/null || echo not')
DESTDIR =
-PREFIX = /usr/local
+PREFIX = /usr
MAJOR = 1
MINOR = 10
@@ -64,14 +64,14 @@
rm -f *.o $(LIB)* $(LIB_STATIC) clitest libcli-$(MAJOR).$(MINOR).$(REVISION).tar.gz
install: $(TARGET_LIBS)
- install -d $(DESTDIR)$(PREFIX)/include $(DESTDIR)$(PREFIX)/lib
+ install -d $(DESTDIR)$(PREFIX)/include $(DESTDIR)$(PREFIX)/lib64
install -m 0644 libcli.h $(DESTDIR)$(PREFIX)/include
ifeq (1,$(STATIC_LIB))
- install -m 0644 $(LIB_STATIC) $(DESTDIR)$(PREFIX)/lib
+ install -m 0644 $(LIB_STATIC) $(DESTDIR)$(PREFIX)/lib64
endif
ifeq (1,$(DYNAMIC_LIB))
- install -m 0755 $(LIB).$(MAJOR).$(MINOR).$(REVISION) $(DESTDIR)$(PREFIX)/lib
- cd $(DESTDIR)$(PREFIX)/lib && \
+ install -m 0755 $(LIB).$(MAJOR).$(MINOR).$(REVISION) $(DESTDIR)$(PREFIX)/lib64
+ cd $(DESTDIR)$(PREFIX)/lib64 && \
ln -fs $(LIB).$(MAJOR).$(MINOR).$(REVISION) $(LIB).$(MAJOR).$(MINOR) && \
ln -fs $(LIB).$(MAJOR).$(MINOR) $(LIB)
endif