termux-packages/packages/electric-fence/Makefile.patch

34 lines
1.1 KiB
Diff
Raw Normal View History

2020-07-21 05:33:53 +02:00
diff --git a/../electric-fence/Makefile b/./Makefile
index 4e0dd5b6c..c839255de 100644
--- a/../electric-fence/Makefile
+++ b/./Makefile
@@ -6,10 +6,9 @@ endif
LIBS= -lpthread
-prefix=/usr
BIN_INSTALL_DIR= $(prefix)/bin
LIB_INSTALL_DIR= $(prefix)/lib
-MAN_INSTALL_DIR= $(prefix)/man/man3
+MAN_INSTALL_DIR= $(prefix)/share/man/man3
CC= cc
@@ -32,14 +31,14 @@ all: libefence.a libefence.so.0.0 tstheap eftest
@ echo
install: libefence.a libefence.3 libefence.so.0.0
- $(INSTALL) -m 755 ef.sh $(BIN_INSTALL_DIR)/ef
+ $(INSTALL) -m 755 $(TERMUX_PKG_BUILDER_DIR)/ef.sh $(BIN_INSTALL_DIR)/ef
$(INSTALL) -m 644 libefence.a $(LIB_INSTALL_DIR)
$(INSTALL) -m 755 libefence.so.0.0 $(LIB_INSTALL_DIR)
- rm -f $(LIB_INSTALL_DIR)/libefence.so.0
ln -s libefence.so.0.0 $(LIB_INSTALL_DIR)/libefence.so.0
- rm -f $(LIB_INSTALL_DIR)/libefence.so
ln -s libefence.so.0.0 $(LIB_INSTALL_DIR)/libefence.so
- $(INSTALL) -m 644 efence.3 $(MAN_INSTALL_DIR)/libefence.3
+ $(INSTALL) -Dm 644 libefence.3 $(MAN_INSTALL_DIR)/libefence.3
clean:
- rm -f $(OBJECTS) tstheap.o eftest.o tstheap eftest \