mirror of
https://git.freebsd.org/ports.git
synced 2025-06-19 03:30:32 -04:00
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
20 lines
647 B
Text
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)" \
|