aboutsummaryrefslogtreecommitdiff
path: root/sysutils/env4801
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2021-01-12 14:36:21 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2021-01-12 14:36:21 +0000
commit00bd9a210eb6c99c5d56f8a234ea1bdb4113324c (patch)
tree9cf3fdb89dba244046475144864d5d1ea2f439eb /sysutils/env4801
parent759c6ac8327bef75a7fa4208b701f99cb58b7222 (diff)
downloadports-00bd9a210eb6c99c5d56f8a234ea1bdb4113324c.tar.gz
ports-00bd9a210eb6c99c5d56f8a234ea1bdb4113324c.zip
allow to build on recent head
The distfile is using the FreeBSD make framework provided in sources to build, but still defines NO_MAN which is not supported for a while to define it expects no manual pages, the properly to define it now is to declare an empty MAN variable. While here use options helpers from the ports framework
Notes
Notes: svn path=/head/; revision=561337
Diffstat (limited to 'sysutils/env4801')
-rw-r--r--sysutils/env4801/Makefile7
-rw-r--r--sysutils/env4801/files/patch-Makefile11
2 files changed, 12 insertions, 6 deletions
diff --git a/sysutils/env4801/Makefile b/sysutils/env4801/Makefile
index a21b40d15cb2..21d242d301b0 100644
--- a/sysutils/env4801/Makefile
+++ b/sysutils/env4801/Makefile
@@ -17,7 +17,6 @@ NO_WRKSUBDIR= yes
EXTRACT_CMD= ${CP}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= ${WRKSRC}
-MK_MAN= no
PLIST_FILES= sbin/env4801 etc/rc.d/env4801.sh
@@ -27,12 +26,8 @@ OPTIONS_DEFINE= STATIC
OPTIONS_DEFAULT= STATIC
STATIC_DESC= Build a statically linked executable
-.include <bsd.port.options.mk>
-
-post-patch:
-.if ! ${PORT_OPTIONS:MSTATIC}
+post-patch-STATIC-off:
@${REINPLACE_CMD} -e '/-static/d' ${WRKSRC}/Makefile
-.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/env4801 ${STAGEDIR}${PREFIX}/sbin
diff --git a/sysutils/env4801/files/patch-Makefile b/sysutils/env4801/files/patch-Makefile
new file mode 100644
index 000000000000..1b52463427f4
--- /dev/null
+++ b/sysutils/env4801/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig 2021-01-12 14:27:18 UTC
++++ Makefile
+@@ -2,7 +2,7 @@ PROG= env4801
+
+ WARNS?= 3
+
+-NO_MAN= sorry
++MAN=
+
+ #CFLAGS += -fno-builtin-ffs
+