diff options
Diffstat (limited to 'editors/libreoffice/Makefile')
-rw-r--r-- | editors/libreoffice/Makefile | 85 |
1 files changed, 57 insertions, 28 deletions
diff --git a/editors/libreoffice/Makefile b/editors/libreoffice/Makefile index 2aca37c4bd64..9f9ac2f482a4 100644 --- a/editors/libreoffice/Makefile +++ b/editors/libreoffice/Makefile @@ -2,7 +2,7 @@ .include "${.CURDIR}/Makefile.common" -PORTREVISION= 3 +PORTREVISION= 0 MASTER_SITE_SUBDIR= src/${PORTVERSION}/ MASTER_SITES+= http://dev-www.libreoffice.org/src/:ext \ @@ -24,6 +24,9 @@ BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \ vigra-config:${PORTSDIR}/graphics/vigra LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo \ + cdr:${PORTSDIR}/graphics/libcdr \ + lcms2:${PORTSDIR}/graphics/lcms2 \ + clucene-core:${PORTSDIR}/textproc/clucene \ xml2.5:${PORTSDIR}/textproc/libxml2 \ xslt.2:${PORTSDIR}/textproc/libxslt \ expat.6:${PORTSDIR}/textproc/expat2 \ @@ -40,13 +43,10 @@ LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo \ rdf.0:${PORTSDIR}/textproc/redland \ exttextcat-2.0.0:${PORTSDIR}/textproc/libexttextcat \ lpsolve55:${PORTSDIR}/math/lp_solve \ - cups.2:${PORTSDIR}/print/cups-client \ visio-0.0.0:${PORTSDIR}/textproc/libvisio \ graphite2:${PORTSDIR}/graphics/graphite2 \ nss3.1:${PORTSDIR}/security/nss \ - SampleICC.2:${PORTSDIR}/graphics/sampleicc \ - png15:${PORTSDIR}/graphics/png \ - cmis-0.2.0:${PORTSDIR}/net/libcmis \ + png15:${PORTSDIR}/graphics/png RUN_DEPENDS= ${LOCALBASE}/lib/X11/fonts/Liberation/LiberationMono-Bold.ttf:${PORTSDIR}/x11-fonts/liberation-fonts-ttf \ ${LOCALBASE}/lib/X11/fonts/LinLibertineG/LinLibertine_DR_G.ttf:${PORTSDIR}/x11-fonts/linuxlibertine-g \ @@ -75,8 +75,9 @@ DISTFILES+= ${PORTNAME}-${components}-${LOVERSION}${EXTRACT_SUFX} EXTRACT_ONLY:= ${DISTFILES} -#DISTFILES+= f02578f5218f217a9f20e9c30e119c6a-boost_1_44_0.tar.bz2:ext +DISTFILES+= 0d2dcdfbf28d6208751b33057f5361f0-libcmis-0.2.3.tar.gz:ext +USE_AUTOTOOLS= autoconf aclocal USE_BDB= yes USE_PERL5_BUILD= yes GNU_CONFIGURE= yes @@ -90,17 +91,26 @@ MAKE_JOBS_UNSAFE= yes USE_GETTEXT= yes USE_PKGCONFIG= build -OPTIONS_DEFINE= WEBDAV KDE4 GTK2 GTK3 GNOME JAVA SYSTRAY MMEDIA SDK SVG DEBUG PGSQL -OPTIONS_DEFAULT= GTK2 SVG +OPTIONS_DEFINE= CPPUNIT CUPS DEBUG GNOME GTK2 GTK3 JAVA KDE4 MERGELIBS MMEDIA \ + PGSQL SDK SVG SYSTRAY WEBDAV +OPTIONS_DEFAULT=CUPS GTK2 MERGELIBS SVG +CPPUNIT_DESC= Run C++ unit tests PGSQL_DESC= Build with PostgreSQL-SDBC driver +MERGELIBS_DESC= Enable linking of big merged library SDK_DESC= Build with SDK MMEDIA_DESC= Enable multimedia backend for impress SYSTRAY_DESC= Enable systemtray quickstarter WEBDAV_DESC= Enable webdav protocol JAVA_DESC= Add java support (XML Filters, macros) -CONFIGURE_ENV= DMAKE=${LOCALBASE}/bin/dmake \ +ACLOCAL_ARGS= -I "${WRKSRC}/m4" + +CONFIGURE_ENV= BDB_INCLUDE_DIR=${BDB_INCLUDE_DIR} \ + BDB_LIB_DIR=${BDB_LIB_DIR} \ + BDB_LIB_NAME=${BDB_LIB_NAME} \ + BDB_LIB_CXX_NAME=${BDB_LIB_CXX_NAME} \ + DMAKE=${LOCALBASE}/bin/dmake \ GPERF=${LOCALBASE}/bin/gperf CONFIGURE_ARGS+= --with-unix-wrapper="libreoffice" \ @@ -110,8 +120,12 @@ CONFIGURE_ARGS+= --with-unix-wrapper="libreoffice" \ --exec-prefix=${PREFIX} \ --with-gnu-patch=${LOCALBASE}/bin/gpatch \ --with-external-tar=${DISTDIR}/${DIST_SUBDIR} \ + --with-solver-and-workdir-root=${TMPDIR}/lobuild \ --with-system-boost \ + --with-system-clucene \ --with-system-mdds \ + --with-system-lcms2 \ + --with-system-libcdr \ --with-system-libxml \ --with-system-cairo \ --enable-cairo-canvas \ @@ -143,7 +157,6 @@ CONFIGURE_ARGS+= --with-unix-wrapper="libreoffice" \ --without-system-mozilla \ --without-fonts \ --without-afms \ - --without-ppds \ --without-stlport \ --disable-kde \ --disable-kdeab \ @@ -157,8 +170,6 @@ CONFIGURE_ARGS+= --with-unix-wrapper="libreoffice" \ --disable-zenity \ --enable-graphite \ --with-system-graphite \ - --with-system-sampleicc \ - --enable-mergelibs \ --enable-gio \ --disable-nsplugin \ --disable-linkoo \ @@ -166,8 +177,6 @@ CONFIGURE_ARGS+= --with-unix-wrapper="libreoffice" \ --disable-xmlsec \ --with-system-gettext \ --with-system-libpng \ - --with-system-postgresql \ - --with-system-libcmis \ --disable-gnome-vfs \ --enable-python=system @@ -195,18 +204,34 @@ MANCOMPRESSED= yes .include <bsd.port.options.mk> +.if empty(PORT_OPTIONS:MCPPUNIT) +EXTRA_PATCHES+= ${FILESDIR}/disable-cppunittester +.endif + +.if ${PORT_OPTIONS:MCUPS} +LIB_DEPENDS+= cups:${PORTSDIR}/print/cups-client +CONFIGURE_ARGS+= --enable-cups --without-ppds +.else +CONFIGURE_ARGS+= --disable-cups +.endif + .if ${PORT_OPTIONS:MPGSQL} USE_PGSQL= yes WANT_PGSQL_VER= 90+ +CONFIGURE_ARGS+= --enable-postgresql-sdbc --with-system-postgresql .else CONFIGURE_ARGS+= --disable-postgresql-sdbc .endif -.if empty(PORT_OPTIONS:MSYSTRAY) + +.if ${PORT_OPTIONS:MSYSTRAY} +CONFIGURE_ARGS+= --enable-systray +.else CONFIGURE_ARGS+= --disable-systray .endif .if ${PORT_OPTIONS:MMMEDIA} USE_GSTREAMER= yes +CONFIGURE_ARGS+= --enable-gstreamer .else CONFIGURE_ARGS+= --disable-gstreamer .endif @@ -221,6 +246,7 @@ CONFIGURE_ARGS+= --enable-librsvg=no .if ${PORT_OPTIONS:MGTK2} || ${PORT_OPTIONS:MGNOME} USE_GNOME+= gtk20 desktopfileutils INSTALLS_ICONS= yes +CONFIGURE_ARGS+= --enable-gtk .else CONFIGURE_ARGS+= --disable-gtk .endif @@ -228,6 +254,7 @@ CONFIGURE_ARGS+= --disable-gtk .if ${PORT_OPTIONS:MGTK3} USE_GNOME+= gtk30 desktopfileutils INSTALLS_ICONS= yes +CONFIGURE_ARGS+= --enable-gtk3 .else CONFIGURE_ARGS+= --disable-gtk3 .endif @@ -306,6 +333,12 @@ BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt CONFIGURE_ARGS+= --without-java .endif +.if ${PORT_OPTIONS:MMERGELIBS} +CONFIGURE_ARGS+= --enable-mergelibs +.else +CONFIGURE_ARGS+= --disable-mergelibs +.endif + .if ${PORT_OPTIONS:MSDK} DISTFILES+= 185d60944ea767075d27247c3162b3bc-unowinreg.dll:GoOOExtern @@ -359,13 +392,15 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libcppunit.so:${PORTSDIR}/devel/cppunit CONFIGURE_ARGS+= --with-linker-hash-style=sysv .endif -CPPFLAGS= -I${LOCALBASE}/include -I${LOCALBASE}/include/db${BDB_VER} +CPPFLAGS= -I${LOCALBASE}/include LDFLAGS= -L${LOCALBASE}/lib MAKE_ENV+= ENVCFLAGS="${CFLAGS}" ENVCXXFLAGS="${CXXFLAGS}" MAKE_ENV+= ENVLINKFLAGS="${LDFLAGS}" MAKE_ENV+= USE_GMAKE=1 +TMPDIR?= /tmp + post-extract: @${MKDIR} ${WRKSRC}/clone @${MKDIR} ${WRKSRC}/src @@ -377,21 +412,10 @@ post-extract: post-patch: @${FIND} ${WRKSRC} -type f -print0 | \ ${XARGS} -0 ${REINPLACE_CMD} -i '' -e 's#-Wl,-rpath,#-Wl,-z,origin,-rpath,#g' - @${REINPLACE_CMD} -e 's#5.1 5.0#${BDB_VER}#g' \ - -e 's,-ldb$$dash$$dbver,-l${BDB_LIB_NAME},g' \ - -e 's,"Linux" \&\& test "z$$enable_graphite","FreeBSD" \&\& test "z$$enable_graphite",g' \ - -e 's,`dirname $$qt_lib_dir`/bin:,,g' \ - ${WRKSRC}/configure -#install-gdb-printer is failing - @${REINPLACE_CMD} -e "/gdb/d" ${WRKSRC}/solenv/prj/build.lst - @${REINPLACE_CMD} -e 's#@SYSTEM_DB_CFLAGS@#@SYSTEM_DB_CFLAGS@ -I${BDB_INCLUDE_DIR}#' \ - -e 's#@DB_LIB@#${BDB_LIB_NAME}#' \ - ${WRKSRC}/set_soenv.in - @${REINPLACE_CMD} -e 's/sha1sum/sha1/g' ${WRKSRC}/configure .if ${CC} == /usr/bin/clang && ${OSVERSION} < 900506 #Visibility is broken with clang @${REINPLACE_CMD} -e "s|HAVE_GCC_VISIBILITY_FEATURE=TRUE|HAVE_GCC_VISIBILITY_FEATURE=|g" \ - ${WRKSRC}/configure + ${WRKSRC}/configure.in .endif .if ${PORT_OPTIONS:MJAVA} @@ -404,6 +428,8 @@ post-patch: pre-configure: @${TOUCH} ${WRKSRC}/autogen.lastrun + @${MKDIR} ${WRKDIR}/lobuild + @${LN} -fs ${WRKDIR}/lobuild ${TMPDIR} post-configure: @cd ${WRKSRC} && ./bin/create_bootstrap_links @@ -462,4 +488,7 @@ post-install: @${LOCALBASE}/bin/update-desktop-database 2>/dev/null || ${TRUE} .endif +post-clean: + @${RM} -f ${TMPDIR}/lobuild + .include <bsd.port.post.mk> |