Files
ports/sysutils/env4801/Makefile
T
Baptiste Daroussin 00bd9a210e 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
2021-01-12 14:36:21 +00:00

37 lines
894 B
Makefile

# Created by: Patrick M. Hausen (pmh@hausen.com)
# $FreeBSD$
PORTNAME= env4801
PORTVERSION= 0.3
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://phk.freebsd.dk/soekris/env4801/
DISTFILES= Makefile env4801.c
DIST_SUBDIR= env4801
MAINTAINER= pmh@hausen.com
COMMENT= Output the voltages and temperatures of a Soekris Net4801 computer
ONLY_FOR_ARCHS= i386
NO_WRKSUBDIR= yes
EXTRACT_CMD= ${CP}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= ${WRKSRC}
PLIST_FILES= sbin/env4801 etc/rc.d/env4801.sh
SUB_FILES= env4801.sh pkg-message
OPTIONS_DEFINE= STATIC
OPTIONS_DEFAULT= STATIC
STATIC_DESC= Build a statically linked executable
post-patch-STATIC-off:
@${REINPLACE_CMD} -e '/-static/d' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/env4801 ${STAGEDIR}${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKDIR}/env4801.sh ${STAGEDIR}${PREFIX}/etc/rc.d
.include <bsd.port.mk>