aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/ipmitool
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-09-25 05:20:33 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-09-25 05:20:33 +0800
commit76ed785ebbfed070ca85b7d0818a045930525a1b (patch)
tree181310c43377b7afdd4d3322e51c661c2616866e /sysutils/ipmitool
parent01da2cdba2cf6a5d196aaeb2e202581569a0729f (diff)
downloadfreebsd-ports-graphics-76ed785ebbfed070ca85b7d0818a045930525a1b.tar.gz
freebsd-ports-graphics-76ed785ebbfed070ca85b7d0818a045930525a1b.tar.zst
freebsd-ports-graphics-76ed785ebbfed070ca85b7d0818a045930525a1b.zip
- Switch to options helpers
Approved by: portmgr blanket
Diffstat (limited to 'sysutils/ipmitool')
-rw-r--r--sysutils/ipmitool/Makefile20
1 files changed, 6 insertions, 14 deletions
diff --git a/sysutils/ipmitool/Makefile b/sysutils/ipmitool/Makefile
index 2d48403af35..cf2029b99ab 100644
--- a/sysutils/ipmitool/Makefile
+++ b/sysutils/ipmitool/Makefile
@@ -43,23 +43,15 @@ CONFIGURE_ARGS+= --enable-intf-open
CONFIGURE_ARGS+= --disable-intf-open
.endif
-.include <bsd.port.options.mk>
+DOCS_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-Makefile.in
-.if empty(PORT_OPTIONS:MDOCS)
-EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-Makefile.in
-.endif
-
-.if ${PORT_OPTIONS:MFREEIPMI}
-LIB_DEPENDS+= libfreeipmi.so:${PORTSDIR}/sysutils/freeipmi
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-CONFIGURE_ARGS+= --enable-intf-free
-.else
-CONFIGURE_ARGS+= --disable-intf-free
-.endif
+FREEIPMI_LIB_DEPENDS= libfreeipmi.so:${PORTSDIR}/sysutils/freeipmi
+FREEIPMI_CPPFLAGS= -I${LOCALBASE}/include
+FREEIPMI_LDFLAGS= -L${LOCALBASE}/lib
+FREEIPMI_CONFIGURE_ENABLE= intf-free
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${PERIODIC_DIR}
- @${INSTALL_SCRIPT} ${WRKDIR}/status-ipmi.sh ${STAGEDIR}${PREFIX}/${PERIODIC_DIR}/400.status-ipmi
+ ${INSTALL_SCRIPT} ${WRKDIR}/status-ipmi.sh ${STAGEDIR}${PREFIX}/${PERIODIC_DIR}/400.status-ipmi
.include <bsd.port.mk>