1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00

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
This commit is contained in:
Baptiste Daroussin 2021-01-12 14:36:21 +00:00
parent 759c6ac832
commit 00bd9a210e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=561337
2 changed files with 12 additions and 6 deletions

View File

@ -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

View File

@ -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