diff options
Diffstat (limited to 'editors/openoffice-3-devel/Makefile')
-rw-r--r-- | editors/openoffice-3-devel/Makefile | 391 |
1 files changed, 79 insertions, 312 deletions
diff --git a/editors/openoffice-3-devel/Makefile b/editors/openoffice-3-devel/Makefile index 33d1d6bbb92..33215945e33 100644 --- a/editors/openoffice-3-devel/Makefile +++ b/editors/openoffice-3-devel/Makefile @@ -1,5 +1,5 @@ # New ports collection makefile for: OpenOffice.org -# Date created: 28 Februar 2002 +# Date created: 28 February 2002 # Whom: Martin Blapp # # $FreeBSD$ @@ -9,51 +9,73 @@ PORTNAME= openoffice PORTVERSION= 2.0 CATEGORIES+= editors MASTER_SITES+= http://people.freebsd.org/~maho/ \ - ftp://openofficeorg.secsup.org/pub/software/openoffice/stable/%SUBDIR%/ \ - ftp://sunsite.cnlab-switch.ch/mirror/OpenOffice.org/stable/%SUBDIR%/ \ - ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,misc/openoffice/stable/&,} \ - http://www.binarycode.org/openoffice/stable/%SUBDIR%/ \ - http://ftp.gwdg.de/pub/misc/openoffice/stable/%SUBDIR%/ \ ftp://ftp.cs.man.ac.uk/pub/toby/gpc/:gpc \ http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/helpcontent/:help \ http://people.freebsd.org/~mbr/ooo/:moz MASTER_SITE_SUBDIR= ${PORTVERSION} -DISTFILES+= cws_src680_ooo20031216_20031208.tar.bz2 gpc231.tar.Z:gpc \ +DISTFILES+= OOo_${BUILD_NR}${MILESTONE}_${SNAPDATE}_source.tar.bz2 gpc231.tar.Z:gpc \ patch-openoffice-mozilla101-2002-10-14:moz mozilla-vendor-1.0.2a.tgz:moz .if defined(L10NHELP) DISTFILES+= ${L10NHELP:S/$/:help/} .endif -FIND?= /usr/bin/find -CUT?= /usr/bin/cut -AWK?= /usr/bin/awk -GREP?= /usr/bin/grep -ZIP?= ${PREFIX}/bin/zip -UNZIP?= ${PREFIX}/bin/unzip -ANT?= ${LOCALBASE}/bin/ant -TCSH?= /bin/tcsh -PASTE?= /usr/bin/paste +MAINTAINER= openoffice@FreeBSD.org +.if !defined(COMMENT) +COMMENT= Integrated wordprocessor/dbase/spreadheet/drawing/chart/browser +.endif -WANT_GNOME= yes +IGNORE= "Does not work yet, installation problems" + +NO_LATEST_LINK= yes +UNZIP?= ${LOCALBASE}/bin/unzip +ZIP?= ${LOCALBASE}/bin/zip +ANT?= ${LOCALBASE}/bin/ant +TCSH?= /bin/tcsh +DIST_SUBDIR= openoffice2.0 +BUILD_NR= 680 +MILESTONE= m30 +RELEASE_NR= 2.0 +FRELEASE_NR= 2.0 +SNAPDATE= 20040402 +INSTALLATION_BASEDIR= OpenOffice.org${RELEASE_NR} +EXTRACT_ONLY= OOo_${BUILD_NR}${MILESTONE}_${SNAPDATE}_source.tar.bz2 +USE_GNOME= orbit gtk12 +USE_REINPLACE= yes +USE_PERL5= yes +USE_BZIP2= yes +USE_BISON= yes +USE_GMAKE= yes +LANG_EXT?= 01 +LANG_CONFIGURE_ARG?= ENUS +WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work +WRKSRC= ${WRKDIR}/oo_${BUILD_NR}${MILESTONE}_src/config_office + +#XXX dirty +BUILD_DEPENDS+= gcc32:${PORTSDIR}/lang/gcc32 +USE_GCC=3.2 +CC= gcc32 +CXX= g++32 +BUILD_DEPENDS+= ${JAVAVM}:${PORTSDIR}/java/jdk14 +BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip +BUILD_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip +BUILD_DEPENDS+= ${ANT}:${PORTSDIR}/devel/apache-ant +BUILD_DEPENDS+= ${X11BASE}/lib/libgdk-x11-2.0.so:${PORTSDIR}/x11-toolkits/gtk20 +BUILD_DEPENDS+= ${X11BASE}/lib/libX11.so:${PORTSDIR}/x11/XFree86-4-libraries +BUILD_DEPENDS+= ${X11BASE}/lib/libXft.so:${PORTSDIR}/x11-fonts/libXft +.if !defined(DISPLAY) +BUILD_DEPENDS+= Xvfb:${PORTSDIR}/x11-servers/XFree86-4-VirtualFramebufferServer +.endif -.include <bsd.port.pre.mk> +LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ + png.5:${PORTSDIR}/graphics/png \ + mng.1:${PORTSDIR}/graphics/libmng \ + freetype.9:${PORTSDIR}/print/freetype2 -BUILD_NR= 645 -RELEASE_NR= 1.1 -FRELEASE_NR= 1.1.0 -INSTALLATION_BASEDIR= OpenOffice.org${FRELEASE_NR} -DIST_SUBDIR= openoffice1.1 -DICT_DIR= ${PREFIX}/${INSTALLATION_BASEDIR}/share/dict/ooo/ +.include <bsd.port.pre.mk> # # configuration for language specific slave ports # -.if !defined(LANG_EXT) -LANG_EXT=01 -.else -# -# Add pkg-descr and pkg-message if available -# .if exists(${.CURDIR}/pkg-descr) DESCR= ${.CURDIR}/pkg-descr .endif @@ -69,13 +91,6 @@ PKGNAMEPREFIX= ${LANG_PKGNAME}- PKGNAMESUFFIX= -${LANG_SUFFIX} .endif .endif # if defined(LANG_PKGNAME) -# -# LANG_CONFIGURE_ARG is missing for the german port -# -.if defined(LANG_EXT) -CONFIGURE_ARGS+= --with-lang=${LANG_CONFIGURE_ARG},ENUS -.endif -.endif .if !defined (LANG) && !defined(USE_LANG) USE_LANG= en_US.ISO8859-15 @@ -88,62 +103,16 @@ USE_LANG= ${LANG} LANG_SORTED=`${ECHO} ${LANG_LIST} | ${TR} " " "\n" | ${PASTE} -d " " - -` -.if ${OSVERSION} < 500000 -# OOo requires gcc 3.3 (not systems's gcc) -BUILD_DEPENDS+= gcc33:${PORTSDIR}/lang/gcc33 -USE_GCC=3.3 # make no sense yet -CC= gcc33 -CXX= g++33 -.endif - -EXTRACT_ONLY= OOo_${PORTVERSION}_source.tar.bz2 - -MAINTAINER= openoffice@FreeBSD.org -.if !defined(COMMENT) -COMMENT= Integrated wordprocessor/dbase/spreadheet/drawing/chart/browser -.endif - -BROKEN= "under construction" -# -# The JDK dependency needs to be at the first place, so all -# following dependencies use the same JDK. -# -BUILD_DEPENDS+= ${JAVAVM}:${PORTSDIR}/java/jdk14 -BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip -BUILD_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip -BUILD_DEPENDS+= ${ANT}:${PORTSDIR}/devel/apache-ant -BUILD_DEPENDS+= ${X11BASE}/lib/libgdk-x11-2.0.so:${PORTSDIR}/x11-toolkits/gtk20 -BUILD_DEPENDS+= ${X11BASE}/lib/libX11.so:${PORTSDIR}/x11/XFree86-4-libraries -BUILD_DEPENDS+= ${X11BASE}/lib/libXft.so:${PORTSDIR}/x11-fonts/libXft -.if !defined(DISPLAY) -BUILD_DEPENDS+= Xvfb:${PORTSDIR}/x11-servers/XFree86-4-VirtualFramebufferServer -.endif - -LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ - png.5:${PORTSDIR}/graphics/png \ - mng.1:${PORTSDIR}/graphics/libmng \ - freetype.9:${PORTSDIR}/print/freetype2 - -USE_PERL5= yes -USE_BZIP2= yes -USE_BISON= yes -USE_GMAKE= yes -USE_GNOME= orbit gtk12 - EXTRACT_BEFORE_ARGS_R= -dc EXTRACT_AFTER_ARGS_R= | ${TAR} -xf - EXTRACT_CMD_R= ${GZIP_CMD} EXTRACT_REST= gpc231.tar.Z -JDKDIR?= ${LOCALBASE}/jdk1.4.1 +JDKDIR?= ${LOCALBASE}/jdk1.4.2 JAVAVM= ${JDKDIR}/bin/java GNU_CONFIGURE= yes USE_AUTOCONF_VER= 253 -WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work -WRKSRC= ${WRKDIR}/oo_${RELEASE_NR}_src/config_office -LD_PATH1= ${WRKSRC}/../vos/unxfbsd.pro/lib/:${WRKSRC}/../ucbhelper/unxfbsd.pro/lib/ -LD_PATH= ${LD_PATH1}:${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/lib/ .if defined(WITH_DEBUG) CFLAGS+= -g .if ${WITH_DEBUG} == 2 @@ -161,7 +130,8 @@ DISPLAYHACK=localhost:1001 CONFIGURE_ENV= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \ PTHREAD_LIBS=${PTHREAD_LIBS} -CONFIGURE_ARGS+= --with-jdk-home=${JDKDIR} +CONFIGURE_ARGS+= --with-lang=${LANG_CONFIGURE_ARG} +CONFIGURE_ARGS+= --with-jdk-home=${JDKDIR} --with-ant-home=${LOCALBASE}/ant --with-gnu-cp=${LOCALBASE}/bin/gcp --enable-mozilla=no .if defined(WITH_DEBUG) .if ${WITH_DEBUG} == 2 @@ -194,15 +164,6 @@ pre-fetch: @${ECHO} .endif @${ECHO} "OPTIONS:" -.if !defined(USE_GCC) - @${ECHO} - @${ECHO} "You can compile OO with different" - @${ECHO} "gcc compiler versions:" - @${ECHO} - @${ECHO} "Add USE_GCC=2.95 or USE_GCC=3.2" - @${ECHO} "to compile openoffice with your" - @${ECHO} "preferred compiler." -.endif .if !defined(WITH_DEBUG) @${ECHO} @${ECHO} "You can compile OO with debug symbols" @@ -225,94 +186,9 @@ pre-fetch: @${ECHO} "quality of glyphs at small bitmap sizes." @${ECHO} .endif -.if !defined(WITH_GIF_LZW_COMPRESSION) - @${ECHO} - @${ECHO} "You may set WITH_GIF_LZW_COMPRESSION=YES" - @${ECHO} "If you want to make compressed gif images" - @${ECHO} - @${ECHO} "If must have license from the Unisys and IBM patents" - @${ECHO} "to enable this option to get compressed GIF images." - @${ECHO} -.endif -.if ${OSVERSION} < 450002 - @${ECHO} - @${ECHO} "OS-VERSION ${OSVERSION} too low" - @${ECHO} - @${ECHO} "OO need some important libc_r and" - @${ECHO} "gcc fixes to build. Please upgrade to 4.6" - @${ECHO} "RELEASE or 4.6 STABLE." - @${FALSE} -.endif - @${ECHO} - @${ECHO} "NOTICE:" - @${ECHO} - @${ECHO} "To build Openoffice, you should have a lot" -.if defined(WITH_DEBUG) - @${ECHO} "of free diskspace (~ 8GB)." -.else - @${ECHO} "of free diskspace (~ 4GB)." -.endif - @${ECHO} -.if (defined(USE_GCC) && ${USE_GCC} == 2.95) || \ - (${OSVERSION} < 500000 && !defined(USE_GCC)) - @${ECHO} "KERNEL CONFIGURATION:" - @${ECHO} - @${ECHO} "Openoffice needs a larger stack- and" - @${ECHO} "datasize to build. Check your limit" - @${ECHO} "settings and and put this in /boot/loader.conf" - @${ECHO} "if neccessary:" - @${ECHO} - @${ECHO} "kern.maxdsiz=\"1073741824\"" - @${ECHO} "kern.maxssiz=\"268435456\"" -.endif - @${ECHO} -.if ${OSVERSION} < 460002 - @${ECHO} "REQUIRED SYSTEM PATCHES:" - @${ECHO} -.endif -.if ${OSVERSION} < 500000 - @${ECHO} "OO.org can crash if you enter a non existing path" - @${ECHO} "or URL in the location bar. To fix these crashes" - @${ECHO} "you need a uncommitted system patch for rtld:" - @${ECHO} - @${ECHO} "http://people.freebsd.org/~mbr/ooo/rtld-symlookup.diff" - @${ECHO} -.endif -.if ${OSVERSION} < 460001 - @${ECHO} - @${ECHO} "OO setup is broken on STABLE < 4.6" - @${ECHO} "including 4.6 RELEASE." - @${ECHO} "You'll need a system patch to solve" - @${ECHO} "this problem:" - @${ECHO} - @${ECHO} "http://people.freebsd.org/~mbr/ooo/rtld-alloca.diff" - @${ECHO} -.endif -.if ${OSVERSION} < 460002 - @${ECHO} - @${ECHO} "OO.org soffice binary can deadlock. You can work around" - @${ECHO} "this problem with this patch:" - @${ECHO} - @${ECHO} "http://people.freebsd.org/~mbr/ooo/rtld-deadlock.diff" - @${ECHO} -.endif -.if ${OSVERSION} < 500000 - @${ECHO} - @${ECHO} "OO.org build can deadlock in regmerge. You can work around" - @${ECHO} "this problem with this patch:" - @${ECHO} - @${ECHO} "http://people.freebsd.org/~mbr/ooo/rtld-builddeadlock.diff" - @${ECHO} -.endif -.if !exists(/usr/include/langinfo.h) - @${ECHO} - @${ECHO} "langinfo.h is missing !" - @${ECHO} - @${ECHO} "Please upgrade to 4.6 RELEASE or" - @${ECHO} "4.6 STABLE." - @${ECHO} - @${FALSE} -.endif + @${ECHO} "If you want SDK and/or solver, please type make sdk and/or make solver" + +.include <${FILESDIR}/Makefile.mozilla> post-extract: @for file in ${EXTRACT_REST}; do \ @@ -326,7 +202,6 @@ post-extract: @${CP} ${WRKDIR}/gpc231/gpc.c ${WRKSRC}/../external/gpc/ @${CP} ${WRKDIR}/gpc231/gpc.h ${WRKSRC}/../external/gpc/ @${MAKE} extract-mozilla - @-${RM} -f ${WRKSRC}/../moz/zipped/*.zip @${CHMOD} +x ${WRKSRC}/../solenv/bin/zipdep.pl .if defined(L10NHELP) @${ECHO_MSG} "===> Extracting L10NHELP sub project" @@ -336,9 +211,9 @@ post-extract: .endif post-patch: + @${REINPLACE_CMD} -e 's+%%PTHREAD_LIBS%%+${PTHREAD_LIBS}+g;' ${WRKSRC}/../odk/settings/settings.mk + @${REINPLACE_CMD} -e 's+%%PTHREAD_CFLAGS%%+${PTHREAD_CFLAGS}+g' ${WRKSRC}/../odk/settings/settings.mk @${MAKE} patch-mozilla - @${MAKE} fix-kdewrappers - @${MAKE} fix-gnomewrappers .if defined(WITH_TTF_BYTECODE_ENABLED) @if [ "`echo ${PATCHDIR}/optpatch-*`" != "${PATCHDIR}/optpatch-*" ]; then \ ${ECHO_MSG} "===> Applying additional TTF bytecode patches for ${PKGNAME}" ; \ @@ -348,116 +223,6 @@ post-patch: ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/optpatch-freetype+patch ; \ fi .endif -.if !defined(WITH_GIF_LZW_COMPRESSION) - @if [ "`echo ${PATCHDIR}/gifpatch-*`" != "${PATCHDIR}/gifpatch-*" ]; then \ - ${ECHO_MSG} "===> Removing GIF LZW compression for ${PKGNAME}" ; \ - if [ ${PATCH_DEBUG_TMP} = yes ]; then \ - ${ECHO_MSG} "===> Applying GIF LZW compression ${OPSYS} patch" ; \ - fi; \ - ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/gifpatch-goodies+source+filter.vcl+egif+giflzwc.cxx ; \ - ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/gifpatch-goodies+source+filter.vcl+egif+giflzwc_disabled.cxx ; \ - ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/gifpatch-goodies+source+filter.vcl+egif+makefile.mk ; \ - fi -.endif -.if defined(WITH_DEBUG) - @if [ "`echo ${PATCHDIR}/debugpatch-*`" != "${PATCHDIR}/debugpatch-*" ]; then \ - ${ECHO_MSG} "===> Applying additional debug ${OPSYS} patches for ${PKGNAME}" ; \ - PATCHES_APPLIED="" ; \ - for i in ${PATCHDIR}/debugpatch-*; do \ - case $$i in \ - *.orig|*.rej|*~) \ - ${ECHO_MSG} "===> Ignoring patchfile $$i" ; \ - ;; \ - *) \ - if [ ${PATCH_DEBUG_TMP} = yes ]; then \ - ${ECHO_MSG} "===> Applying ${OPSYS} patch $$i" ; \ - fi; \ - if ${PATCH} ${PATCH_ARGS} < $$i ; then \ - PATCHES_APPLIED="$$PATCHES_APPLIED $$i" ; \ - else \ - ${ECHO_MSG} `${ECHO_CMD} ">> Patch $$i failed to apply cleanly." | ${SED} "s|${PATCHDIR}/||"` ; \ - if [ x"$$PATCHES_APPLIED" != x"" ]; then \ - ${ECHO_MSG} `${ECHO_CMD} ">> Patch(es) $$PATCHES_APPLIED applied cleanly." | ${SED} "s|${PATCHDIR}/||g"` ; \ - fi; \ - ${FALSE} ; \ - fi; \ - ;; \ - esac; \ - done; \ - fi; -.endif - @${ECHO_MSG} "===> Find old malloc.h defines and fix them in ${PKGNAME} source" - @${FIND} ${WRKSRC}/.. | ${EGREP} "\.(cxx|h|c)$$" | ${XARGS} \ - ${PERL} -pi -e "s|<malloc.h>|<stdlib.h>|g" - -fix-kdewrappers: -# @${PERL} -pi -e 's|"Exec", "\\"\<progpath\>/program/|"Exec", "\\"${PREFIX}/bin/openoffice_${RELEASE_NR}-|' \ -# ${WRKSRC}/../sysui/oounix/office/kde2/kdeint - -fix-gnomewrappers: -# @${PERL} -pi -e 's|"Exec", "<progpath>/program/|"Exec", "${PREFIX}/bin/openoffice_${RELEASE_NR}-|' \ -# ${WRKSRC}/../sysui/oounix/office/gnome/gnomeint - -extract-mozilla: -.if ! exists(${WRKDIR}/mozilla/Makefile) - @${ECHO_MSG} "===> Extracting mozilla sub project" - @cd ${WRKDIR} && tar -xzf ${DISTDIR}/${DIST_SUBDIR}/mozilla-vendor-1.0.2a.tgz -.endif - @cd ${WRKDIR}/mozilla && ${MAKE} extract WRKDIRPREFIX="" - -patch-mozilla: - @${CP} ${DISTDIR}/${DIST_SUBDIR}/patch-openoffice-mozilla101-2002-10-14 \ - ${WRKDIR}/mozilla/files/ - @cd ${WRKDIR}/mozilla && ${MAKE} patch WRKDIRPREFIX="" - -build-mozilla: -.if ! exists(${WRKDIR}/FREEBSDGCCIruntime.zip) - @${ECHO_MSG} "===> Building mozilla sub project" -.if defined(WITH_DEBUG) - @${CP} ${WRKDIR}/mozilla/Makefile ${WRKDIR}/mozilla/Makefile.new - @${SED} -e 's|--disable-debug||' \ - -e 's|--disable-cpp-rtti||' \ - -e 's|--enable-strip||' \ - < ${WRKDIR}/mozilla/Makefile.new > ${WRKDIR}/mozilla/Makefile -.endif -.if defined(USE_GCC) - @cd ${WRKDIR}/mozilla && ${MAKE} CXX=${CXX} CC=${CC} CFLAGS="${CFLAGS}" USE_GCC=${USE_GCC} build WRKDIRPREFIX="" -.else - @cd ${WRKDIR}/mozilla && ${MAKE} CFLAGS="${CFLAGS}" build WRKDIRPREFIX="" -.endif - @${CP} ${FILESDIR}/zipmoz.sh ${WRKDIR} - @${CHMOD} 755 ${WRKDIR}/zipmoz.sh - @${WRKDIR}/zipmoz.sh ${WRKDIR}/mozilla/work/mozilla/dist FREEBSDGCCI ${WRKDIR} -.endif - -install-mozilla: - @${CP} ${WRKDIR}/FREEBSDGCCIinc.zip ${WRKSRC}/../moz/zipped/ - @${CP} ${WRKDIR}/FREEBSDGCCIlib.zip ${WRKSRC}/../moz/zipped/ - @${CP} ${WRKDIR}/FREEBSDGCCIruntime.zip ${WRKSRC}/../moz/zipped/ - -register-mozilla: -.if exists(${WRKDIR}/mozilla-runtime) - @${RM} -rf ${WRKDIR}/mozilla-runtime -.endif - @${MKDIR} ${WRKDIR}/mozilla-runtime - @cd ${WRKDIR}/mozilla-runtime && ${UNZIP} -o ${WRKDIR}/FREEBSDGCCIruntime.zip - @cd ${WRKDIR}/mozilla-runtime && ${UNZIP} -o ${WRKDIR}/FREEBSDGCCIlib.zip - @${CP} ${WRKDIR}/mozilla/work/mozilla/dist/bin/regxpcom ${WRKDIR}/mozilla-runtime/ - @-${RM} ${WRKDIR}/mozilla-runtime/components/component.reg - @cd ${WRKDIR}/mozilla-runtime && export MOZILLA_FIVE_HOME=. \ - && export LD_LIBRARY_PATH=.:./lib && ./regxpcom - @${CP} ${WRKDIR}/mozilla-runtime/components/xpti.dat \ - ${WRKDIR}/mozilla-runtime/components/xptitemp.dat - @${RM} ${WRKDIR}/FREEBSDGCCIruntime.zip ${WRKDIR}/mozilla-runtime/regxpcom - @cd ${WRKDIR}/mozilla-runtime && ${FIND} . -type f \ - | ${ZIP} ${WRKDIR}/FREEBSDGCCIruntime.zip -@ - -mozilla: - @${MAKE} extract-mozilla - @${MAKE} patch-mozilla - @${MAKE} build-mozilla - @${MAKE} register-mozilla - @${MAKE} install-mozilla do-build: .if ! exists(${WRKSRC}/../moz/zipped/FREEBSDGCCIruntime.zip) @@ -512,14 +277,12 @@ do-install: # ${X11BASE}/bin/Xvfb :1001 -screen 0 800x600x24 > /dev/null 2>&1 & ${ECHO} $$! > ${WRKDIR}/.Xvfb.pid @sleep 5 - @-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \ - TEMP=${WRKDIR} DISPLAY=${DISPLAYHACK} \ + @-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" TEMP=${WRKDIR} DISPLAY=${DISPLAYHACK} \ ${WRKSRC}/../instsetoo/*.pro/${LANG_EXT}/normal/setup -r:oo_setup.resp - @-${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill + @${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill @${RM} -f ${WRKDIR}/.Xvfb.pid .else - @-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \ - TEMP=${WRKDIR} DISPLAY=${DISPLAY} \ + @-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" TEMP=${WRKDIR} DISPLAY=${DISPLAY} \ ${WRKSRC}/../instsetoo/*.pro/${LANG_EXT}/normal/setup -r:oo_setup.resp .endif @@ -562,20 +325,24 @@ post-install: package-rename: @${ECHO_MSG} "===> Rename package for OO.org mirror upload"; .if defined(LANG_SUFFIX) - @${MV} ${WRKDIR}/../${PKGNAMEPREFIX}openoffice-${LANG_SUFFIX}-${PORTVERSION}_${PORTREVISION}.tbz2 \ - ${WRKDIR}/../OOo_${PORTVERSION}_${OPSYS}Intel_install_${LANG_PKGNAME}-${LANG_SUFFIX}.tbz2 + @${MV} ${PKGFILE} \ + ${WRKDIR}/../OOo_${BUILD_NR}${MILESTONE}_${OPSYS}${SIMPLEOSVER}Intel_install_${LANG_PKGNAME}-${LANG_SUFFIX}${PKG_SUFX} +.elif defined(LANG_PKGNAME) + @${MV} ${PKGFILE} \ + ${WRKDIR}/../OOo_${BUILD_NR}${MILESTONE}_${OPSYS}${SIMPLEOSVER}Intel_install_${LANG_PKGNAME}${PKG_SUFX} .else - @${MV} ${WRKDIR}/../${PKGNAMEPREFIX}openoffice-${PORTVERSION}_${PORTREVISION}.tbz2 \ - ${WRKDIR}/../OOo_${PORTVERSION}_${OPSYS}Intel_install_${LANG_PKGNAME}.tbz2 + @${MV} ${PKGFILE} \ + ${WRKDIR}/../OOo_${BUILD_NR}${MILESTONE}_${OPSYS}${SIMPLEOSVER}Intel_install${PKG_SUFX} .endif -update: - @${MAKE} fetch - @${MAKE} extract - @cd ${WRKSRC}/.. && for dir in *; do \ - if [ -d $$dir ]; then \ - cd $$dir; cvs update -d; cd ..; \ - fi \ - done +sdk: + @${ECHO_MSG} "===> Make SDK of OpenOffice.org" + @cd ${WRKSRC}/.. && DISPLAY=${DISPLAY} PATH="${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin" && \ + ${SH} -c 'source FreeBSDEnv.Set && unsetenv TOP && cd sdk_oo && build.pl && deliver.pl' + ${MV} ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/OpenOffice.org${RELEASE_NR}_SDK.tar.gz ${WRKDIR}/../OOo_${BUILD_NR}${MILESTONE}_${OPSYS}${SIMPLEOSVER}Intel_sdk.tar.gz + +solver: + @${ECHO_MSG} "===> Make Solver of OpenOffice.org" + @cd ${WRKSRC}/.. ; ${TAR} cfz ${WRKDIR}/../OOo_${BUILD_NR}${MILESTONE}_${OPSYS}${SIMPLEOSVER}Intel_solver.tar.gz solver .include <bsd.port.post.mk> |