svn commit: r346945 - head/devel/m4
Adam Weinberger
adamw at FreeBSD.org
Mon Mar 3 18:03:21 UTC 2014
Author: adamw
Date: Mon Mar 3 18:03:21 2014
New Revision: 346945
URL: http://svnweb.freebsd.org/changeset/ports/346945
QAT: https://qat.redports.org/buildarchive/r346945/
Log:
Leverage OPTIONS helpers to avoid unnecessary inclusion
of bsd.options.mk.
Modified:
head/devel/m4/Makefile
Modified: head/devel/m4/Makefile
==============================================================================
--- head/devel/m4/Makefile Mon Mar 3 17:58:43 2014 (r346944)
+++ head/devel/m4/Makefile Mon Mar 3 18:03:21 2014 (r346945)
@@ -21,19 +21,13 @@ EXAMPLESDIR= share/examples/gm4
OPTIONS_DEFINE= LIBSIGSEGV
LIBSIGSEGV_DESC= Use libsigsegv for better diagnostics
+LIBSIGSEGV_LIB_DEPENDS= libsigsegv.so:${PORTSDIR}/devel/libsigsegv
+LIBSIGSEGV_CONFIGURE_ON= --with-libsigsegv-prefix=${LOCALBASE}
+LIBSIGSEGV_CONFIGURE_OFF= --without-libsigsegv-prefix
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.m4 \
${STAGEDIR}${PREFIX}/${EXAMPLESDIR}
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MLIBSIGSEGV}
-LIB_DEPENDS+= libsigsegv.so:${PORTSDIR}/devel/libsigsegv
-CONFIGURE_ARGS+= --with-libsigsegv-prefix=${LOCALBASE}
-.else
-CONFIGURE_ARGS+= --without-libsigsegv-prefix
-.endif
-
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list