From b5579cc9da051ecddf67d725c6656985fa9df3c1 Mon Sep 17 00:00:00 2001 From: jkim Date: Wed, 30 Oct 2013 22:33:22 +0000 Subject: - Fix build with lang/clang33. It was executing ld(1) from the base. [1] - Fix build with bmake(1). [2] - Add an option to increase build verbosity to debug build issues. Reported by: ale [1] Analyzed by: tijl [1] Submitted by: brooks [1] Submitted by: tijl [2] --- editors/libreoffice/Makefile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'editors/libreoffice') diff --git a/editors/libreoffice/Makefile b/editors/libreoffice/Makefile index 973363c696e7..05776785a8cb 100644 --- a/editors/libreoffice/Makefile +++ b/editors/libreoffice/Makefile @@ -159,7 +159,7 @@ CONFIGURE_ARGS+= --disable-epm \ --without-system-mozilla OPTIONS_DEFINE= CUPS DEBUG GNOME GTK2 GTK3 JAVA KDE4 MMEDIA PGSQL SDK \ - SYSTRAY TEST WEBDAV + SYSTRAY TEST VERBOSE WEBDAV OPTIONS_DEFAULT=CUPS GTK2 JAVA_DESC= Add java support (XML Filters, macros) @@ -168,6 +168,7 @@ PGSQL_DESC= Build with PostgreSQL-SDBC driver SDK_DESC= Build with SDK SYSTRAY_DESC= Enable systemtray quickstarter TEST_DESC= Run all regression tests +VERBOSE_DESC= Increase build verbosity WEBDAV_DESC= Enable webdav protocol .include @@ -183,12 +184,17 @@ CONFIGURE_ARGS+= --disable-cups IGNORE= known as broken CONFIGURE_ARGS+= --enable-debug \ --enable-dbgutil \ - --enable-verbose \ --enable-crashdump .else CONFIGURE_ARGS+= --enable-release-build .endif +.if ${PORT_OPTIONS:MDEBUG} || ${PORT_OPTIONS:MVERBOSE} +CONFIGURE_ARGS+= --enable-verbose +.else +CONFIGURE_ARGS+= --disable-verbose +.endif + .if ${PORT_OPTIONS:MGNOME} LIB_DEPENDS+= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib USE_GNOME+= gconf2 @@ -320,8 +326,9 @@ CONFIGURE_ARGS+= --disable-neon .include -.if ${CXX:M${LOCALBASE}/bin/clang++} +.if ${CXX:M${LOCALBASE}/bin/clang++*} USE_BINUTILS= yes +LDFLAGS= -B${LOCALBASE}/bin .endif .if ${COMPILER_FEATURES:Mlibc++} @@ -334,9 +341,9 @@ CONFIGURE_ARGS+= --with-linker-hash-style=sysv ACLOCAL_ARGS= -I "${WRKSRC}/m4" CPPFLAGS= -I${LOCALBASE}/include -LDFLAGS= -L${LOCALBASE}/lib +LDFLAGS+= -L${LOCALBASE}/lib -MAKE_ENV+= ENVCFLAGS="${CFLAGS}" ENVCXXFLAGS="${CXXFLAGS}" +MAKE_ENV+= ENVCFLAGS="${CFLAGS}" ENVCFLAGSCXX="${CXXFLAGS}" MAKE_ENV+= ENVLINKFLAGS="${LDFLAGS}" MAKE_ENV+= LANG=C LC_ALL=C MAKE_ENV+= SED="${LOCALBASE}/bin/gsed" USE_GMAKE=1 -- cgit