aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2024-01-31 11:50:30 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2024-01-31 12:58:34 +0000
commit8d4c19941592c7e505f710bb61dbe5c21b76d8c6 (patch)
tree333b19af4f496efa5debaa5bdc92b7ee17501d32
parentd449cc2bb709c0789bc8d8d2fe9cd6c0098dde9b (diff)
downloadports-8d4c19941592c7e505f710bb61dbe5c21b76d8c6.tar.gz
ports-8d4c19941592c7e505f710bb61dbe5c21b76d8c6.zip
misc/countrycodes: Sanitize MANPREFIX
Reported by: antoine
-rw-r--r--misc/countrycodes/files/patch-Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/misc/countrycodes/files/patch-Makefile b/misc/countrycodes/files/patch-Makefile
index 6feacbe1e117..8f15b3adb460 100644
--- a/misc/countrycodes/files/patch-Makefile
+++ b/misc/countrycodes/files/patch-Makefile
@@ -3,33 +3,33 @@
@@ -9,7 +9,7 @@ bindir ?= ${prefix}/bin
prefix ?= /usr/local
bindir ?= ${prefix}/bin
-
+
-mandir ?= ${prefix}/man/man1
-+mandir ?= ${MANPREFIX}/share/man/man1
-
++mandir ?= ${prefix}/share/man/man1
+
# For system that doesn't support mkdir -p.
# If you have Linux, don't bother.
@@ -23,13 +23,13 @@ LOGDIRMODE=700
LOGDIRMODE=700
-
+
# Compiler to use
-CC=gcc
+CC?=gcc
-
+
# Compiler warnings
-WARNINGS= -pedantic -Wall
+#WARNINGS= -pedantic -Wall
-
+
# Compiler flags
-CCOPTS = -O2 -fomit-frame-pointer
+CCOPTS = ${CFLAGS}
-
+
# The makefile standards document I read says that I have to put it here...
SHELL = /bin/sh
@@ -66,11 +66,11 @@ strip:
strip:
strip $(PROGRAM)
-
+
-install:
- $(MKDIRECTORY) $(DESTDIR)/${bindir} $(DESTDIR)/${mandir}/man1
+install: strip
@@ -38,6 +38,6 @@
@echo "Installing man page..."
- $(INSTALL) -m 644 iso3166.1 $(DESTDIR)/${mandir}/man1
+ $(INSTALL) -m 644 iso3166.1 $(DESTDIR)/${mandir}
-
+
update-man:
@$(SEDBIN) $(SEDCMDS) iso3166.1.in > iso3166.1