diff options
author | hira <hira@pkgsrc.org> | 2008-11-24 11:58:44 +0000 |
---|---|---|
committer | hira <hira@pkgsrc.org> | 2008-11-24 11:58:44 +0000 |
commit | a7ff6588f7655823aaf9a52a7e4d7c5d98942c20 (patch) | |
tree | b9b39e422b08caf8f5217b532600f3b6cd885122 /misc/openoffice2/Makefile | |
parent | e3d1e03fe2081399d467b3ac5b8d2c770572d5bb (diff) | |
download | pkgsrc-a7ff6588f7655823aaf9a52a7e4d7c5d98942c20.tar.gz |
- Install hicolor and locolor icons.
- Install gnome icons (with gnome option only).
- Install MIME info files.
- Fix name of .dekstop files.
- Use startup scripts in OOo (don't generate these in Makefile).
Bump PKGREVISION.
Diffstat (limited to 'misc/openoffice2/Makefile')
-rw-r--r-- | misc/openoffice2/Makefile | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/misc/openoffice2/Makefile b/misc/openoffice2/Makefile index dd7735c4531..e0d981a118d 100644 --- a/misc/openoffice2/Makefile +++ b/misc/openoffice2/Makefile @@ -1,10 +1,10 @@ -# $NetBSD: Makefile,v 1.59 2008/11/19 01:54:25 hira Exp $ +# $NetBSD: Makefile,v 1.60 2008/11/24 11:58:44 hira Exp $ # OO_VER= 2.4.2 DISTNAME= openoffice-${OO_VER} PKGNAME= openoffice2-${OO_VER} -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= misc MASTER_SITES= ${MASTER_SITE_OPENOFFICE:=stable/${OO_VER}/} DIST_SUBDIR= ${DISTNAME} @@ -62,6 +62,13 @@ REPLACE_PERL+= sd/res/webview/editpic.pl \ sd/res/webview/webview.pl REPLACE_PYTHON+= scripting/source/pyprov/mailmerge.py +SUBST_CLASSES+= prefix +SUBST_STAGE.prefix= post-patch +SUBST_MESSAGE.prefix= Fixing prefix +SUBST_FILES.prefix= sysui/desktop/share/openoffice.sh +SUBST_FILES.prefix+= sysui/desktop/share/printeradmin.sh +SUBST_SED.prefix= -e 's|@OO_PREFIX@|${OO_PREFIX}|g' + SUBST_CLASSES+= lib SUBST_STAGE.lib= post-patch SUBST_MESSAGE.lib= Adding library paths @@ -124,6 +131,7 @@ OO_RELEASE= OpenOffice.org${OO_VER} PLIST_SRC= ${PKGDIR}/PLIST PLIST_SRC+= ${WRKDIR}/PLIST PLIST_SUBST+= OO_UNXNAME=${OO_UNXNAME} +PLIST_SUBST+= OO_ICON_PREFIX=openofficeorg24 MESSAGE_SUBST+= OO_PREFIX=${OO_PREFIX} INSTALLATION_DIRS= bin lib/${OO_RELEASE} share/applications @@ -142,14 +150,6 @@ post-extract: do-build: ${_ULIMIT_CMD} ${SETENV} ${MAKE_ENV} bash -c "cd ${WRKSRC} && ./bootstrap && source ${OPENOFFICE_SETFILE}Env.Set.sh && cd instsetoo_native && build.pl --checkmodules && build.pl -P${MAKE_JOBS:U1} --all product=full && cd util && dmake openoffice_${OO_BASELANG} && dmake ooolanguagepack" -post-build: - ${ECHO} "#!${SH}" > ${WRKDIR}/${OO_UNXNAME} - ${ECHO} "exec ${OO_PREFIX}/program/soffice \"\$$@\"" \ - >> ${WRKDIR}/${OO_UNXNAME} - ${ECHO} "#!${SH}" > ${WRKDIR}/${OO_UNXNAME}-printeradmin - ${ECHO} "exec ${OO_PREFIX}/program/spadmin" \ - >> ${WRKDIR}/${OO_UNXNAME}-printeradmin - do-install: cd ${DESTDIR}${OO_PREFIX} && \ for f in ${OO_PKGPATH:Q}/${OO_BASELANG}/*/*.sw; do \ @@ -160,18 +160,16 @@ do-install: tar xpf $$f; \ done; \ done - for d in ${DESTDIR}${OO_PREFIX}/share/xdg/*; do \ - ln -s $$d ${DESTDIR}${PREFIX}/share/applications; \ - done cd ${DESTDIR}${OO_PREFIX}/program && \ chmod ${SHAREMODE} hid.lst testtoolrc for f in ${OO_PROGRAMS}; do \ ln -sf ${DESTDIR}${OO_PREFIX}/program/$$f \ ${DESTDIR}${PREFIX}/bin/$$f; \ done - ${INSTALL_SCRIPT} ${WRKDIR}/${OO_UNXNAME} ${DESTDIR}${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKDIR}/${OO_UNXNAME}-printeradmin \ - ${DESTDIR}${PREFIX}/bin + cd ${WRKSRC}/sysui/${OPENOFFICE_OUTPATH}.pro/misc/openoffice.org && \ + ${SETENV} ${MAKE_ENV} DESTDIR=${DESTDIR} _PREFIX=${PREFIX} \ + GNOME=${PKG_OPTIONS:Mgnome} KDE=${PKG_OPTIONS:Mkde} \ + OO_PREFIX=${OO_PREFIX} ${SH} create_tree.sh post-install: cd ${DESTDIR}${PREFIX} && \ @@ -187,15 +185,16 @@ post-install: .include "../../mk/compiler.mk" -.include "../../lang/python/application.mk" - .include "../../databases/db4/buildlink3.mk" +.include "../../databases/shared-mime-info/mimedb.mk" .include "../../devel/zlib/buildlink3.mk" .include "../../fonts/fontconfig/buildlink3.mk" .include "../../graphics/MesaLib/buildlink3.mk" .include "../../graphics/cairo/buildlink3.mk" .include "../../graphics/freetype2/buildlink3.mk" +.include "../../graphics/hicolor-icon-theme/buildlink3.mk" .include "../../graphics/jpeg/buildlink3.mk" +.include "../../lang/python/application.mk" .include "../../security/openssl/buildlink3.mk" .include "../../textproc/expat/buildlink3.mk" .include "../../textproc/icu/buildlink3.mk" |