diff options
author | adamw <adamw@FreeBSD.org> | 2014-03-04 02:03:21 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2014-03-04 02:03:21 +0800 |
commit | a5060aacfbf653441f9289ee0c51329e25bdab3d (patch) | |
tree | 690a12153e3d08053fb515d0a3d38790df1be918 /devel | |
parent | c53baffc7063126a5a60a486bbf8e1653c37ca27 (diff) | |
download | freebsd-ports-graphics-a5060aacfbf653441f9289ee0c51329e25bdab3d.tar.gz freebsd-ports-graphics-a5060aacfbf653441f9289ee0c51329e25bdab3d.tar.zst freebsd-ports-graphics-a5060aacfbf653441f9289ee0c51329e25bdab3d.zip |
Leverage OPTIONS helpers to avoid unnecessary inclusion
of bsd.options.mk.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/m4/Makefile | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/devel/m4/Makefile b/devel/m4/Makefile index cf0aede9847..010f566383f 100644 --- a/devel/m4/Makefile +++ b/devel/m4/Makefile @@ -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> |