2003-11-09 15:11:29 +01:00
|
|
|
# New ports collection makefile for: OpenOffice.org
|
2004-04-10 01:16:42 +02:00
|
|
|
# Date created: 28 February 2002
|
2000-08-24 21:29:31 +02:00
|
|
|
# Whom: Martin Blapp
|
1999-12-09 18:08:31 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-10-16 21:23:34 +02:00
|
|
|
PORTNAME= openoffice
|
2003-12-08 13:50:46 +01:00
|
|
|
PORTVERSION= 2.0
|
2002-10-19 00:41:42 +02:00
|
|
|
CATEGORIES+= editors
|
2004-04-10 23:16:09 +02:00
|
|
|
MASTER_SITES+= ${MASTER_SITE_LOCAL} \
|
2002-10-19 00:41:42 +02:00
|
|
|
ftp://ftp.cs.man.ac.uk/pub/toby/gpc/:gpc \
|
2004-08-12 07:46:05 +02:00
|
|
|
http://people.freebsd.org/~mbr/ooo/:moz \
|
|
|
|
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,misc/openoffice/contrib/helpcontent/&,}:help \
|
|
|
|
ftp://ftp.kddlabs.co.jp/office/openoffice/contrib/helpcontent/:help \
|
|
|
|
ftp://sunsite.cnlab-switch.ch/mirror/OpenOffice/contrib/helpcontent/:help \
|
|
|
|
http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/helpcontent/:help
|
2004-04-10 23:16:09 +02:00
|
|
|
MASTER_SITE_SUBDIR= maho/openoffice.org
|
2004-04-10 01:16:42 +02:00
|
|
|
DISTFILES+= OOo_${BUILD_NR}${MILESTONE}_${SNAPDATE}_source.tar.bz2 gpc231.tar.Z:gpc \
|
2003-09-26 00:29:30 +02:00
|
|
|
patch-openoffice-mozilla101-2002-10-14:moz mozilla-vendor-1.0.2a.tgz:moz
|
2004-08-12 07:46:05 +02:00
|
|
|
EXTRACT_ONLY= OOo_${BUILD_NR}${MILESTONE}_${SNAPDATE}_source.tar.bz2
|
1999-12-09 18:08:31 +01:00
|
|
|
|
2004-04-10 01:16:42 +02:00
|
|
|
MAINTAINER= openoffice@FreeBSD.org
|
2002-10-19 00:41:42 +02:00
|
|
|
|
2004-08-12 07:46:05 +02:00
|
|
|
SNAPDATE= 20040812
|
|
|
|
NO_LATEST_LINK= yes
|
|
|
|
USE_GNOME= orbit gtk12 gtk20
|
|
|
|
USE_PERL5= yes
|
|
|
|
#USE_BISON= yes #bison1.875d is required
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
USE_BZIP2= yes
|
|
|
|
WITHOUT_MOZILLA= yes # WIP for Mozilla 1.7
|
2004-06-14 01:57:01 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.include <${FILESDIR}/Makefile.localized>
|
|
|
|
|
2004-08-12 07:46:05 +02:00
|
|
|
LANG_PKGNAME?= en-US
|
|
|
|
LANG_EXT?= 01
|
|
|
|
LANG_CONFIGURE_ARG?= ENUS
|
|
|
|
|
|
|
|
.if defined(ALL_LOCALIZED_LANGS)
|
|
|
|
DISTFILES+= helpcontent_31_unix.tgz:help helpcontent_33_unix.tgz:help \
|
|
|
|
helpcontent_34_unix.tgz:help helpcontent_39_unix.tgz:help \
|
|
|
|
helpcontent_46_unix.tgz:help helpcontent_49_unix.tgz:help \
|
|
|
|
helpcontent_55_unix.tgz:help \
|
|
|
|
helpcontent_81_unix.tgz:help helpcontent_82_unix.tgz:help \
|
|
|
|
helpcontent_86_unix.tgz:help helpcontent_88_unix.tgz:help \
|
|
|
|
helpcontent_90_unix.tgz:help
|
|
|
|
L10NHELPS= helpcontent_31_unix.tgz helpcontent_33_unix.tgz \
|
|
|
|
helpcontent_34_unix.tgz helpcontent_39_unix.tgz \
|
|
|
|
helpcontent_46_unix.tgz helpcontent_49_unix.tgz \
|
|
|
|
helpcontent_55_unix.tgz \
|
|
|
|
helpcontent_81_unix.tgz helpcontent_82_unix.tgz \
|
|
|
|
helpcontent_86_unix.tgz helpcontent_88_unix.tgz \
|
|
|
|
helpcontent_90_unix.tgz
|
2004-06-14 01:57:01 +02:00
|
|
|
.endif
|
2004-04-10 01:16:42 +02:00
|
|
|
|
2004-08-12 07:46:05 +02:00
|
|
|
BROKEN= "Work In Progress, Bison 1.875d is required"
|
|
|
|
|
|
|
|
COMMENT?= Integrated wordprocessor/dbase/spreadheet/drawing/chart/browser(developer version)
|
2004-04-10 01:16:42 +02:00
|
|
|
BUILD_NR= 680
|
2004-08-12 07:46:05 +02:00
|
|
|
MILESTONE= m48
|
2004-04-10 01:16:42 +02:00
|
|
|
RELEASE_NR= 2.0
|
2004-08-12 07:46:05 +02:00
|
|
|
DIST_SUBDIR= openoffice2.0
|
|
|
|
SIMPLEOSVER!= ${UNAME} -r | ${SED} -e 's/\.//' | ${SED} -e 's/\..*//'
|
|
|
|
BUILD_DEPENDS+= gcc32:${PORTSDIR}/lang/gcc32
|
2004-04-10 01:16:42 +02:00
|
|
|
USE_GCC=3.2
|
2004-08-12 07:46:05 +02:00
|
|
|
.if defined(WITH_CCACHE)
|
|
|
|
BUILD_DEPENDS+= ccache:${PORTSDIR}/devel/ccache
|
2004-06-14 01:57:01 +02:00
|
|
|
CC= ccache gcc32
|
|
|
|
CXX= ccache g++32
|
|
|
|
.else
|
2004-04-10 01:16:42 +02:00
|
|
|
CC= gcc32
|
|
|
|
CXX= g++32
|
2004-06-14 01:57:01 +02:00
|
|
|
.endif
|
|
|
|
|
2004-08-12 07:46:05 +02:00
|
|
|
BUILD_DEPENDS+= ${JDKDIR}/bin/java:${PORTSDIR}/java/jdk14 \
|
|
|
|
zip:${PORTSDIR}/archivers/zip \
|
|
|
|
unzip:${PORTSDIR}/archivers/unzip \
|
|
|
|
gcp:${PORTSDIR}/sysutils/coreutils \
|
|
|
|
${ANT}:${PORTSDIR}/devel/apache-ant \
|
|
|
|
${X11BASE}/lib/libXft.so:${PORTSDIR}/x11-fonts/libXft \
|
|
|
|
${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
|
|
|
|
bison1875:${PORTSDIR}/devel/bison1875
|
2004-04-10 01:16:42 +02:00
|
|
|
.if !defined(DISPLAY)
|
2004-07-23 21:10:32 +02:00
|
|
|
BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT}
|
2004-04-10 01:16:42 +02:00
|
|
|
.endif
|
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
mng.1:${PORTSDIR}/graphics/libmng \
|
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
2002-03-13 20:19:41 +01:00
|
|
|
|
2004-04-10 01:16:42 +02:00
|
|
|
JDKDIR?= ${LOCALBASE}/jdk1.4.2
|
2002-03-01 00:36:03 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-08-12 07:46:05 +02:00
|
|
|
USE_AUTOCONF_VER= 259
|
|
|
|
WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work
|
|
|
|
WRKSRC= ${WRKDIR}/oo_${RELEASE_NR}_src/config_office
|
|
|
|
ANT?= ${LOCALBASE}/bin/ant
|
|
|
|
TCSH?= /bin/tcsh
|
|
|
|
ZIP?= ${PREFIX}/bin/zip
|
|
|
|
UNZIP?= ${PREFIX}/bin/unzip
|
2002-10-19 00:41:42 +02:00
|
|
|
BUILD= dmake
|
2000-10-19 22:48:34 +02:00
|
|
|
|
2003-09-09 14:39:05 +02:00
|
|
|
.if !defined(DISPLAY)
|
|
|
|
DISPLAYHACK=localhost:1001
|
|
|
|
.endif
|
|
|
|
|
2002-03-09 23:41:53 +01:00
|
|
|
CONFIGURE_ENV= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
|
2002-10-19 00:41:42 +02:00
|
|
|
PTHREAD_LIBS=${PTHREAD_LIBS}
|
2004-08-12 07:46:05 +02:00
|
|
|
CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp --with-jdk-home=${JDKDIR} --with-ant-home=${LOCALBASE}/ant
|
|
|
|
.if defined(WITHOUT_MOZILLA)
|
|
|
|
CONFIGURE_ARGS+= --disable-mozilla
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(ALL_LOCALIZED_LANGS)
|
|
|
|
CONFIGURE_ARGS+= --with-lang=ALL
|
|
|
|
.else
|
2004-04-10 01:16:42 +02:00
|
|
|
CONFIGURE_ARGS+= --with-lang=${LANG_CONFIGURE_ARG}
|
2004-08-12 07:46:05 +02:00
|
|
|
.endif
|
2003-03-06 00:24:06 +01:00
|
|
|
|
2002-10-19 00:41:42 +02:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
.if ${WITH_DEBUG} == 2
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
2004-08-12 07:46:05 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-symbols
|
2002-10-19 00:41:42 +02:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
pre-fetch:
|
2003-03-06 00:24:06 +01:00
|
|
|
@${ECHO} "OPTIONS:"
|
2002-10-19 00:41:42 +02:00
|
|
|
.if !defined(WITH_DEBUG)
|
|
|
|
@${ECHO}
|
2004-08-12 07:46:05 +02:00
|
|
|
@${ECHO} "You can compile OOo with debug symbols"
|
2002-10-19 00:41:42 +02:00
|
|
|
@${ECHO} "if you call make with WITH_DEBUG=1"
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "If you set WITH_DEBUG=2, you add internal"
|
2004-08-12 07:46:05 +02:00
|
|
|
@${ECHO} "OOo debug support."
|
2002-10-19 00:41:42 +02:00
|
|
|
@${ECHO}
|
2002-03-01 00:36:03 +01:00
|
|
|
.endif
|
2002-10-19 00:41:42 +02:00
|
|
|
.if !defined(WITH_TTF_BYTECODE_ENABLED)
|
2002-03-01 00:36:03 +01:00
|
|
|
@${ECHO}
|
2002-10-19 00:41:42 +02:00
|
|
|
@${ECHO} "You may set WITH_TTF_BYTECODE_ENABLED=YES"
|
|
|
|
@${ECHO} "if you like to use the Freetype library to"
|
|
|
|
@${ECHO} "render TTF fonts. Normally the TTF lib is"
|
|
|
|
@${ECHO} "not used to render fonts."
|
2002-03-01 00:36:03 +01:00
|
|
|
@${ECHO}
|
2002-10-19 00:41:42 +02:00
|
|
|
@${ECHO} "If you have licensed the Apple patents"
|
|
|
|
@${ECHO} "US05155805 US05159668 and US05325479"
|
|
|
|
@${ECHO} "you can enable this option to get better"
|
|
|
|
@${ECHO} "quality of glyphs at small bitmap sizes."
|
|
|
|
@${ECHO}
|
2004-08-12 07:46:05 +02:00
|
|
|
.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)."
|
2002-10-19 00:41:42 +02:00
|
|
|
.endif
|
2004-04-10 01:16:42 +02:00
|
|
|
@${ECHO} "If you want SDK and/or solver, please type make sdk and/or make solver"
|
|
|
|
|
2004-08-12 07:46:05 +02:00
|
|
|
pre-everything::
|
|
|
|
# really tewak, extremely useful when you build all localized language versions
|
|
|
|
# needed after when you build with ALL_LOCALIZED_LANGS.
|
|
|
|
.if defined(TWEAK_L10N)
|
|
|
|
@${RM} -f ${WRKDIR}/.PLIST*
|
|
|
|
@${RM} -f ${WRKDIR}/.install_done.*
|
|
|
|
@${RM} -f ${WRKDIR}/.package_done.*
|
|
|
|
@${RM} -f ${WRKDIR}/.extract_done.*
|
|
|
|
@${RM} -f ${WRKDIR}/.patch_done.*
|
|
|
|
@${RM} -f ${WRKDIR}/.configure_done.*
|
|
|
|
@${RM} -f ${WRKDIR}/.build_done.*
|
|
|
|
@${TOUCH} ${EXTRACT_COOKIE}
|
|
|
|
@${TOUCH} ${PATCH_COOKIE}
|
|
|
|
@${TOUCH} ${CONFIGURE_COOKIE}
|
|
|
|
@${TOUCH} ${BUILD_COOKIE}
|
|
|
|
.endif
|
1999-12-09 18:08:31 +01:00
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
post-extract:
|
2004-08-12 07:46:05 +02:00
|
|
|
@cd ${WRKDIR} ; ${CAT} ${DISTDIR}/${DIST_SUBDIR}/gpc231.tar.Z | ${TAR} xfz -
|
2002-10-19 00:41:42 +02:00
|
|
|
@${CP} ${WRKDIR}/gpc231/gpc.c ${WRKSRC}/../external/gpc/
|
|
|
|
@${CP} ${WRKDIR}/gpc231/gpc.h ${WRKSRC}/../external/gpc/
|
|
|
|
.if defined(L10NHELP)
|
|
|
|
@${ECHO_MSG} "===> Extracting L10NHELP sub project"
|
|
|
|
@${MKDIR} ${WRKDIR}/L10NHELP
|
2004-08-12 07:46:05 +02:00
|
|
|
@cd ${WRKDIR}/L10NHELP ; \
|
2004-06-14 01:57:01 +02:00
|
|
|
${CAT} ${DISTDIR}/${DIST_SUBDIR}/${L10NHELP} | ${GZIP_CMD} -d | ${TAR} xf -
|
2002-10-19 00:41:42 +02:00
|
|
|
.endif
|
2004-08-12 07:46:05 +02:00
|
|
|
.if defined(ALL_LOCALIZED_LANGS)
|
|
|
|
@${ECHO_MSG} "===> Extracting All available L10NHELPs"
|
|
|
|
@${MKDIR} ${WRKDIR}/L10NHELP
|
|
|
|
@cd ${WRKDIR}/L10NHELP ; \
|
|
|
|
for file in ${L10NHELPS}; do \
|
|
|
|
${CAT} ${DISTDIR}/${DIST_SUBDIR}/$$file | ${GZIP_CMD} -d | ${TAR} xf - ; \
|
|
|
|
done
|
|
|
|
.endif
|
2002-03-09 11:43:14 +01:00
|
|
|
|
|
|
|
post-patch:
|
2004-04-10 01:16:42 +02:00
|
|
|
@${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
|
2002-10-19 00:41:42 +02:00
|
|
|
.if defined(WITH_TTF_BYTECODE_ENABLED)
|
|
|
|
@if [ "`echo ${PATCHDIR}/optpatch-*`" != "${PATCHDIR}/optpatch-*" ]; then \
|
|
|
|
${ECHO_MSG} "===> Applying additional TTF bytecode patches for ${PKGNAME}" ; \
|
|
|
|
if [ ${PATCH_DEBUG_TMP} = yes ]; then \
|
|
|
|
${ECHO_MSG} "===> Applying ${OPSYS} patch ${PATCHDIR}/optpatch-freetype::patch" ; \
|
|
|
|
fi; \
|
2002-10-23 20:51:17 +02:00
|
|
|
${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/optpatch-freetype+patch ; \
|
2002-10-19 00:41:42 +02:00
|
|
|
fi
|
|
|
|
.endif
|
|
|
|
|
2004-08-12 07:46:05 +02:00
|
|
|
.include <${FILESDIR}/Makefile.mozilla>
|
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
do-build:
|
2004-08-12 07:46:05 +02:00
|
|
|
.if !defined(WITHOUT_MOZILLA)
|
|
|
|
.if !exists(${WRKSRC}/../moz/zipped/FREEBSDGCCIruntime.zip)
|
|
|
|
.if !exists(${WRKSRC}/../moz/zipped/FREEBSDGCCIlib.zip)
|
|
|
|
.if !exists(${WRKSRC}/../moz/zipped/FREEBSDGCCIinc.zip)
|
2002-10-19 00:41:42 +02:00
|
|
|
@${MAKE} mozilla
|
|
|
|
.endif
|
2002-10-29 13:51:30 +01:00
|
|
|
.endif
|
2003-09-09 14:39:05 +02:00
|
|
|
.endif
|
2004-08-12 07:46:05 +02:00
|
|
|
.endif
|
2003-09-09 14:39:05 +02:00
|
|
|
.if exists(${WRKDIR}/.Xvfb.pid)
|
|
|
|
@-${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill
|
|
|
|
@${RM} -f ${WRKDIR}/.Xvfb.pid
|
|
|
|
.endif
|
|
|
|
.if !defined(DISPLAY)
|
|
|
|
#
|
|
|
|
# This is a UGLY hack to not have to specify a X-Display.
|
|
|
|
#
|
|
|
|
${X11BASE}/bin/Xvfb :1001 -screen 0 800x600x24 > /dev/null 2>&1 & ${ECHO} $$! > ${WRKDIR}/.Xvfb.pid
|
|
|
|
@sleep 5
|
2002-10-19 00:41:42 +02:00
|
|
|
.endif
|
2004-08-12 07:46:05 +02:00
|
|
|
@cd ${WRKSRC}/.. ; PATH="${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin" ./bootstrap
|
|
|
|
.if defined(L10NHELP) || defined(ALL_LOCALIZED_LANGS)
|
2003-03-06 00:24:06 +01:00
|
|
|
@${MKDIR} ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/pck
|
|
|
|
@${CP} ${WRKDIR}/L10NHELP/*.zip ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/pck
|
2002-10-19 00:41:42 +02:00
|
|
|
.endif
|
2003-09-09 14:39:05 +02:00
|
|
|
.if !defined(DISPLAY)
|
2004-08-12 07:46:05 +02:00
|
|
|
@cd ${WRKSRC}/.. ; DISPLAY=${DISPLAYHACK} PATH="${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin" ; \
|
|
|
|
${TCSH} -c 'source FreeBSDEnv.Set ; unsetenv TOP ; ${BUILD}'
|
2003-09-09 14:39:05 +02:00
|
|
|
@-${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill
|
|
|
|
@${RM} -f ${WRKDIR}/.Xvfb.pid
|
2002-10-19 00:41:42 +02:00
|
|
|
.endif
|
2004-08-12 07:46:05 +02:00
|
|
|
@cd ${WRKSRC}/.. ; DISPLAY=${DISPLAY} PATH="${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin" ; \
|
|
|
|
${TCSH} -c 'source FreeBSDEnv.Set ; unsetenv TOP ; ${BUILD}'
|
2002-10-19 00:41:42 +02:00
|
|
|
|
|
|
|
pre-install:
|
2003-03-29 08:35:35 +01:00
|
|
|
@${CP} ${FILESDIR}/oo_setup.resp \
|
2004-08-12 07:46:05 +02:00
|
|
|
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_PKGNAME}/normal/
|
2004-06-14 01:57:01 +02:00
|
|
|
@${REINPLACE_CMD} -e 's#%%PREFIX%%#${PREFIX}#g' \
|
|
|
|
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
2004-08-12 07:46:05 +02:00
|
|
|
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_PKGNAME}/normal/oo_setup.resp
|
1999-12-09 18:08:31 +01:00
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
do-install:
|
2003-09-09 14:39:05 +02:00
|
|
|
.if !defined(DISPLAY)
|
|
|
|
#
|
|
|
|
# UGLY hack to not have to specify a X-Display.
|
|
|
|
#
|
|
|
|
${X11BASE}/bin/Xvfb :1001 -screen 0 800x600x24 > /dev/null 2>&1 & ${ECHO} $$! > ${WRKDIR}/.Xvfb.pid
|
|
|
|
@sleep 5
|
2004-08-12 07:46:05 +02:00
|
|
|
@SAL_IGNOREXERRORS=1 TEMP=${WRKDIR} DISPLAY=${DISPLAYHACK} \
|
|
|
|
${WRKSRC}/../instsetoo/*.pro/${LANG_PKGNAME}/normal/setup -r:oo_setup.resp
|
2004-04-10 01:16:42 +02:00
|
|
|
@${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill
|
2003-09-09 14:39:05 +02:00
|
|
|
@${RM} -f ${WRKDIR}/.Xvfb.pid
|
|
|
|
.else
|
2004-08-12 07:46:05 +02:00
|
|
|
SAL_IGNOREXERRORS=1 TEMP=${WRKDIR} DISPLAY=${DISPLAY} \
|
|
|
|
${WRKSRC}/../instsetoo/*.pro/${LANG_PKGNAME}/normal/setup -r:oo_setup.resp
|
2003-09-09 14:39:05 +02:00
|
|
|
.endif
|
2002-10-19 00:41:42 +02:00
|
|
|
|
|
|
|
install-user:
|
2004-08-12 07:46:05 +02:00
|
|
|
@SAL_IGNOREXERRORS=1 ${PREFIX}/${INSTALLATION_BASEDIR}/program/setup
|
2002-10-19 00:41:42 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${ECHO_MSG} "===> Add wrapper scripts";
|
2003-09-17 06:06:28 +02:00
|
|
|
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
|
2004-06-14 01:57:01 +02:00
|
|
|
@${REINPLACE_CMD} -e 's#%%PREFIX%%#${PREFIX}#g' \
|
2003-09-17 06:06:28 +02:00
|
|
|
-e 's#%%LANG%%#${USE_LANG}#g' \
|
|
|
|
-e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
|
|
|
|
-e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
|
2004-06-14 01:57:01 +02:00
|
|
|
${WRKDIR}/openoffice-wrapper
|
2003-09-21 09:04:53 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice-wrapper \
|
2003-09-17 06:06:28 +02:00
|
|
|
${PREFIX}/bin/openoffice-${RELEASE_NR}
|
2003-09-14 23:52:25 +02:00
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
|
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
|
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
|
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-setup
|
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sfax
|
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-smath
|
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-simpress
|
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-spadmin
|
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sweb
|
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-swriter
|
2004-08-12 07:46:05 +02:00
|
|
|
@cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} openoffice-${RELEASE_NR} > ${TMPPLIST}
|
|
|
|
@cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} openoffice-${RELEASE_NR} >> ${TMPPLIST}
|
|
|
|
@cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type f >> ${TMPPLIST}
|
|
|
|
@cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type l >> ${TMPPLIST}
|
|
|
|
@cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type d > ${WRKDIR}/dir.tmp
|
2002-10-19 00:41:42 +02:00
|
|
|
@${SORT} -r ${WRKDIR}/dir.tmp | ${XARGS} -n 1 ${ECHO_CMD} @dirrm >> ${TMPPLIST}
|
|
|
|
|
|
|
|
package-rename:
|
2004-08-12 07:46:05 +02:00
|
|
|
@${ECHO_MSG} "===> Rename package for OOo mirror upload";
|
2002-10-19 00:41:42 +02:00
|
|
|
.if defined(LANG_SUFFIX)
|
2004-04-10 01:16:42 +02:00
|
|
|
@${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}
|
2002-10-19 00:41:42 +02:00
|
|
|
.else
|
2004-04-10 01:16:42 +02:00
|
|
|
@${MV} ${PKGFILE} \
|
|
|
|
${WRKDIR}/../OOo_${BUILD_NR}${MILESTONE}_${OPSYS}${SIMPLEOSVER}Intel_install${PKG_SUFX}
|
2002-10-19 00:41:42 +02:00
|
|
|
.endif
|
1999-12-09 18:08:31 +01:00
|
|
|
|
2004-04-10 01:16:42 +02:00
|
|
|
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
|
2003-03-12 02:04:08 +01:00
|
|
|
|
1999-12-15 00:14:36 +01:00
|
|
|
.include <bsd.port.post.mk>
|