diff options
author | mrauch <mrauch@pkgsrc.org> | 2004-06-03 18:48:17 +0000 |
---|---|---|
committer | mrauch <mrauch@pkgsrc.org> | 2004-06-03 18:48:17 +0000 |
commit | 0a5838a021869f73f74bdee1b6d9f0c822bf4653 (patch) | |
tree | 83a5fd2d45f0fb3cc0b99d3a0396e79ce659699e /misc/openoffice/Makefile | |
parent | cceb538d180571fe88c28fdb3a7a192ec3afb984 (diff) | |
download | pkgsrc-0a5838a021869f73f74bdee1b6d9f0c822bf4653.tar.gz |
Allow installation of localized versions via the variable PKG_LANG.
Diffstat (limited to 'misc/openoffice/Makefile')
-rw-r--r-- | misc/openoffice/Makefile | 60 |
1 files changed, 34 insertions, 26 deletions
diff --git a/misc/openoffice/Makefile b/misc/openoffice/Makefile index 13aafb22618..1ee40ba4708 100644 --- a/misc/openoffice/Makefile +++ b/misc/openoffice/Makefile @@ -1,28 +1,13 @@ -# $NetBSD: Makefile,v 1.48 2004/05/09 08:25:00 mrauch Exp $ +# $NetBSD: Makefile,v 1.49 2004/06/03 18:48:17 mrauch Exp $ DISTNAME= openoffice-1.1.1 CATEGORIES= misc -MASTER_SITES= http://mirrors.isc.org/pub/openoffice/stable/1.1.1/\ - http://ftp.stardiv.de/pub/OpenOffice.org/stable/1.1.1/\ - ftp://ftp.ring.gr.jp/pub/misc/openoffice/stable/1.1.1/\ - http://openoffice.mirrors.ilisys.com.au/\ - http://www.ibiblio.org/pub/mirrors/openoffice/stable/1.1.1/\ - http://gd.tuwien.ac.at/office/openoffice/stable/1.1.1/\ - http://mirrors.sunsite.dk/openoffice/stable/1.1.1/\ - ftp://ftp.funet.fi/pub/mirrors/openoffice.org/stable/1.1.1/\ - http://ftp.leo.org/download/pub/comp/general/office/openoffice/stable/1.1.1/\ - ftp://ftp.saix.net/pub/OpenOffice.org/stable/1.1.1/\ - ftp://ftp.cyberfenix.net/pub/openoffice/stable/1.1.1/\ - ftp://ftp.mirror.ac.uk/sites/ny1.mirror.openoffice.org/stable/1.1.1/\ - http://mirror.pacific.net.au/openoffice/\ - ftp://ftp.ring.gr.jp/pub/misc/openoffice/stable/1.1.1/\ - ftp://ftp.kr.freebsd.org/pub/openoffice/stable/1.1.1/\ - http://www.fs.tum.de/~mrauch/OpenOffice/download/ +MASTER_SITES= ${MASTER_SITE_OPENOFFICE:=stable/1.1.1/} DISTFILES= OOo_1.1.1p1_source.tar.bz2 DISTFILES+= gpc231.tar.Z -DISTFILES+= ooo_addons_111.tar.bz2 +DISTFILES+= ooo_addons_111p1.tar.bz2 SITES_gpc231.tar.Z= ftp://ftp.cs.man.ac.uk/pub/toby/gpc/ -SITES_ooo_addons_111.tar.bz2=http://www.fs.tum.de/~mrauch/OpenOffice/download/\ +SITES_ooo_addons_111p1.tar.bz2=http://www.fs.tum.de/~mrauch/OpenOffice/download/\ ftp://ftp.NetBSD.org/pub/NetBSD/misc/mrauch/ MAINTAINER= mrauch@NetBSD.org @@ -58,32 +43,41 @@ CONFIGURE_ARGS+= --with-lang=ALL --with-dict=ALL TEMP?= ${WRKSRC} UNLIMIT_RESOURCES+= datasize +PLIST_SRC+= PLIST.common +PLIST_SUBST+= OPENOFFICE_DLLSUFFIX=${OPENOFFICE_DLLSUFFIX} +.if exists(${PKGDIR}/PLIST.${OPSYS}) +PLIST_SRC+= ${PKGDIR}/PLIST.${OPSYS} +. endif + post-extract: # bring the two files from GPC into place ${CP} ${WRKDIR}/gpc231/gpc.c ${WRKSRC}/../external/gpc/ ${CP} ${WRKDIR}/gpc231/gpc.h ${WRKSRC}/../external/gpc/ # bring the NetBSD mozilla zip files into place - ${CP} ${WRKDIR}/*.zip ${WRKSRC}/../moz/zipped/ + ${CP} ${WRKDIR}/moz/*.zip ${WRKSRC}/../moz/zipped/ ${CP} ${WRKDIR}/openintro_pkgsrc.bmp \ ${WRKSRC}/../offmgr/res/openintro.bmp +# bring the localized helpcontent into place + ${MKDIR} ${WRKSRC}/../helpcontent/${OPENOFFICE_OUTPATH}.pro/bin + ${CP} ${WRKDIR}/*.zip ${WRKSRC}/../helpcontent/${OPENOFFICE_OUTPATH}.pro/bin/ do-build: - ${_ULIMIT_CMD} tcsh -c "setenv PTHREAD_DIAGASSERT Ael && cd ${WRKSRC}/.. && ./bootstrap && source *.Set && dmake" + ${_ULIMIT_CMD} tcsh -c "setenv PTHREAD_DIAGASSERT Ael && cd ${WRKSRC}/.. && ./bootstrap && source ${OPENOFFICE_SETFILE}Env.Set && dmake" post-build: @${ECHO_MSG} "Please ignore the warning above that the project gtk" @${ECHO_MSG} "could not be found. Your build completed successfully." pre-install: - ${CP} ${WRKSRC}/../instsetoo/unxbsdi2.pro/01/normal/setup.ins \ - ${WRKSRC}/../instsetoo/unxbsdi2.pro/01/normal/setup.ins.orig + ${CP} ${WRKSRC}/../instsetoo/${OPENOFFICE_OUTPATH}.pro/${OPENOFFICE_LANGCODE}/normal/setup.ins \ + ${WRKSRC}/../instsetoo/${OPENOFFICE_OUTPATH}.pro/${OPENOFFICE_LANGCODE}/normal/setup.ins.orig ${SED} -e "s|/usr/bin/soffice|${PREFIX}/bin/soffice.orig|g" \ -e "s|/usr/lib||g" \ - <${WRKSRC}/../instsetoo/unxbsdi2.pro/01/normal/setup.ins.orig\ - >${WRKSRC}/../instsetoo/unxbsdi2.pro/01/normal/setup.ins + <${WRKSRC}/../instsetoo/${OPENOFFICE_OUTPATH}.pro/${OPENOFFICE_LANGCODE}/normal/setup.ins.orig\ + >${WRKSRC}/../instsetoo/${OPENOFFICE_OUTPATH}.pro/${OPENOFFICE_LANGCODE}/normal/setup.ins do-install: - ${SH} -c "cd ${WRKSRC}/../instsetoo/unxbsdi2.pro/01/normal; ./install --prefix=${PREFIX}" + ${SH} -c "cd ${WRKSRC}/../instsetoo/${OPENOFFICE_OUTPATH}.pro/${OPENOFFICE_LANGCODE}/normal; ./install --prefix=${PREFIX}" ${RM} -f ${PREFIX}/bin/soffice.orig ${SED} -e "s|@@PREFIX@@|${PREFIX}|g" \ < ${FILESDIR}/soffice > ${PREFIX}/bin/soffice @@ -92,6 +86,20 @@ do-install: ${LN} -sf ${PREFIX}/OpenOffice.org1.1.1/program/$i ${PREFIX}/bin/$i .endfor +# everything specific to your OS/Arch goes into its own Makefile +# group together i386, i486, i586 and i686 (for Linux) +# +ARCH= ${MACHINE_ARCH:C/i[3-6]86/i386/g} + +.if exists(Makefile.${OPSYS}.${ARCH}) +. include "Makefile.${OPSYS}.${ARCH}" +.endif + +# everything related to i18n is in a separate file +.include "Makefile.i18n" + +PLIST_SRC+= PLIST.common_end + .include "../../mk/compiler.mk" .include "../../mk/pthread.buildlink3.mk" .include "../../lang/perl5/buildlink3.mk" |