2008-05-27 09:37:30 +02:00
|
|
|
|
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$
|
|
|
|
#
|
|
|
|
|
2005-12-01 02:06:47 +01:00
|
|
|
PORTNAME?= openoffice.org
|
2006-04-20 23:56:12 +02:00
|
|
|
PORTVERSION?= ${OOOVERSION}
|
2005-12-01 02:06:47 +01:00
|
|
|
CATEGORIES+= editors java
|
2007-06-14 09:16:30 +02:00
|
|
|
MASTER_SITES+= http://ooopackages.good-day.net/pub/OpenOffice.org/sources/ \
|
2007-01-07 23:20:16 +01:00
|
|
|
http://ooopackages.good-day.net/pub/OpenOffice.org/cws/:cws \
|
2002-10-19 00:41:42 +02:00
|
|
|
ftp://ftp.cs.man.ac.uk/pub/toby/gpc/:gpc \
|
2006-02-16 00:23:39 +01:00
|
|
|
${MASTER_SITE_APACHE:S,%SUBDIR%/,ant/binaries/:antbin,} \
|
2006-08-19 14:10:14 +02:00
|
|
|
${MASTER_SITE_MOZILLA:S/$/:mozsrc/} \
|
|
|
|
http://tools.openoffice.org/unowinreg_prebuild/680/:unowinreg
|
2005-11-05 00:06:27 +01:00
|
|
|
MASTER_SITE_SUBDIR+= mozilla/releases/mozilla${MOZILLA_VERSION}/source/:mozsrc
|
2006-09-29 13:05:40 +02:00
|
|
|
DISTFILES+= ${OOOSRC} unowinreg.dll:unowinreg
|
2005-10-31 08:38:42 +01:00
|
|
|
.if defined(WITH_GPC)
|
2006-12-04 04:43:00 +01:00
|
|
|
DISTFILES+= gpc231.tar.Z:gpc
|
2005-10-31 08:38:42 +01:00
|
|
|
.endif
|
2006-09-29 13:05:40 +02:00
|
|
|
EXTRACT_ONLY= ${OOOSRC}
|
1999-12-09 18:08:31 +01:00
|
|
|
|
2004-04-10 01:16:42 +02:00
|
|
|
MAINTAINER= openoffice@FreeBSD.org
|
2008-05-27 09:37:30 +02:00
|
|
|
COMMENT?= Integrated wordprocessor/dbase/spreadsheet/drawing/chart/browser(release branch)
|
2002-10-19 00:41:42 +02:00
|
|
|
|
2007-01-07 23:20:16 +01:00
|
|
|
.if defined(WITH_CWS)
|
2007-03-29 01:31:59 +02:00
|
|
|
PORTNAME:= openoffice.org-${OOOVERSION}-${WITH_CWS}
|
|
|
|
DISTFILES+= ${CWSARCHIVE}:cws
|
2007-01-07 23:20:16 +01:00
|
|
|
.endif
|
2007-03-29 01:31:59 +02:00
|
|
|
CWSARCHIVE= ${WITH_CWS}.tar.gz
|
2007-01-07 23:20:16 +01:00
|
|
|
|
2009-02-01 00:30:25 +01:00
|
|
|
OOOVERSION= 3.0.1
|
2004-08-12 07:46:05 +02:00
|
|
|
NO_LATEST_LINK= yes
|
2007-06-26 03:17:48 +02:00
|
|
|
USE_GNOME= desktopfileutils gtk20
|
2005-02-20 05:38:57 +01:00
|
|
|
MOZILLA_VERSION= 1.7.5
|
2005-05-22 23:04:01 +02:00
|
|
|
MOZILLA_SOURCE= mozilla-source-${MOZILLA_VERSION}.tar.gz
|
2004-10-25 14:39:25 +02:00
|
|
|
.if !defined(WITHOUT_MOZILLA)
|
2005-03-09 12:23:39 +01:00
|
|
|
DISTFILES+= ${MOZILLA_SOURCE}:mozsrc
|
2005-06-22 11:26:19 +02:00
|
|
|
USE_GNOME+= libidl
|
2004-10-25 14:39:25 +02:00
|
|
|
.endif
|
|
|
|
|
2005-04-24 15:23:15 +02:00
|
|
|
.if defined(WITH_KDE)
|
2006-12-04 04:43:00 +01:00
|
|
|
USE_KDELIBS_VER= 3
|
2005-04-24 15:23:15 +02:00
|
|
|
.endif
|
2008-04-26 09:45:38 +02:00
|
|
|
USE_XORG= x11 ice xaw xau xext xrender xrandr \
|
2008-05-27 09:37:30 +02:00
|
|
|
xi xt xcursor xdamage xcomposite xfixes
|
2005-02-20 05:38:57 +01:00
|
|
|
USE_GMAKE= yes
|
2004-08-12 07:46:05 +02:00
|
|
|
USE_PERL5= yes
|
2006-12-14 01:15:13 +01:00
|
|
|
USE_BZIP2= yes
|
2005-08-28 10:41:59 +02:00
|
|
|
WITHOUT_CPU_CFLAGS= true
|
2004-10-25 14:39:25 +02:00
|
|
|
|
2004-06-14 01:57:01 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-01-07 22:48:32 +01:00
|
|
|
USE_JAVA= yes
|
2007-10-09 08:05:11 +02:00
|
|
|
JAVA_BUILD= jdk
|
|
|
|
JAVA_VENDOR= freebsd bsdjava
|
2007-09-22 02:02:02 +02:00
|
|
|
.if (${OSVERSION} >= 700000)
|
2008-08-23 07:07:40 +02:00
|
|
|
JAVA_VERSION= 1.5 1.6
|
2007-09-28 05:28:46 +02:00
|
|
|
.else
|
2008-08-23 07:07:40 +02:00
|
|
|
JAVA_VERSION= 1.4 1.5 1.6
|
2007-09-22 02:02:02 +02:00
|
|
|
.endif
|
|
|
|
|
2007-09-28 05:28:46 +02:00
|
|
|
.include <${FILESDIR}/Makefile.localized>
|
|
|
|
|
2006-09-17 13:11:15 +02:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2006-06-03 13:39:21 +02:00
|
|
|
|
|
|
|
.if ${ARCH} == amd64
|
2006-05-29 02:26:55 +02:00
|
|
|
FREEBSD_ENV_SET= FreeBSDAMDEnv.Set
|
|
|
|
.else
|
2007-03-29 01:31:59 +02:00
|
|
|
FREEBSD_ENV_SET= FreeBSDX86Env.Set
|
2006-05-29 02:26:55 +02:00
|
|
|
.endif
|
|
|
|
|
2009-02-01 00:30:25 +01:00
|
|
|
MILESTONE?= 15
|
2008-10-13 12:10:20 +02:00
|
|
|
OOOTAG?= OOO300_m${MILESTONE}
|
2006-12-14 01:15:13 +01:00
|
|
|
OOOSRC?= OOo_${OOOTAG}_source${EXTRACT_SUFX}
|
2008-05-27 09:37:30 +02:00
|
|
|
OOODIR= openoffice.org3
|
2006-04-20 23:56:12 +02:00
|
|
|
INSTALLATION_BASEDIR?= openoffice.org-${OOOVERSION}
|
|
|
|
EXECBASE?= openoffice.org-${OOOVERSION}
|
2007-01-07 23:20:16 +01:00
|
|
|
.if defined(WITH_CWS)
|
|
|
|
INSTALLATION_BASEDIR= openoffice.org-${OOOVERSION}-${WITH_CWS}
|
|
|
|
EXECBASE= openoffice.org-${OOOVERSION}-${WITH_CWS}
|
|
|
|
.endif
|
2008-05-27 09:37:30 +02:00
|
|
|
DIST_SUBDIR= openoffice.org3
|
2005-06-19 04:31:48 +02:00
|
|
|
SIMPLEOSVER= ${OSREL:C/\.//g}
|
2006-06-03 13:39:21 +02:00
|
|
|
.if ${ARCH} == amd64
|
2008-10-13 12:10:20 +02:00
|
|
|
PACKAGE_BASENAME= OOo_${OOOVERSION}_${OPSYS}${SIMPLEOSVER}X86-64
|
2006-05-29 02:26:55 +02:00
|
|
|
.else
|
2008-10-13 12:10:20 +02:00
|
|
|
PACKAGE_BASENAME= OOo_${OOOVERSION}_${OPSYS}${SIMPLEOSVER}Intel
|
2006-05-29 02:26:55 +02:00
|
|
|
.endif
|
Update to 1.9m71 and unbreak
Special thanks to: Pavel Janik, and Kris Kennaway
They contributed for in many ways.
Additional contributors. thank you very much for all:
daichi, Eric Bachard, kan, lofi, Martin Hollmichel,
nork, obrien, Sander Vesik, sem, and Stefan Taxhet
2005-01-10 13:28:20 +01:00
|
|
|
|
|
|
|
LOCALIZED_LANG?= en-US
|
|
|
|
# FIXME (Somehow INDEX build fails)
|
|
|
|
.if defined(LANG_PKGNAME)
|
2006-12-04 04:43:00 +01:00
|
|
|
PKGNAMEPREFIX= ${LANG_PKGNAME}-
|
2004-10-25 14:39:25 +02:00
|
|
|
.endif
|
Update to 1.9m71 and unbreak
Special thanks to: Pavel Janik, and Kris Kennaway
They contributed for in many ways.
Additional contributors. thank you very much for all:
daichi, Eric Bachard, kan, lofi, Martin Hollmichel,
nork, obrien, Sander Vesik, sem, and Stefan Taxhet
2005-01-10 13:28:20 +01:00
|
|
|
.if defined(LANG_SUFFIX)
|
2006-12-04 04:43:00 +01:00
|
|
|
PKGNAMESUFFIX= -${LANG_SUFFIX}
|
2004-06-14 01:57:01 +02:00
|
|
|
.endif
|
2004-04-10 01:16:42 +02:00
|
|
|
|
2006-12-04 04:43:00 +01:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme
|
|
|
|
|
2004-08-12 07:46:05 +02:00
|
|
|
.if defined(WITH_CCACHE)
|
|
|
|
BUILD_DEPENDS+= ccache:${PORTSDIR}/devel/ccache
|
2006-06-03 13:39:21 +02:00
|
|
|
CCACHE_PREFIX= ccache
|
2007-09-22 02:02:02 +02:00
|
|
|
OOOCC= ${CCACHE_PREFIX} ${CC}
|
|
|
|
OOOCXX= ${CCACHE_PREFIX} ${CXX}
|
2004-06-14 01:57:01 +02:00
|
|
|
.else
|
2007-09-22 02:02:02 +02:00
|
|
|
OOOCC= ${CC}
|
|
|
|
OOOCXX= ${CXX}
|
2006-06-03 13:39:21 +02:00
|
|
|
.endif
|
2007-09-22 02:02:02 +02:00
|
|
|
CONFIGURE_ENV+= CC="${OOOCC}" CXX="${OOOCXX}" \
|
|
|
|
CPPFLAGS="-I${LOCALBASE}/include" \
|
2008-05-27 09:37:30 +02:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
PATH=${WRKSRC}/solenv/bin:$$PATH
|
2005-07-22 11:26:26 +02:00
|
|
|
|
2004-10-25 14:39:25 +02:00
|
|
|
BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip \
|
2004-08-12 07:46:05 +02:00
|
|
|
unzip:${PORTSDIR}/archivers/unzip \
|
|
|
|
gcp:${PORTSDIR}/sysutils/coreutils \
|
2004-10-25 14:39:25 +02:00
|
|
|
gpatch:${PORTSDIR}/devel/patch \
|
Update to 1.9m71 and unbreak
Special thanks to: Pavel Janik, and Kris Kennaway
They contributed for in many ways.
Additional contributors. thank you very much for all:
daichi, Eric Bachard, kan, lofi, Martin Hollmichel,
nork, obrien, Sander Vesik, sem, and Stefan Taxhet
2005-01-10 13:28:20 +01:00
|
|
|
${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
|
2007-09-22 02:02:02 +02:00
|
|
|
bash:${PORTSDIR}/shells/bash \
|
2008-05-27 09:37:30 +02:00
|
|
|
imake:${PORTSDIR}/devel/imake \
|
|
|
|
${LOCALBASE}/bin/gperf:${PORTSDIR}/devel/gperf #i85469#
|
|
|
|
|
2006-06-03 13:39:21 +02:00
|
|
|
BUILD_DEPENDS+= ant:${PORTSDIR}/devel/apache-ant
|
2005-10-31 08:38:42 +01:00
|
|
|
.if !defined(WITH_GPC)
|
2006-09-02 23:01:27 +02:00
|
|
|
LIB_DEPENDS+= art_lgpl_2:${PORTSDIR}/graphics/libart_lgpl
|
2005-10-31 08:38:42 +01:00
|
|
|
.endif
|
2006-02-16 00:23:39 +01:00
|
|
|
|
2007-10-17 12:13:01 +02:00
|
|
|
USE_BISON= build
|
2002-03-01 00:36:03 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2006-03-15 07:18:10 +01:00
|
|
|
WRKSRC?= ${WRKDIR}/${OOOTAG}
|
Update to 1.9m71 and unbreak
Special thanks to: Pavel Janik, and Kris Kennaway
They contributed for in many ways.
Additional contributors. thank you very much for all:
daichi, Eric Bachard, kan, lofi, Martin Hollmichel,
nork, obrien, Sander Vesik, sem, and Stefan Taxhet
2005-01-10 13:28:20 +01:00
|
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/config_office
|
2005-05-15 05:51:47 +02:00
|
|
|
TCSH?= /bin/tcsh
|
Update to 1.9m71 and unbreak
Special thanks to: Pavel Janik, and Kris Kennaway
They contributed for in many ways.
Additional contributors. thank you very much for all:
daichi, Eric Bachard, kan, lofi, Martin Hollmichel,
nork, obrien, Sander Vesik, sem, and Stefan Taxhet
2005-01-10 13:28:20 +01:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2008-05-27 09:37:30 +02:00
|
|
|
MAXPROCESSES?= 1
|
|
|
|
MAXMODULES?= 1
|
2003-09-09 14:39:05 +02:00
|
|
|
|
2006-12-04 04:43:00 +01:00
|
|
|
CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp \
|
|
|
|
--with-gnu-patch=${LOCALBASE}/bin/gpatch \
|
|
|
|
--enable-crashdump=yes \
|
2008-07-20 11:16:37 +02:00
|
|
|
--with-system-zlib \
|
2008-07-21 13:28:30 +02:00
|
|
|
--with-system-stdlibs \
|
2008-07-20 11:16:37 +02:00
|
|
|
--with-epm=internal
|
2008-07-21 13:28:30 +02:00
|
|
|
|
2007-09-22 02:02:02 +02:00
|
|
|
.if ${ARCH} == amd64
|
2006-06-07 12:48:15 +02:00
|
|
|
WITHOUT_MOZILLA= yes
|
2006-12-04 04:43:00 +01:00
|
|
|
LIB_DEPENDS+= boost_regex:${PORTSDIR}/devel/boost
|
|
|
|
CONFIGURE_ARGS+= --with-system-boost=yes #i58343#
|
2006-06-03 13:39:21 +02:00
|
|
|
.endif
|
2007-01-17 04:15:55 +01:00
|
|
|
.if (${OSVERSION} <= 602102)
|
2007-01-05 05:19:23 +01:00
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/rtld-workaround-i66667
|
|
|
|
.endif
|
2006-02-16 00:23:39 +01:00
|
|
|
|
2006-05-09 03:04:50 +02:00
|
|
|
ICONS= ${WRKSRC}/sysui/desktop/icons
|
|
|
|
|
Update to 1.9m71 and unbreak
Special thanks to: Pavel Janik, and Kris Kennaway
They contributed for in many ways.
Additional contributors. thank you very much for all:
daichi, Eric Bachard, kan, lofi, Martin Hollmichel,
nork, obrien, Sander Vesik, sem, and Stefan Taxhet
2005-01-10 13:28:20 +01:00
|
|
|
.include <${FILESDIR}/Makefile.knobs>
|
2002-10-19 00:41:42 +02:00
|
|
|
|
2004-08-12 07:46:05 +02:00
|
|
|
pre-everything::
|
2004-10-25 14:39:25 +02:00
|
|
|
# really tweak, extremely useful when you build all localized language versions
|
2004-08-12 07:46:05 +02:00
|
|
|
# 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.*
|
2007-10-03 02:37:58 +02:00
|
|
|
@${MKDIR} ${WRKDIR}
|
2004-08-12 07:46:05 +02:00
|
|
|
@${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:
|
2006-08-19 14:10:14 +02:00
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/unowinreg.dll ${WRKSRC}/external/unowinreg/
|
2007-01-07 23:20:16 +01:00
|
|
|
.if defined(WITH_CWS)
|
2007-01-08 00:50:50 +01:00
|
|
|
cd ${WRKSRC} ; ${TAR} xvfz ${DISTDIR}/${DIST_SUBDIR}/${CWSARCHIVE}
|
2007-01-07 23:20:16 +01:00
|
|
|
.endif
|
2005-10-31 08:38:42 +01:00
|
|
|
.if defined(WITH_GPC)
|
2004-08-12 07:46:05 +02:00
|
|
|
@cd ${WRKDIR} ; ${CAT} ${DISTDIR}/${DIST_SUBDIR}/gpc231.tar.Z | ${TAR} xfz -
|
2004-10-25 14:39:25 +02:00
|
|
|
@${CP} ${WRKDIR}/gpc231/gpc.c ${WRKSRC}/external/gpc/
|
|
|
|
@${CP} ${WRKDIR}/gpc231/gpc.h ${WRKSRC}/external/gpc/
|
2005-10-31 08:38:42 +01:00
|
|
|
.endif
|
2004-10-25 14:39:25 +02:00
|
|
|
.if !defined(WITHOUT_MOZILLA)
|
Update to 1.9m71 and unbreak
Special thanks to: Pavel Janik, and Kris Kennaway
They contributed for in many ways.
Additional contributors. thank you very much for all:
daichi, Eric Bachard, kan, lofi, Martin Hollmichel,
nork, obrien, Sander Vesik, sem, and Stefan Taxhet
2005-01-10 13:28:20 +01:00
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${MOZILLA_SOURCE} ${WRKSRC}/moz/download
|
2002-10-19 00:41:42 +02:00
|
|
|
.endif
|
2008-05-27 09:37:30 +02:00
|
|
|
pre-configure:
|
|
|
|
#Workaround for gperf. #i85469#
|
|
|
|
@${LN} -sf ${LOCALBASE}/bin/gperf ${WRKSRC}/solenv/bin/gperf
|
2002-10-19 00:41:42 +02:00
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
do-build:
|
2004-10-25 14:39:25 +02:00
|
|
|
@cd ${WRKSRC} ; ./bootstrap
|
2008-07-13 00:56:44 +02:00
|
|
|
@cd ${WRKSRC} ; ${SETENV} "LANG=C" "LC_ALL=C" "TMP=${WRKSRC}" ${TCSH} -c "source ${FREEBSD_ENV_SET} ; cd instsetoo_native ; build.pl --checkmodules ; build.pl -P${MAXMODULES} --all --html --dontgraboutput -- -P${MAXPROCESSES}"
|
2008-05-27 09:37:30 +02:00
|
|
|
|
2008-04-06 07:11:20 +02:00
|
|
|
.if ${LOCALIZED_LANG} == "alllangs"
|
2007-01-07 11:24:08 +01:00
|
|
|
@${MAKE} languagepack
|
|
|
|
.endif
|
2002-10-19 00:41:42 +02:00
|
|
|
|
2002-03-01 00:36:03 +01:00
|
|
|
do-install:
|
2008-04-06 07:11:20 +02:00
|
|
|
.if ${LOCALIZED_LANG} == "alllangs"
|
2007-01-07 11:24:08 +01:00
|
|
|
@cd ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice/bsd/install/en-US/freebsd-*/ ; ${LS} *.t?z > ${WRKDIR}/INSTALLFILES
|
|
|
|
@cd ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice_languagepack/bsd/install/ ; ${LS} */freebsd*/*.t?z > ${WRKDIR}/LANGPACKFILES
|
|
|
|
@${RM} -Rf ${WRKDIR}/tmp
|
|
|
|
@${MKDIR} ${WRKDIR}/tmp
|
|
|
|
@for i in `${CAT} ${WRKDIR}/INSTALLFILES`; do \
|
|
|
|
${ECHO_CMD} "extracting $$i" ; \
|
|
|
|
cd ${WRKDIR}/tmp ; ${TAR} xfz ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice/bsd/install/en-US/freebsd-*/$$i ; \
|
|
|
|
done
|
|
|
|
@for i in `${CAT} ${WRKDIR}/LANGPACKFILES`; do \
|
|
|
|
${ECHO_CMD} "extracting $$i" ; \
|
|
|
|
cd ${WRKDIR}/tmp ; ${TAR} xfz ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice_languagepack/bsd/install/$$i ;\
|
|
|
|
done
|
|
|
|
@${MKDIR} ${PREFIX}/${INSTALLATION_BASEDIR}
|
2008-05-27 09:37:30 +02:00
|
|
|
@cd ${WRKDIR}/tmp/opt/ ; ${TAR} cf - -C . . | ${TAR} xf - -C ${PREFIX}/${INSTALLATION_BASEDIR}
|
2007-01-07 11:24:08 +01:00
|
|
|
.else
|
2006-05-29 02:26:55 +02:00
|
|
|
@cd ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice/bsd/install/${LOCALIZED_LANG}/freebsd-*/ ; ${LS} *.t?z > ${WRKDIR}/INSTALLFILES
|
Update to 1.9m71 and unbreak
Special thanks to: Pavel Janik, and Kris Kennaway
They contributed for in many ways.
Additional contributors. thank you very much for all:
daichi, Eric Bachard, kan, lofi, Martin Hollmichel,
nork, obrien, Sander Vesik, sem, and Stefan Taxhet
2005-01-10 13:28:20 +01:00
|
|
|
@${RM} -Rf ${WRKDIR}/tmp
|
|
|
|
@${MKDIR} ${WRKDIR}/tmp
|
2005-02-09 07:58:59 +01:00
|
|
|
@for i in `${CAT} ${WRKDIR}/INSTALLFILES`; do \
|
2007-01-07 11:24:08 +01:00
|
|
|
${ECHO_CMD} "extracting $$i" ; \
|
|
|
|
cd ${WRKDIR}/tmp ; ${TAR} xfz ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice/bsd/install/${LOCALIZED_LANG}/freebsd-*/$$i ; \
|
2005-02-09 07:58:59 +01:00
|
|
|
done
|
Update to 1.9m71 and unbreak
Special thanks to: Pavel Janik, and Kris Kennaway
They contributed for in many ways.
Additional contributors. thank you very much for all:
daichi, Eric Bachard, kan, lofi, Martin Hollmichel,
nork, obrien, Sander Vesik, sem, and Stefan Taxhet
2005-01-10 13:28:20 +01:00
|
|
|
@${MKDIR} ${PREFIX}/${INSTALLATION_BASEDIR}
|
2008-05-27 09:37:30 +02:00
|
|
|
@cd ${WRKDIR}/tmp/opt/ ; ${TAR} cf - -C . . | ${TAR} xf - -C ${PREFIX}/${INSTALLATION_BASEDIR}
|
2007-01-07 11:24:08 +01:00
|
|
|
.endif
|
2002-10-19 00:41:42 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${ECHO_MSG} "===> Add wrapper scripts";
|
2005-07-29 03:44:40 +02:00
|
|
|
@${CP} ${FILESDIR}/openoffice.org-wrapper ${WRKDIR}/
|
2004-06-14 01:57:01 +02:00
|
|
|
@${REINPLACE_CMD} -e 's#%%PREFIX%%#${PREFIX}#g' \
|
2008-07-13 00:56:44 +02:00
|
|
|
-e 's#%%OOOTAG%%#${OOOTAG}#g' \
|
2008-05-27 09:37:30 +02:00
|
|
|
-e 's#%%OOODIR%%#${OOODIR}#g' \
|
Update to 1.9m71 and unbreak
Special thanks to: Pavel Janik, and Kris Kennaway
They contributed for in many ways.
Additional contributors. thank you very much for all:
daichi, Eric Bachard, kan, lofi, Martin Hollmichel,
nork, obrien, Sander Vesik, sem, and Stefan Taxhet
2005-01-10 13:28:20 +01:00
|
|
|
-e 's#%%INSTALLATION_BASEDIR%%#${INSTALLATION_BASEDIR}#g' \
|
2005-07-29 03:44:40 +02:00
|
|
|
${WRKDIR}/openoffice.org-wrapper
|
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/openoffice.org-wrapper \
|
Update to 1.9m71 and unbreak
Special thanks to: Pavel Janik, and Kris Kennaway
They contributed for in many ways.
Additional contributors. thank you very much for all:
daichi, Eric Bachard, kan, lofi, Martin Hollmichel,
nork, obrien, Sander Vesik, sem, and Stefan Taxhet
2005-01-10 13:28:20 +01:00
|
|
|
${PREFIX}/bin/${EXECBASE}
|
2005-09-09 01:45:44 +02:00
|
|
|
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-sbase
|
Update to 1.9m71 and unbreak
Special thanks to: Pavel Janik, and Kris Kennaway
They contributed for in many ways.
Additional contributors. thank you very much for all:
daichi, Eric Bachard, kan, lofi, Martin Hollmichel,
nork, obrien, Sander Vesik, sem, and Stefan Taxhet
2005-01-10 13:28:20 +01:00
|
|
|
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-scalc
|
|
|
|
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-sdraw
|
2005-09-22 06:15:38 +02:00
|
|
|
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-setofficelang
|
Update to 1.9m71 and unbreak
Special thanks to: Pavel Janik, and Kris Kennaway
They contributed for in many ways.
Additional contributors. thank you very much for all:
daichi, Eric Bachard, kan, lofi, Martin Hollmichel,
nork, obrien, Sander Vesik, sem, and Stefan Taxhet
2005-01-10 13:28:20 +01:00
|
|
|
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-simpress
|
2008-07-13 00:56:44 +02:00
|
|
|
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-smath
|
Update to 1.9m71 and unbreak
Special thanks to: Pavel Janik, and Kris Kennaway
They contributed for in many ways.
Additional contributors. thank you very much for all:
daichi, Eric Bachard, kan, lofi, Martin Hollmichel,
nork, obrien, Sander Vesik, sem, and Stefan Taxhet
2005-01-10 13:28:20 +01:00
|
|
|
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin
|
|
|
|
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter
|
2006-12-04 04:43:00 +01:00
|
|
|
@${ECHO_CMD} "" > ${TMPPLIST}
|
2008-01-12 12:20:12 +01:00
|
|
|
@cd ${PREFIX} ; ${FIND} -s bin \( -type f -or -type l \) -name "${EXECBASE}*" >> ${TMPPLIST}
|
|
|
|
@cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} \( -type f -or -type l \) >> ${TMPPLIST}
|
|
|
|
@cd ${PREFIX} ; ${FIND} ${INSTALLATION_BASEDIR} -type d | ${SORT} -r | \
|
|
|
|
${XARGS} -n 1 ${ECHO_CMD} @dirrm >> ${TMPPLIST}
|
2008-07-13 00:56:44 +02:00
|
|
|
@for app in base calc draw impress math writer; do \
|
2006-12-14 01:15:13 +01:00
|
|
|
${REINPLACE_CMD} -e "s/^Exec.*/Exec=${EXECBASE} -$${app} %U/" \
|
2007-06-26 03:17:48 +02:00
|
|
|
-e "s/^Icon.*/Icon=${EXECBASE}-$${app}.png/" \
|
2008-05-27 09:37:30 +02:00
|
|
|
${PREFIX}/${INSTALLATION_BASEDIR}/${OOODIR}/share/xdg/$${app}.desktop ; \
|
2006-12-14 01:15:13 +01:00
|
|
|
done
|
2008-07-13 00:56:44 +02:00
|
|
|
@${REINPLACE_CMD} -e "s/^Exec.*/Exec=${EXECBASE}-spadmin %U/" \
|
|
|
|
-e "s/^Icon.*/Icon=${EXECBASE}-printeradmin.png/" \
|
|
|
|
${PREFIX}/${INSTALLATION_BASEDIR}/${OOODIR}/share/xdg/printeradmin.desktop
|
|
|
|
@${REINPLACE_CMD} -e "s/^Exec.*/Exec=${EXECBASE} -quickstart -nologo -nodefault/" \
|
|
|
|
${PREFIX}/${INSTALLATION_BASEDIR}/${OOODIR}/share/xdg/qstart.desktop
|
2008-05-27 09:37:30 +02:00
|
|
|
@${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/${OOODIR}/share/xdg/*.desktop.bak
|
2007-01-04 13:48:08 +01:00
|
|
|
@${RM} -f ${DESKTOPDIR}/${EXECBASE}
|
|
|
|
@${MKDIR} ${DESKTOPDIR}
|
2008-05-27 09:37:30 +02:00
|
|
|
@${LN} -sf ${PREFIX}/${INSTALLATION_BASEDIR}/${OOODIR}/share/xdg \
|
2007-01-04 13:48:08 +01:00
|
|
|
${DESKTOPDIR}/${EXECBASE}
|
2006-12-04 04:43:00 +01:00
|
|
|
@${ECHO_CMD} "share/applications/${EXECBASE}" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec ${RMDIR} %D/share/applications 2>/dev/null || ${TRUE}" >> ${TMPPLIST}
|
2008-01-12 12:20:12 +01:00
|
|
|
@${PREFIX}/bin/update-desktop-database 2>/dev/null || ${TRUE}
|
|
|
|
@${ECHO_CMD} "@exec ${PREFIX}/bin/update-desktop-database 2>/dev/null || ${TRUE}" >> ${TMPPLIST}
|
2006-08-19 14:10:14 +02:00
|
|
|
@for dir in `ls ${ICONS}/hicolor | ${GREP} -v CVS`; do \
|
2006-05-09 03:04:50 +02:00
|
|
|
for app in base calc draw impress math printeradmin writer; do \
|
|
|
|
if [ -r ${ICONS}/hicolor/$${dir}/apps/$${app}.png ]; then \
|
2007-06-26 03:17:48 +02:00
|
|
|
${INSTALL_DATA} ${ICONS}/hicolor/$${dir}/apps/$${app}.png \
|
|
|
|
${PREFIX}/share/icons/hicolor/$${dir}/apps/${EXECBASE}-$${app}.png ; \
|
|
|
|
${ECHO_CMD} "share/icons/hicolor/$${dir}/apps/${EXECBASE}-$${app}.png" >> ${TMPPLIST} ; \
|
2006-05-09 03:04:50 +02:00
|
|
|
fi \
|
|
|
|
done ; \
|
|
|
|
for file in `cd ${ICONS}/hicolor/$${dir}/mimetypes; ls *.png`; do \
|
2007-06-26 03:17:48 +02:00
|
|
|
${INSTALL_DATA} ${ICONS}/hicolor/$${dir}/mimetypes/$${file} \
|
2006-05-09 03:04:50 +02:00
|
|
|
${PREFIX}/share/icons/hicolor/$${dir}/mimetypes/ ; \
|
2006-12-04 04:43:00 +01:00
|
|
|
${ECHO_CMD} "share/icons/hicolor/$${dir}/mimetypes/$${file}" >> ${TMPPLIST} ; \
|
2006-05-09 03:04:50 +02:00
|
|
|
done ; \
|
|
|
|
done
|
2008-01-12 12:20:12 +01:00
|
|
|
@${PREFIX}/bin/gtk-update-icon-cache -q -f ${PREFIX}/share/icons/hicolor 2>/dev/null || ${TRUE}
|
|
|
|
@${ECHO_CMD} "@unexec ${RM} %D/share/icons/hicolor/icon-theme.cache 2>/dev/null || ${TRUE}" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@exec ${PREFIX}/bin/gtk-update-icon-cache -q -f %D/share/icons/hicolor 2>/dev/null || ${TRUE}" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec ${PREFIX}/bin/gtk-update-icon-cache -q -f %D/share/icons/hicolor 2>/dev/null || ${TRUE}" >> ${TMPPLIST}
|
Update to 1.9m71 and unbreak
Special thanks to: Pavel Janik, and Kris Kennaway
They contributed for in many ways.
Additional contributors. thank you very much for all:
daichi, Eric Bachard, kan, lofi, Martin Hollmichel,
nork, obrien, Sander Vesik, sem, and Stefan Taxhet
2005-01-10 13:28:20 +01:00
|
|
|
@${CP} ${FILESDIR}/pkg-message.in ${PKGMESSAGE}
|
|
|
|
@${REINPLACE_CMD} -e 's#%%PREFIX%%#${PREFIX}#g' \
|
|
|
|
-e 's#%%EXECBASE%%#${EXECBASE}#g' \
|
2008-07-13 00:56:44 +02:00
|
|
|
-e 's#%%OOOTAG%%#${OOOTAG}#g' \
|
|
|
|
-e 's#%%OOODIR%%#${OOODIR}#g' \
|
Update to 1.9m71 and unbreak
Special thanks to: Pavel Janik, and Kris Kennaway
They contributed for in many ways.
Additional contributors. thank you very much for all:
daichi, Eric Bachard, kan, lofi, Martin Hollmichel,
nork, obrien, Sander Vesik, sem, and Stefan Taxhet
2005-01-10 13:28:20 +01:00
|
|
|
${PKGMESSAGE}
|
|
|
|
@${ECHO_CMD}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_CMD}
|
2002-10-19 00:41:42 +02:00
|
|
|
|
2005-07-02 13:26:09 +02:00
|
|
|
.include <${FILESDIR}/Makefile.others>
|
1999-12-15 00:14:36 +01:00
|
|
|
.include <bsd.port.post.mk>
|