From a77f4b295738eaf089d47a05b98adc261c48d845 Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Thu, 5 Oct 2000 01:32:21 +0000 Subject: Add bsd.gnome.mk that defines gnome-related dependency stuff and hooks in bsd.port.mk to support it. In particular, bsd.port.mk includes bsd.gnome.mk twice (once in the pre.mk section, once in the post.mk section) and prints out a message notifying the user of the existence of WITH_* options when one exists. It also adds MAKE=${GMAKE} to CONFIGURE_ENV when USE_GMAKE is defined. (This is not related to gnome, but I assume it's useful somewhere and it shouldn't hurt.) Submitted by: ade, reg --- Mk/bsd.port.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Mk/bsd.port.mk') diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index cbe2396182c5..f0cbd3d7a464 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -729,6 +729,8 @@ MAKE_ENV+= OPENSSLLIB=${OPENSSLLIB} OPENSSLINC=${OPENSSLINC} \ .include "${PORTSDIR}/Mk/bsd.ruby.mk" .endif +.include "${PORTSDIR}/Mk/bsd.gnome.mk" + # defaults to 3.3.6; will be changed to 4.0 when it is ready XFREE86_VERSION?= 3 @@ -793,6 +795,7 @@ BUILD_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip .endif .if defined(USE_GMAKE) BUILD_DEPENDS+= gmake:${PORTSDIR}/devel/gmake +CONFIGURE_ENV+= MAKE=${GMAKE} .endif .if defined(USE_AUTOMAKE) USE_AUTOCONF= yes @@ -918,6 +921,8 @@ LIB_DEPENDS+= X11.6:${PORTSDIR}/x11/XFree86-4-libraries .endif .endif +.include "${PORTSDIR}/Mk/bsd.gnome.mk" + .if exists(${PORTSDIR}/../Makefile.inc) .include "${PORTSDIR}/../Makefile.inc" .endif @@ -2209,6 +2214,15 @@ post-${name}: .endfor +.if defined(GNOME_OPTION_MSG) && (!defined(PACKAGE_BUILDING) || !defined(BATCH)) +pre-everything:: echo-gnome-option-msg + +echo-gnome-option-msg: + @for m in ${GNOME_OPTION_MSG}; do \ + ${ECHO_MSG} $$m; \ + done +.endif + # Patch-libtool # # Special target to automatically make libtool using ports use the -- cgit v1.2.3