aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2013-10-30 22:33:22 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2013-10-30 22:33:22 +0000
commit62df3c0682bada0b241d3c1fe0f124d969f1cdf9 (patch)
treeeeef729e9e8e4c6dba238b09a68b0dc8ba12b6b1 /editors
parent135825469506bfc28b953add49a19160e23ede7d (diff)
downloadports-62df3c0682bada0b241d3c1fe0f124d969f1cdf9.tar.gz
ports-62df3c0682bada0b241d3c1fe0f124d969f1cdf9.zip
Notes
Diffstat (limited to 'editors')
-rw-r--r--editors/libreoffice/Makefile17
1 files changed, 12 insertions, 5 deletions
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 <bsd.port.options.mk>
@@ -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 <bsd.port.pre.mk>
-.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