svn commit: r561337 - in head/sysutils/env4801: . files
Baptiste Daroussin
bapt at FreeBSD.org
Tue Jan 12 14:36:22 UTC 2021
Author: bapt
Date: Tue Jan 12 14:36:21 2021
New Revision: 561337
URL: https://svnweb.freebsd.org/changeset/ports/561337
Log:
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
Added:
head/sysutils/env4801/files/patch-Makefile (contents, props changed)
Modified:
head/sysutils/env4801/Makefile
Modified: head/sysutils/env4801/Makefile
==============================================================================
--- head/sysutils/env4801/Makefile Tue Jan 12 14:35:14 2021 (r561336)
+++ head/sysutils/env4801/Makefile Tue Jan 12 14:36:21 2021 (r561337)
@@ -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
Added: head/sysutils/env4801/files/patch-Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/env4801/files/patch-Makefile Tue Jan 12 14:36:21 2021 (r561337)
@@ -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
+
More information about the svn-ports-all
mailing list