aboutsummaryrefslogtreecommitdiff
path: root/sysutils/freeipmi
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-07-09 14:25:53 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-07-09 14:25:53 +0000
commitacb6e0925191c5ca5507d3d32b64719141575ed2 (patch)
treeb5feac6916b473742a8ab14efc74490682271619 /sysutils/freeipmi
parentc0be2db6873e3ae0ac8f6243544ac89f6a2f4c06 (diff)
downloadports-acb6e0925191c5ca5507d3d32b64719141575ed2.tar.gz
ports-acb6e0925191c5ca5507d3d32b64719141575ed2.zip
Notes
Diffstat (limited to 'sysutils/freeipmi')
-rw-r--r--sysutils/freeipmi/Makefile24
1 files changed, 13 insertions, 11 deletions
diff --git a/sysutils/freeipmi/Makefile b/sysutils/freeipmi/Makefile
index 84b780c0fc9b..f8637ba570f2 100644
--- a/sysutils/freeipmi/Makefile
+++ b/sysutils/freeipmi/Makefile
@@ -20,8 +20,8 @@ LICENSE= GPLv3
LIB_DEPENDS= argp:${PORTSDIR}/devel/argp-standalone \
gcrypt:${PORTSDIR}/security/libgcrypt
-OPTIONS= DEBUG "Debugging features" off \
- IOPERM "Use i386_set_ioperm (i386/amd64 only)" off
+OPTIONS_DEFINE= DEBUG DOCS IOPERM
+IOPERM_DESC= Use i386_set_ioperm (i386/amd64 only)
CONFIGURE_ARGS= --disable-init-scripts \
--disable-logdir \
@@ -63,18 +63,20 @@ CONF_DIR?= ${ETCDIR}
LOG_DIR= /var/log/${PORTNAME}
RUN_DIR= /var/lib/${PORTNAME}
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_DEBUG)
+.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug --enable-trace
.endif
-.if defined(WITH_IOPERM)
-.if ${ARCH} == "amd64" && ${OSVERSION} < 800000
-BROKEN= IOPERM option is not available on FreeBSD/amd64 7.x and below
-.else
+.if ${PORT_OPTIONS:MIOPERM}
CPPFLAGS+= -DUSE_IOPERM
.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MIOPERM} && ${ARCH} == "amd64" && ${OSVERSION} < 800000
+BROKEN= IOPERM option is not available on FreeBSD/amd64 7.x
.endif
post-patch:
@@ -83,13 +85,13 @@ post-patch:
-e '/^FREEIPMI_SYSCONFDIR/ s|/freeipmi/$$||' \
-e '/FREEIPMI_CONFIG_FILE_DEFAULT_TMP1=/ s|freeipmi.conf|&.sample|' \
${WRKSRC}/configure
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-docDATA||' \
${WRKSRC}/Makefile.in ${WRKSRC}/doc/Makefile.in
.endif
post-install:
- @${MKDIR} ${LOG_DIR}
- @${CHMOD} 0700 ${CACHE_DIR} ${LOG_DIR} ${RUN_DIR}
+ ${MKDIR} ${LOG_DIR}/
+ ${CHMOD} 0700 ${CACHE_DIR}/ ${LOG_DIR}/ ${RUN_DIR}/
.include <bsd.port.post.mk>