From 00bd9a210eb6c99c5d56f8a234ea1bdb4113324c Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Tue, 12 Jan 2021 14:36:21 +0000 Subject: [PATCH] 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 --- sysutils/env4801/Makefile | 7 +------ sysutils/env4801/files/patch-Makefile | 11 +++++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 sysutils/env4801/files/patch-Makefile 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 - -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 +