mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
d1ea04a524
PR: 202779 Submitted by: Naram Qashat <cyberbotx@cyberbotx.com> (maintainer)
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
--- Makefile.orig 2015-05-18 19:48:09 UTC
|
|
+++ Makefile
|
|
@@ -36,12 +36,12 @@ MKC_DIR = ./mkconfig
|
|
###
|
|
# installation options
|
|
#
|
|
-prefix = /usr/local
|
|
+prefix ?= /usr/local
|
|
LOCALEDIR = $(prefix)/share/locale
|
|
PROG = di
|
|
MPROG = mi
|
|
#
|
|
-INSTALL_DIR = $(prefix)
|
|
+INSTALL_DIR = $(DESTDIR)$(prefix)
|
|
INSTALL_BIN_DIR = $(INSTALL_DIR)/bin
|
|
INST_LOCALEDIR = $(INSTALL_DIR)/share/locale
|
|
TARGET = $(INSTALL_BIN_DIR)/$(PROG)$(EXE_EXT)
|
|
@@ -58,7 +58,7 @@ INSTPERM = 4111 # install suid if your
|
|
#
|
|
# simple man page installation
|
|
#
|
|
-DI_MANINSTDIR = $(INSTALL_DIR)/share/man
|
|
+DI_MANINSTDIR = $(INSTALL_DIR)/man
|
|
DI_MANDIR = $(DI_MANINSTDIR)/man1
|
|
MAN_TARGET = $(PROG).1
|
|
MANPERM = 644
|
|
@@ -140,7 +140,7 @@ install-prog:
|
|
$(TEST) -d $(INSTALL_BIN_DIR) || $(MKDIR) $(INSTALL_BIN_DIR)
|
|
$(CP) -f ./$(FROMDIR)/$(PROG)$(EXE_EXT) $(TARGET)
|
|
-$(RM) -f $(MTARGET) > /dev/null 2>&1
|
|
- -$(LN) -s $(PROG)$(EXE_EXT) $(MTARGET)
|
|
+ -( cd $(INSTALL_BIN_DIR) && $(LN) -s $(PROG)$(EXE_EXT) $(MPROG)$(EXE_EXT) )
|
|
@-test -f $(FROMDIR)/config.h && \
|
|
grep '^#define _enable_nls 1' $(FROMDIR)/config.h >/dev/null 2>&1 && \
|
|
(. ./$(FROMDIR)/di.env; $(MAKE) -e INST_LOCALEDIR="$(INST_LOCALEDIR)" \
|