ports/sysutils/di/files/patch-Makefile
Naram Qashat ccca232b0a sysutils/di: update to 4.53
Swith to DISTVERSION.
Add TEST_TARGET and USES=perl5 to test phase.

Changelog:
Fixed library check for modern compilers.
Removed old D language stuff.
Remove support for K&R compilers and ancient systems.
Fix debug output for env vars.
DI_ARGS: print error and exit when encountering unknown data.

PR:		280151
Approved by:	submitter is maintainer
2024-07-08 07:22:10 +02:00

20 lines
647 B
Text

--- Makefile.orig 2024-06-24 00:49:39 UTC
+++ Makefile
@@ -34,7 +34,7 @@ MKC_DIR = ./mkconfig
###
# installation options
#
-prefix = /usr/local
+prefix ?= /usr/local
PREFIX = $(prefix)
PROG = di
MPROG = mi
@@ -152,7 +152,7 @@ install-prog:
$(TEST) -d $(INST_BINDIR) || $(MKDIR) $(INST_BINDIR)
$(CP) -f ./$(FROMDIR)/$(PROG)$(EXE_EXT) $(DITARGET)
-$(RM) -f $(MTARGET) > /dev/null 2>&1
- -$(LN) -s $(DITARGET) $(MTARGET)
+ -$(LN) -s $(PROG)$(EXE_EXT) $(MTARGET)
@-test -f $(FROMDIR)/config.h && \
grep '^#define _enable_nls 1' $(FROMDIR)/config.h >/dev/null 2>&1 && \
(. ./$(FROMDIR)/di.env; $(MAKE) -e LOCALEDIR="$(LOCALEDIR)" \