1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/sysutils/openhpi/Makefile
Mathieu Arnold e1bfdfbe56 Add DOCS options to ports that should have one.
Also various fixes related to said option.

PR:		230864
Submitted by:	mat
exp-runs by:	antoine
2018-09-10 13:14:50 +00:00

52 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= openhpi
PORTVERSION= 3.6.1
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= SF/openhpi/openhpi-stable/${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Hardware Platform Interface implementation
LICENSE= OPENHPI
LICENSE_NAME= OpenHPI license
LICENSE_FILE= ${WRKSRC}/COPYING
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid \
libnetsnmp.so:net-mgmt/net-snmp \
libgcrypt.so:security/libgcrypt
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
USES= gmake gnome libtool pathfix perl5 pkgconfig shebangfix ssl
SHEBANG_FILES= plugins/snmp_bc/eventmap2code.pl scripts/text2cstr.pl
USE_GNOME= glib20 libxml2
USE_LDCONFIG= yes
USE_PERL5= build
USE_RC_SUBR= openhpid
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} 's/-lstdc++//' \
${WRKSRC}/baselib/Makefile.in \
${WRKSRC}/openhpid/Makefile.in \
${WRKSRC}/plugins/dynamic_simulator/Makefile.in \
${WRKSRC}/plugins/ipmidirect/Makefile.in
@${REINPLACE_CMD} '/XML2_INCLUDE=/s|=.*|=-I${LOCALBASE}/include/libxml2|' \
${WRKSRC}/configure
post-install:
${MV} ${STAGEDIR}${ETCDIR}/openhpi.conf \
${STAGEDIR}${ETCDIR}/openhpi.conf.sample
${MV} ${STAGEDIR}${ETCDIR}/openhpiclient.conf \
${STAGEDIR}${ETCDIR}/openhpiclient.conf.sample
${MV} ${STAGEDIR}${ETCDIR}/simulation.data \
${STAGEDIR}${ETCDIR}/simulation.data.sample
.include <bsd.port.mk>