2003-11-09 15:11:29 +01:00
|
|
|
# New ports collection makefile for: OpenOffice.org
|
2002-03-01 00:36:03 +01:00
|
|
|
# Date created: 28 Februar 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-04-12 23:35:37 +02:00
|
|
|
PORTVERSION= 1.0.3
|
2004-02-04 06:21:48 +01:00
|
|
|
PORTREVISION= 3
|
2002-06-15 01:05:41 +02:00
|
|
|
CATEGORIES+= editors
|
2004-04-12 02:52:04 +02:00
|
|
|
MASTER_SITES+= ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,misc/openoffice/&,} \
|
|
|
|
ftp://sunsite.cnlab-switch.ch/mirror/OpenOffice/%SUBDIR%/ \
|
|
|
|
ftp://ftp.kddlabs.co.jp/office/openoffice/%SUBDIR%/ \
|
|
|
|
ftp://ftp.tu-chemnitz.de/pub/openoffice/%SUBDIR%/ \
|
|
|
|
http://ftp.stardiv.de/pub/OpenOffice.org/%SUBDIR%/ \
|
2002-09-16 14:47:02 +02:00
|
|
|
http://ftp.gwdg.de/pub/misc/openoffice/%SUBDIR%/ \
|
2002-08-26 10:57:22 +02:00
|
|
|
ftp://ftp.cs.man.ac.uk/pub/toby/gpc/:gpc \
|
2003-10-01 07:53:01 +02:00
|
|
|
ftp://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/helpcontent-1.0/:help \
|
2002-10-14 22:24:23 +02:00
|
|
|
http://people.freebsd.org/~mbr/ooo/:moz
|
2002-12-08 00:42:31 +01:00
|
|
|
MASTER_SITE_SUBDIR= stable/${PORTVERSION}
|
2002-08-26 10:57:22 +02:00
|
|
|
DISTFILES+= OOo_${PORTVERSION}_source.tar.bz2 \
|
2003-07-02 23:00:12 +02:00
|
|
|
gpc231.tar.Z:gpc patch-openoffice-mozilla101-2002-10-14:moz \
|
2003-08-12 11:25:55 +02:00
|
|
|
mozilla-vendor-1.0.2a.tgz:moz
|
2002-08-19 16:03:54 +02:00
|
|
|
.if defined(L10NHELP)
|
2002-08-26 10:57:22 +02:00
|
|
|
DISTFILES+= ${L10NHELP:S/$/:help/}
|
2002-08-19 16:03:54 +02:00
|
|
|
.endif
|
2002-07-16 14:55:34 +02:00
|
|
|
|
2004-04-12 02:35:36 +02:00
|
|
|
NO_LATEST_LINK= yes
|
2002-10-14 18:00:22 +02:00
|
|
|
FIND?= /usr/bin/find
|
2002-07-16 14:55:34 +02:00
|
|
|
CUT?= /usr/bin/cut
|
2002-09-08 18:02:39 +02:00
|
|
|
AWK?= /usr/bin/awk
|
|
|
|
GREP?= /usr/bin/grep
|
|
|
|
MOUNT?= /sbin/mount
|
2002-10-14 18:00:22 +02:00
|
|
|
ZIP?= ${PREFIX}/bin/zip
|
|
|
|
UNZIP?= ${PREFIX}/bin/unzip
|
2003-01-21 23:13:13 +01:00
|
|
|
ANT?= ${LOCALBASE}/bin/ant
|
2002-10-14 18:00:22 +02:00
|
|
|
TCSH?= /bin/tcsh
|
2003-01-21 18:09:39 +01:00
|
|
|
PASTE?= /usr/bin/paste
|
2002-06-15 01:05:41 +02:00
|
|
|
|
2004-02-04 06:25:22 +01:00
|
|
|
USE_GNOME= orbit gtk12
|
|
|
|
|
2002-05-29 16:06:33 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-09-19 04:59:05 +02:00
|
|
|
.if ${OSVERSION} >= 502126
|
|
|
|
BROKEN= "Does not compile on FreeBSD >= 5.x"
|
|
|
|
.endif
|
|
|
|
|
2002-07-16 14:55:34 +02:00
|
|
|
INSTALLATION_BASEDIR= OpenOffice.org1.0
|
2003-01-21 23:13:13 +01:00
|
|
|
BUILD_NR= 641
|
2003-10-01 07:53:01 +02:00
|
|
|
DIST_SUBDIR= openoffice1.0
|
2002-07-17 10:32:16 +02:00
|
|
|
DICT_DIR= ${PREFIX}/${INSTALLATION_BASEDIR}/share/dict/ooo/
|
2002-08-16 17:37:14 +02:00
|
|
|
|
2002-06-15 01:05:41 +02:00
|
|
|
#
|
|
|
|
# configuration for language specific slave ports
|
|
|
|
#
|
2002-08-09 13:30:21 +02:00
|
|
|
.if !defined(LANG_EXT)
|
|
|
|
LANG_EXT=01
|
2002-08-16 17:37:14 +02:00
|
|
|
.else
|
|
|
|
#
|
2003-03-06 00:29:50 +01:00
|
|
|
# Add pkg-descr and pkg-message if available
|
2002-08-16 17:37:14 +02:00
|
|
|
#
|
|
|
|
.if exists(${.CURDIR}/pkg-descr)
|
|
|
|
DESCR= ${.CURDIR}/pkg-descr
|
|
|
|
.endif
|
2003-03-06 00:29:50 +01:00
|
|
|
.if exists(${.CURDIR}/pkg-message)
|
2003-01-23 10:55:17 +01:00
|
|
|
PKGMESSAGE= ${.CURDIR}/pkg-message
|
|
|
|
.endif
|
2002-08-16 17:37:14 +02:00
|
|
|
#
|
|
|
|
# Set prefix and suffix
|
|
|
|
#
|
2002-06-15 01:05:41 +02:00
|
|
|
.if defined(LANG_PKGNAME)
|
|
|
|
PKGNAMEPREFIX= ${LANG_PKGNAME}-
|
2002-08-12 00:29:08 +02:00
|
|
|
.if defined(LANG_SUFFIX)
|
|
|
|
PKGNAMESUFFIX= -${LANG_SUFFIX}
|
|
|
|
.endif
|
2002-08-16 17:37:14 +02:00
|
|
|
.endif # if defined(LANG_PKGNAME)
|
2002-06-15 01:05:41 +02:00
|
|
|
#
|
|
|
|
# LANG_CONFIGURE_ARG is missing for the german port
|
|
|
|
#
|
2003-01-24 12:00:39 +01:00
|
|
|
.if defined(LANG_EXT)
|
2002-06-19 12:47:32 +02:00
|
|
|
CONFIGURE_ARGS+= --with-lang=${LANG_CONFIGURE_ARG},ENUS
|
2002-06-15 01:05:41 +02:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2003-01-21 18:09:39 +01:00
|
|
|
.if !defined (LANG) && !defined(USE_LANG)
|
|
|
|
USE_LANG= en_US.ISO8859-15
|
|
|
|
LANG_LIST= en_US.ISO8859-15 en_US.ISO8859-1 US-ASCII
|
|
|
|
.else
|
2003-01-21 18:17:08 +01:00
|
|
|
.if !defined(USE_LANG)
|
2003-01-21 18:09:39 +01:00
|
|
|
USE_LANG= ${LANG}
|
|
|
|
.endif
|
2003-01-21 18:17:08 +01:00
|
|
|
.endif
|
2003-01-21 18:09:39 +01:00
|
|
|
|
|
|
|
LANG_SORTED= `${ECHO} ${LANG_LIST} | ${TR} " " "\n" | ${PASTE} -d " " - -`
|
|
|
|
|
2002-07-07 10:42:33 +02:00
|
|
|
#
|
|
|
|
# OO build is broken with the system gcc on STABLE.
|
|
|
|
#
|
2003-01-21 18:29:30 +01:00
|
|
|
BUILD_DEPENDS+= gcc32:${PORTSDIR}/lang/gcc32
|
|
|
|
CC= gcc32
|
|
|
|
CXX= g++32
|
|
|
|
USE_GCC=3.2
|
2002-06-06 15:23:26 +02:00
|
|
|
|
2002-05-29 16:06:33 +02:00
|
|
|
EXTRACT_ONLY= OOo_${PORTVERSION}_source.tar.bz2
|
|
|
|
|
2002-06-23 00:24:46 +02:00
|
|
|
MAINTAINER= openoffice@FreeBSD.org
|
2003-03-07 01:16:25 +01:00
|
|
|
COMMENT?= Integrated wordprocessor/dbase/spreadheet/drawing/chart/browser
|
2003-03-26 18:06:20 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# The JDK dependency needs to be at the first place, so all
|
|
|
|
# following dependencies use the same JDK.
|
|
|
|
#
|
|
|
|
.if !defined(WITH_BSD_JDK)
|
|
|
|
BUILD_DEPENDS+= ${JAVAVM}:${PORTSDIR}/java/linux-sun-jdk13
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= ${JAVAVM}:${PORTSDIR}/java/jdk13
|
|
|
|
.endif
|
|
|
|
|
2003-01-21 23:13:13 +01:00
|
|
|
#.if !defined(USE_GCC)
|
|
|
|
#BUILD_DEPENDS= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
|
|
|
|
#.endif
|
2002-03-13 20:19:41 +01:00
|
|
|
BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip
|
2002-07-16 14:55:34 +02:00
|
|
|
BUILD_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
|
2003-07-23 16:30:29 +02:00
|
|
|
BUILD_DEPENDS+= ${ANT}:${PORTSDIR}/devel/apache-ant
|
2002-06-10 14:05:38 +02:00
|
|
|
.if !defined(DISPLAY)
|
2004-07-23 21:10:32 +02:00
|
|
|
BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT}
|
2002-06-10 14:05:38 +02:00
|
|
|
.endif
|
2002-03-13 20:19:41 +01:00
|
|
|
|
2003-06-20 09:40:03 +02:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
mng.1:${PORTSDIR}/graphics/libmng \
|
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
|
|
|
|
2002-06-03 15:55:41 +02:00
|
|
|
USE_PERL5= yes
|
2002-03-13 20:19:41 +01:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_BISON= yes
|
|
|
|
USE_GMAKE= yes
|
2002-07-16 14:55:34 +02:00
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
EXTRACT_BEFORE_ARGS_R= -dc
|
|
|
|
EXTRACT_AFTER_ARGS_R= | ${TAR} -xf -
|
|
|
|
EXTRACT_CMD_R= ${GZIP_CMD}
|
2002-08-16 17:37:14 +02:00
|
|
|
EXTRACT_REST= gpc231.tar.Z
|
2002-06-05 16:29:24 +02:00
|
|
|
|
2003-01-25 20:55:09 +01:00
|
|
|
.if !defined(WITH_BSD_JDK)
|
2003-01-27 08:15:26 +01:00
|
|
|
JDK13DIR?= ${LOCALBASE}/linux-sun-jdk1.3.1
|
2003-01-25 20:55:09 +01:00
|
|
|
.else
|
2002-07-16 14:55:34 +02:00
|
|
|
JDK13DIR?= ${LOCALBASE}/jdk1.3.1
|
2003-01-25 20:55:09 +01:00
|
|
|
.endif
|
2002-07-16 14:55:34 +02:00
|
|
|
JAVAVM= ${JDK13DIR}/bin/java
|
1999-12-31 21:14:55 +01:00
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-03-12 03:48:25 +01:00
|
|
|
USE_AUTOCONF_VER= 253
|
2002-08-25 23:14:00 +02:00
|
|
|
WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work
|
2003-01-12 22:59:51 +01:00
|
|
|
WRKSRC= ${WRKDIR}/oo_${PORTVERSION}_src/config_office
|
2002-06-04 21:31:50 +02:00
|
|
|
LD_PATH1= ${WRKSRC}/../vos/unxfbsd.pro/lib/:${WRKSRC}/../ucbhelper/unxfbsd.pro/lib/
|
2003-01-21 23:13:13 +01:00
|
|
|
LD_PATH= ${LD_PATH1}:${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/lib/
|
2002-06-06 16:06:19 +02:00
|
|
|
.if defined(WITH_DEBUG)
|
2002-08-16 17:37:14 +02:00
|
|
|
CFLAGS+= -g
|
2002-07-22 00:48:50 +02:00
|
|
|
.if ${WITH_DEBUG} == 2
|
2002-08-26 10:02:31 +02:00
|
|
|
BUILD= dmake debug="true"
|
2002-08-09 17:06:57 +02:00
|
|
|
.else
|
2002-08-26 10:02:31 +02:00
|
|
|
BUILD= dmake
|
2002-07-22 00:48:50 +02:00
|
|
|
.endif
|
2002-06-06 16:06:19 +02:00
|
|
|
.else
|
2002-08-26 10:02:31 +02:00
|
|
|
BUILD= dmake strip="true"
|
2002-06-06 16:06:19 +02:00
|
|
|
.endif
|
2000-10-19 22:48:34 +02:00
|
|
|
|
2002-06-10 14:05:38 +02:00
|
|
|
.if !defined(DISPLAY)
|
|
|
|
DISPLAYHACK=localhost:1001
|
|
|
|
.endif
|
|
|
|
|
2002-03-09 23:41:53 +01:00
|
|
|
CONFIGURE_ENV= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
|
|
|
|
PTHREAD_LIBS=${PTHREAD_LIBS}
|
|
|
|
|
2002-05-29 16:06:33 +02:00
|
|
|
CONFIGURE_ARGS+= --with-jdk-home=${JDK13DIR} \
|
2003-01-21 23:13:13 +01:00
|
|
|
--with-os-version=${OSVERSION} \
|
2003-01-25 20:55:09 +01:00
|
|
|
--with-ant-home=${LOCALBASE}
|
2002-05-29 16:06:33 +02:00
|
|
|
|
2003-01-21 23:13:13 +01:00
|
|
|
#.if !defined(USE_GCC)
|
|
|
|
#CONFIGURE_ARGS+= --with-stlport4-home=${PREFIX}
|
|
|
|
#.endif
|
2002-05-29 16:06:33 +02:00
|
|
|
|
2003-01-25 20:55:09 +01:00
|
|
|
.if !defined(WITH_BSD_JDK)
|
|
|
|
CONFIGURE_ARGS+= --enable-linuxjdk=yes
|
|
|
|
.endif
|
|
|
|
|
2002-06-06 15:23:26 +02:00
|
|
|
.if defined(WITH_DEBUG)
|
2002-07-22 00:48:50 +02:00
|
|
|
.if ${WITH_DEBUG} == 2
|
2002-06-06 15:23:26 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
|
|
.endif
|
2002-07-22 00:48:50 +02:00
|
|
|
.endif
|
2002-06-06 15:23:26 +02:00
|
|
|
|
2002-06-05 14:30:24 +02:00
|
|
|
.if defined(USE_GCC) && (${USE_GCC} == 3.1 || ${USE_GCC} == 3.2)
|
2002-05-29 16:06:33 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-gcc3
|
|
|
|
.endif
|
1999-12-15 00:14:36 +01:00
|
|
|
|
2002-06-05 14:44:14 +02:00
|
|
|
.if ${OSVERSION} > 500000 && !defined(USE_GCC)
|
|
|
|
CONFIGURE_ARGS+= --enable-gcc3
|
|
|
|
.endif
|
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
pre-fetch:
|
2002-09-08 18:02:39 +02:00
|
|
|
@${ECHO}
|
2003-01-21 18:09:39 +01:00
|
|
|
.if !defined(LANG)
|
2002-09-08 18:02:39 +02:00
|
|
|
@${ECHO} "REQUIREMENTS:"
|
2002-06-06 15:23:26 +02:00
|
|
|
@${ECHO}
|
2003-01-21 18:09:39 +01:00
|
|
|
@${ECHO} "OO requires that the ENV variable LANG"
|
|
|
|
@${ECHO} "is set to a proper value. Dependent on"
|
|
|
|
@${ECHO} "which language port you use, OO does"
|
|
|
|
@${ECHO} "automatically set LANG to a suitable"
|
|
|
|
@${ECHO} "value. You can change this with:"
|
|
|
|
@${ECHO}
|
2003-06-08 00:52:21 +02:00
|
|
|
@${ECHO} "USE_LANG=\"preferred language\""
|
2003-01-21 18:09:39 +01:00
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "and set a different language"
|
|
|
|
@${ECHO} "like:"
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "${LANG_SORTED}"
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "Your current setting is:"
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "USE_LANG=${USE_LANG}"
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO}
|
2002-06-06 15:23:26 +02:00
|
|
|
.endif
|
2003-01-21 18:09:39 +01:00
|
|
|
@${ECHO} "OPTIONS:"
|
2002-06-05 14:30:24 +02:00
|
|
|
.if !defined(USE_GCC)
|
2002-05-19 15:34:25 +02:00
|
|
|
@${ECHO}
|
2002-07-08 12:02:18 +02:00
|
|
|
@${ECHO} "You can compile OO with different"
|
|
|
|
@${ECHO} "gcc compiler versions:"
|
2002-05-19 15:34:25 +02:00
|
|
|
@${ECHO}
|
2002-07-08 12:02:18 +02:00
|
|
|
@${ECHO} "Add USE_GCC=2.95 or USE_GCC=3.1"
|
|
|
|
@${ECHO} "to compile openoffice with your"
|
2003-06-08 00:52:21 +02:00
|
|
|
@${ECHO} "preferred compiler."
|
2002-06-06 15:23:26 +02:00
|
|
|
.endif
|
2003-01-25 20:55:09 +01:00
|
|
|
.if !defined(WITH_BSD_JDK)
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "If you like to use the native BSD"
|
|
|
|
@${ECHO} "JDK for the build system, you can use"
|
|
|
|
@${ECHO} "WITH_BSD_JDK=TRUE to disable the"
|
|
|
|
@${ECHO} "usage of the linux-JDK and linux dependency."
|
|
|
|
@${ECHO}
|
|
|
|
.endif
|
2002-06-06 15:23:26 +02:00
|
|
|
.if !defined(WITH_DEBUG)
|
2002-05-19 15:34:25 +02:00
|
|
|
@${ECHO}
|
2002-07-08 12:02:18 +02:00
|
|
|
@${ECHO} "You can compile OO with debug symbols"
|
2002-07-22 00:48:50 +02:00
|
|
|
@${ECHO} "if you call make with WITH_DEBUG=1"
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "If you set WITH_DEBUG=2, you add internal"
|
2003-01-23 17:10:27 +01:00
|
|
|
@${ECHO} "OO.org debug support."
|
2002-07-22 00:48:50 +02:00
|
|
|
@${ECHO}
|
2002-05-19 15:34:25 +02:00
|
|
|
.endif
|
2002-08-08 19:20:20 +02:00
|
|
|
.if !defined(WITH_TTF_BYTECODE_ENABLED)
|
|
|
|
@${ECHO}
|
|
|
|
@${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."
|
|
|
|
@${ECHO}
|
|
|
|
@${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}
|
|
|
|
.endif
|
2003-04-18 12:30:58 +02:00
|
|
|
.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."
|
2003-04-27 21:48:57 +02:00
|
|
|
@${ECHO}
|
2003-04-18 12:30:58 +02:00
|
|
|
.endif
|
2002-05-29 16:06:33 +02:00
|
|
|
.if ${OSVERSION} < 450002
|
2002-05-19 15:34:25 +02:00
|
|
|
@${ECHO}
|
2002-07-08 12:02:18 +02:00
|
|
|
@${ECHO} "OS-VERSION ${OSVERSION} too low"
|
2002-05-19 15:34:25 +02:00
|
|
|
@${ECHO}
|
2002-07-08 12:02:18 +02:00
|
|
|
@${ECHO} "OO need some important libc_r and"
|
|
|
|
@${ECHO} "gcc fixes to build. Please upgrade to 4.6"
|
|
|
|
@${ECHO} "RELEASE or 4.6 STABLE."
|
2002-05-19 15:34:25 +02:00
|
|
|
@${FALSE}
|
2002-03-01 00:36:03 +01:00
|
|
|
.endif
|
2002-05-19 15:34:25 +02:00
|
|
|
@${ECHO}
|
2002-07-08 12:02:18 +02:00
|
|
|
@${ECHO} "NOTICE:"
|
2002-05-19 15:34:25 +02:00
|
|
|
@${ECHO}
|
2002-07-08 12:02:18 +02:00
|
|
|
@${ECHO} "To build Openoffice, you should have a lot"
|
2002-06-06 15:23:26 +02:00
|
|
|
.if defined(WITH_DEBUG)
|
2002-08-08 19:58:51 +02:00
|
|
|
@${ECHO} "of free diskspace (~ 8GB)."
|
2002-06-06 15:23:26 +02:00
|
|
|
.else
|
2002-08-08 19:58:51 +02:00
|
|
|
@${ECHO} "of free diskspace (~ 4GB)."
|
2002-06-06 15:23:26 +02:00
|
|
|
.endif
|
2002-05-19 15:34:25 +02:00
|
|
|
@${ECHO}
|
2002-06-13 12:40:20 +02:00
|
|
|
.if (defined(USE_GCC) && ${USE_GCC} == 2.95) || \
|
|
|
|
(${OSVERSION} < 500000 && !defined(USE_GCC))
|
2002-07-08 12:02:18 +02:00
|
|
|
@${ECHO} "KERNEL CONFIGURATION:"
|
2002-05-19 15:34:25 +02:00
|
|
|
@${ECHO}
|
2002-07-08 12:02:18 +02:00
|
|
|
@${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:"
|
2002-08-16 17:37:14 +02:00
|
|
|
@${ECHO}
|
2002-07-08 12:02:18 +02:00
|
|
|
@${ECHO} "kern.maxdsiz=\"1073741824\""
|
|
|
|
@${ECHO} "kern.maxssiz=\"268435456\""
|
|
|
|
.endif
|
2002-10-14 22:24:23 +02:00
|
|
|
@${ECHO}
|
2003-01-21 18:09:39 +01:00
|
|
|
.if ${OSVERSION} < 460002
|
2002-10-14 22:24:23 +02:00
|
|
|
@${ECHO} "REQUIRED SYSTEM PATCHES:"
|
|
|
|
@${ECHO}
|
2003-01-21 18:09:39 +01:00
|
|
|
.endif
|
2003-04-20 02:05:41 +02:00
|
|
|
.if ${OSVERSION} < 480000
|
2002-10-14 22:24:23 +02:00
|
|
|
@${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}
|
2002-11-04 06:47:14 +01:00
|
|
|
.endif
|
2002-07-08 12:02:18 +02:00
|
|
|
.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}
|
2002-10-14 22:24:23 +02:00
|
|
|
@${ECHO} "http://people.freebsd.org/~mbr/ooo/rtld-alloca.diff"
|
2002-07-08 12:02:18 +02:00
|
|
|
@${ECHO}
|
|
|
|
.endif
|
2002-07-14 09:43:53 +02:00
|
|
|
.if ${OSVERSION} < 460002
|
2002-07-08 12:02:18 +02:00
|
|
|
@${ECHO}
|
2002-08-08 19:58:51 +02:00
|
|
|
@${ECHO} "OO.org soffice binary can deadlock. You can work around"
|
2002-07-08 12:02:18 +02:00
|
|
|
@${ECHO} "this problem with this patch:"
|
|
|
|
@${ECHO}
|
2002-10-14 22:24:23 +02:00
|
|
|
@${ECHO} "http://people.freebsd.org/~mbr/ooo/rtld-deadlock.diff"
|
2002-07-08 12:02:18 +02:00
|
|
|
@${ECHO}
|
2002-06-10 15:11:37 +02:00
|
|
|
.endif
|
2003-04-20 02:05:41 +02:00
|
|
|
.if ${OSVERSION} < 480000
|
2002-08-08 19:58:51 +02:00
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "OO.org build can deadlock in regmerge. You can work around"
|
|
|
|
@${ECHO} "this problem with this patch:"
|
|
|
|
@${ECHO}
|
2002-10-14 22:24:23 +02:00
|
|
|
@${ECHO} "http://people.freebsd.org/~mbr/ooo/rtld-builddeadlock.diff"
|
2002-08-08 19:58:51 +02:00
|
|
|
@${ECHO}
|
|
|
|
.endif
|
2002-04-25 10:08:18 +02:00
|
|
|
.if !exists(/usr/include/langinfo.h)
|
|
|
|
@${ECHO}
|
2002-07-08 12:02:18 +02:00
|
|
|
@${ECHO} "langinfo.h is missing !"
|
2002-04-25 10:08:18 +02:00
|
|
|
@${ECHO}
|
2002-07-08 12:02:18 +02:00
|
|
|
@${ECHO} "Please upgrade to 4.6 RELEASE or"
|
|
|
|
@${ECHO} "4.6 STABLE."
|
2002-04-25 10:08:18 +02:00
|
|
|
@${ECHO}
|
|
|
|
@${FALSE}
|
|
|
|
.endif
|
1999-12-09 18:08:31 +01:00
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
post-extract:
|
|
|
|
@for file in ${EXTRACT_REST}; do \
|
|
|
|
if ! (cd ${WRKDIR} && ${EXTRACT_CMD_R} \
|
|
|
|
${EXTRACT_BEFORE_ARGS_R} \
|
|
|
|
${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS_R}) ; \
|
|
|
|
then \
|
|
|
|
exit 1; \
|
|
|
|
fi \
|
|
|
|
done
|
2002-06-06 15:23:26 +02:00
|
|
|
@${CP} ${WRKDIR}/gpc231/gpc.c ${WRKSRC}/../external/gpc/
|
|
|
|
@${CP} ${WRKDIR}/gpc231/gpc.h ${WRKSRC}/../external/gpc/
|
2002-10-09 11:10:28 +02:00
|
|
|
@${MAKE} extract-mozilla
|
2002-09-14 09:20:09 +02:00
|
|
|
@-${RM} ${WRKSRC}/../moz/zipped/*.zip
|
2002-10-23 01:24:52 +02:00
|
|
|
@${CHMOD} +x ${WRKSRC}/../solenv/bin/zipdep.pl
|
2003-04-12 23:35:37 +02:00
|
|
|
@${MKDIR} -p ${WRKSRC}/../bridges/source/cpp_uno/gcc2_freebsd_intel-sjlj
|
|
|
|
@${MKDIR} -p ${WRKSRC}/../bridges/source/cpp_uno/gcc3_freebsd_intel
|
2002-08-19 16:03:54 +02:00
|
|
|
.if defined(L10NHELP)
|
|
|
|
@${ECHO_MSG} "===> Extracting L10NHELP sub project"
|
|
|
|
@${MKDIR} ${WRKDIR}/L10NHELP
|
|
|
|
@cd ${WRKDIR}/L10NHELP && \
|
|
|
|
${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${L10NHELP}
|
|
|
|
.endif
|
2002-03-09 11:43:14 +01:00
|
|
|
|
|
|
|
post-patch:
|
2002-10-09 11:10:28 +02:00
|
|
|
@${MAKE} patch-mozilla
|
2003-04-27 13:58:20 +02:00
|
|
|
@${MAKE} fix-kdewrappers
|
|
|
|
@${MAKE} fix-gnomewrappers
|
2002-08-08 19:20:20 +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-08-08 19:20:20 +02:00
|
|
|
fi
|
|
|
|
.endif
|
2003-04-18 12:30:58 +02:00
|
|
|
.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
|
2002-06-06 15:23:26 +02:00
|
|
|
.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"
|
2002-03-08 15:27:12 +01:00
|
|
|
@${FIND} ${WRKSRC}/.. | ${EGREP} "\.(cxx|h|c)$$" | ${XARGS} \
|
2002-03-06 18:18:04 +01:00
|
|
|
${PERL} -pi -e "s|<malloc.h>|<stdlib.h>|g"
|
2002-03-01 00:36:03 +01:00
|
|
|
|
2003-04-27 13:58:20 +02:00
|
|
|
fix-kdewrappers:
|
|
|
|
@${PERL} -pi -e 's|"Exec", "\\"\<progpath\>/program/|"Exec", "\\"${PREFIX}/bin/openoffice-|' \
|
|
|
|
${WRKSRC}/../sysui/oounix/office/kde2/kdeint
|
|
|
|
|
|
|
|
fix-gnomewrappers:
|
|
|
|
@${PERL} -pi -e 's|"Exec", "<progpath>/program/|"Exec", "${PREFIX}/bin/openoffice-|' \
|
|
|
|
${WRKSRC}/../sysui/oounix/office/gnome/gnomeint
|
|
|
|
|
2002-08-19 16:03:54 +02:00
|
|
|
extract-mozilla:
|
2002-08-16 17:37:14 +02:00
|
|
|
.if ! exists(${WRKDIR}/mozilla/Makefile)
|
2002-08-19 16:03:54 +02:00
|
|
|
@${ECHO_MSG} "===> Extracting mozilla sub project"
|
2003-08-12 11:25:55 +02:00
|
|
|
@cd ${WRKDIR} && tar -xzf ${DISTDIR}/${DIST_SUBDIR}/mozilla-vendor-1.0.2a.tgz
|
2002-08-16 17:37:14 +02:00
|
|
|
.endif
|
2002-09-11 16:28:59 +02:00
|
|
|
@cd ${WRKDIR}/mozilla && ${MAKE} extract WRKDIRPREFIX=""
|
2002-08-19 16:03:54 +02:00
|
|
|
|
|
|
|
patch-mozilla:
|
2002-10-14 18:00:22 +02:00
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/patch-openoffice-mozilla101-2002-10-14 \
|
|
|
|
${WRKDIR}/mozilla/files/
|
2002-09-11 16:28:59 +02:00
|
|
|
@cd ${WRKDIR}/mozilla && ${MAKE} patch WRKDIRPREFIX=""
|
2002-08-19 16:03:54 +02:00
|
|
|
|
|
|
|
build-mozilla:
|
2002-10-15 23:01:14 +02:00
|
|
|
.if ! exists(${WRKDIR}/FREEBSDGCCIruntime.zip)
|
2002-08-19 16:03:54 +02:00
|
|
|
@${ECHO_MSG} "===> Building mozilla sub project"
|
2002-08-16 17:37:14 +02:00
|
|
|
.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
|
2002-08-17 12:48:18 +02:00
|
|
|
.if defined(USE_GCC)
|
2002-09-11 16:28:59 +02:00
|
|
|
@cd ${WRKDIR}/mozilla && ${MAKE} CXX=${CXX} CC=${CC} CFLAGS="${CFLAGS}" USE_GCC=${USE_GCC} build WRKDIRPREFIX=""
|
2002-08-17 12:48:18 +02:00
|
|
|
.else
|
2002-09-11 16:28:59 +02:00
|
|
|
@cd ${WRKDIR}/mozilla && ${MAKE} CFLAGS="${CFLAGS}" build WRKDIRPREFIX=""
|
2002-08-17 12:48:18 +02:00
|
|
|
.endif
|
2002-08-16 17:37:14 +02:00
|
|
|
@${CP} ${FILESDIR}/zipmoz.sh ${WRKDIR}
|
|
|
|
@${CHMOD} 755 ${WRKDIR}/zipmoz.sh
|
|
|
|
@${WRKDIR}/zipmoz.sh ${WRKDIR}/mozilla/work/mozilla/dist FREEBSDGCCI ${WRKDIR}
|
2002-09-14 09:20:09 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
install-mozilla:
|
2002-08-16 17:37:14 +02:00
|
|
|
@${CP} ${WRKDIR}/FREEBSDGCCIinc.zip ${WRKSRC}/../moz/zipped/
|
|
|
|
@${CP} ${WRKDIR}/FREEBSDGCCIlib.zip ${WRKSRC}/../moz/zipped/
|
|
|
|
@${CP} ${WRKDIR}/FREEBSDGCCIruntime.zip ${WRKSRC}/../moz/zipped/
|
|
|
|
|
2002-10-14 18:00:22 +02:00
|
|
|
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/
|
2002-10-15 23:01:14 +02:00
|
|
|
@-${RM} ${WRKDIR}/mozilla-runtime/components/component.reg
|
2002-10-14 18:00:22 +02:00
|
|
|
@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 -@
|
|
|
|
|
2002-08-19 16:03:54 +02:00
|
|
|
mozilla:
|
|
|
|
@${MAKE} extract-mozilla
|
|
|
|
@${MAKE} patch-mozilla
|
|
|
|
@${MAKE} build-mozilla
|
2002-10-14 18:00:22 +02:00
|
|
|
@${MAKE} register-mozilla
|
2002-10-15 11:58:18 +02:00
|
|
|
@${MAKE} install-mozilla
|
2002-08-19 16:03:54 +02:00
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
do-build:
|
2002-10-29 13:51:30 +01:00
|
|
|
.if ! exists(${WRKSRC}/../moz/zipped/FREEBSDGCCIruntime.zip)
|
|
|
|
.if ! exists(${WRKSRC}/../moz/zipped/FREEBSDGCCIlib.zip)
|
|
|
|
.if ! exists(${WRKSRC}/../moz/zipped/FREEBSDGCCIinc.zip)
|
2002-08-16 17:37:14 +02:00
|
|
|
@${MAKE} mozilla
|
2002-10-15 23:01:14 +02:00
|
|
|
.endif
|
2002-10-29 13:51:30 +01:00
|
|
|
.endif
|
|
|
|
.endif
|
2002-06-07 16:14:10 +02:00
|
|
|
.if exists(${WRKDIR}/.Xvfb.pid)
|
2003-04-27 12:33:07 +02:00
|
|
|
@-${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill
|
2002-07-14 09:43:53 +02:00
|
|
|
@${RM} -f ${WRKDIR}/.Xvfb.pid
|
2002-06-07 16:14:10 +02:00
|
|
|
.endif
|
2002-06-10 14:05:38 +02:00
|
|
|
.if !defined(DISPLAY)
|
2002-06-07 16:14:10 +02:00
|
|
|
#
|
|
|
|
# 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-06-10 14:05:38 +02:00
|
|
|
.endif
|
2002-03-04 22:48:29 +01:00
|
|
|
@cd ${WRKSRC}/.. && PATH="${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin" ./bootstrap
|
2002-08-19 16:03:54 +02:00
|
|
|
.if defined(L10NHELP)
|
2003-01-21 23:13:13 +01:00
|
|
|
@${MKDIR} ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/pck
|
|
|
|
@${CP} ${WRKDIR}/L10NHELP/*.zip ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/pck
|
2002-08-19 16:03:54 +02:00
|
|
|
.endif
|
2002-06-10 14:05:38 +02:00
|
|
|
.if !defined(DISPLAY)
|
|
|
|
@cd ${WRKSRC}/.. && DISPLAY=${DISPLAYHACK} PATH="${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin" && \
|
2002-10-14 18:00:22 +02:00
|
|
|
${TCSH} -c 'source FreeBSDEnv.Set && unsetenv TOP && ${BUILD}'
|
2003-04-27 12:33:07 +02:00
|
|
|
@-${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill
|
2002-06-07 16:14:10 +02:00
|
|
|
@${RM} -f ${WRKDIR}/.Xvfb.pid
|
2002-06-10 14:05:38 +02:00
|
|
|
.else
|
|
|
|
@cd ${WRKSRC}/.. && DISPLAY=${DISPLAY} PATH="${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin" && \
|
2002-10-14 18:00:22 +02:00
|
|
|
${TCSH} -c 'source FreeBSDEnv.Set && unsetenv TOP && ${BUILD}'
|
2002-06-10 14:05:38 +02:00
|
|
|
.endif
|
2002-06-15 01:05:41 +02:00
|
|
|
.if defined(LANG_PKGNAME)
|
|
|
|
@cd ${WRKSRC}/.. && PATH="${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin" && \
|
2003-02-12 16:05:30 +01:00
|
|
|
${TCSH} -c 'source FreeBSDEnv.Set && unsetenv TOP && cd instsetoo/util && ${BUILD} LANGEXT=${LANG_EXT}'
|
2002-06-15 01:05:41 +02:00
|
|
|
.endif
|
1999-12-09 18:08:31 +01:00
|
|
|
|
2002-04-25 00:02:12 +02:00
|
|
|
pre-install:
|
2002-05-19 22:24:05 +02:00
|
|
|
@${SED} -e 's#%%PREFIX%%#${PREFIX}#g' < ${FILESDIR}/oo_setup.resp \
|
2002-07-14 09:43:53 +02:00
|
|
|
> ${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
|
2002-04-25 00:02:12 +02:00
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
do-install:
|
2002-06-10 14:05:38 +02:00
|
|
|
.if !defined(DISPLAY)
|
2002-06-07 16:14:10 +02:00
|
|
|
#
|
|
|
|
# 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-04-25 00:02:12 +02:00
|
|
|
@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \
|
2002-06-10 14:05:38 +02:00
|
|
|
TEMP=${WRKDIR} DISPLAY=${DISPLAYHACK} \
|
2002-06-15 01:05:41 +02:00
|
|
|
${WRKSRC}/../instsetoo/*.pro/${LANG_EXT}/normal/setup -r:oo_setup.resp
|
2003-04-27 12:33:07 +02:00
|
|
|
@-${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill
|
2002-06-07 16:14:10 +02:00
|
|
|
@${RM} -f ${WRKDIR}/.Xvfb.pid
|
2002-06-10 14:05:38 +02:00
|
|
|
.else
|
|
|
|
@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \
|
|
|
|
TEMP=${WRKDIR} DISPLAY=${DISPLAY} \
|
2002-06-15 01:05:41 +02:00
|
|
|
${WRKSRC}/../instsetoo/*.pro/${LANG_EXT}/normal/setup -r:oo_setup.resp
|
2002-06-10 14:05:38 +02:00
|
|
|
.endif
|
1999-12-09 18:08:31 +01:00
|
|
|
|
2002-05-19 22:26:47 +02:00
|
|
|
install-user:
|
|
|
|
@-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" \
|
2002-07-16 14:55:34 +02:00
|
|
|
${PREFIX}/${INSTALLATION_BASEDIR}/program/setup
|
2002-05-19 22:26:47 +02:00
|
|
|
|
2002-06-15 01:05:41 +02:00
|
|
|
post-install:
|
2002-08-01 14:29:21 +02:00
|
|
|
@${ECHO_MSG} "===> Add wrapper scripts";
|
2003-01-22 15:54:21 +01:00
|
|
|
@${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
|
|
|
|
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
|
|
|
|
@${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
|
2002-08-19 16:03:54 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice
|
2002-08-01 14:29:21 +02:00
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-sagenda
|
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-scalc
|
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-sdraw
|
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-setup
|
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-sfax
|
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-simpress
|
2003-04-27 12:08:53 +02:00
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-smath
|
2002-08-01 14:29:21 +02:00
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-spadmin
|
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-sweb
|
|
|
|
@${LN} -fs ${PREFIX}/bin/openoffice ${PREFIX}/bin/openoffice-swriter
|
|
|
|
@cd ${PREFIX} && ${FIND} -s bin -type f | ${GREP} openoffice > ${TMPPLIST}
|
|
|
|
@cd ${PREFIX} && ${FIND} -s bin -type l | ${GREP} openoffice >> ${TMPPLIST}
|
|
|
|
@cd ${PREFIX} && ${FIND} -s ${INSTALLATION_BASEDIR} -type f >> ${TMPPLIST}
|
2002-07-07 01:57:58 +02:00
|
|
|
@cd ${PREFIX} && ${FIND} -s ${INSTALLATION_BASEDIR} -type l >> ${TMPPLIST}
|
2002-06-15 01:05:41 +02:00
|
|
|
@cd ${PREFIX} && ${FIND} -s ${INSTALLATION_BASEDIR} -type d > ${WRKDIR}/dir.tmp
|
|
|
|
@${SORT} -r ${WRKDIR}/dir.tmp | ${XARGS} -n 1 ${ECHO_CMD} @dirrm >> ${TMPPLIST}
|
|
|
|
|
2002-08-14 14:55:12 +02:00
|
|
|
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
|
|
|
|
.else
|
|
|
|
@${MV} ${WRKDIR}/../${PKGNAMEPREFIX}openoffice-${PORTVERSION}_${PORTREVISION}.tbz2 \
|
|
|
|
${WRKDIR}/../OOo_${PORTVERSION}_${OPSYS}Intel_install_${LANG_PKGNAME}.tbz2
|
|
|
|
.endif
|
|
|
|
|
1999-12-15 00:14:36 +01:00
|
|
|
.include <bsd.port.post.mk>
|