diff options
author | joerg <joerg@pkgsrc.org> | 2008-03-09 12:57:27 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-03-09 12:57:27 +0000 |
commit | 1c3eb22c5b9ce2fe4a3cf88c4ba66fb108f8e695 (patch) | |
tree | 38825f2f5ab3af77711fd512b8b9a32f4bb03b25 /misc/openoffice2 | |
parent | 9d2e3f518d26519c2cbe6ab0059db8ce493a7ee2 (diff) | |
download | pkgsrc-1c3eb22c5b9ce2fe4a3cf88c4ba66fb108f8e695.tar.gz |
DESTDIR support.
Diffstat (limited to 'misc/openoffice2')
-rw-r--r-- | misc/openoffice2/Makefile | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/misc/openoffice2/Makefile b/misc/openoffice2/Makefile index 937823015d4..3665469f678 100644 --- a/misc/openoffice2/Makefile +++ b/misc/openoffice2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.38 2008/02/06 16:41:07 hira Exp $ +# $NetBSD: Makefile,v 1.39 2008/03/09 12:57:27 joerg Exp $ # OO_VER= 2.3.1 @@ -19,6 +19,8 @@ MAINTAINER= hira@NetBSD.org HOMEPAGE= http://www.openoffice.org/ COMMENT= Integrated office productivity suite (version 2) +PKG_DESTDIR_SUPPORT= user-destdir + BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison BUILD_DEPENDS+= zip-[0-9]*:../../archivers/zip BUILD_DEPENDS+= unzip-[0-9]*:../../archivers/unzip @@ -109,7 +111,7 @@ UNLIMIT_RESOURCES+= datasize OO_RELEASE= OpenOffice.org${OO_VER} PLIST_SRC+= ${WRKDIR}/.PLIST_SRC MESSAGE_SUBST+= OO_RELEASE=${OO_RELEASE} -INSTALLATION_DIRS= bin +INSTALLATION_DIRS= bin ${OO_RELEASE} OO_UNXNAME= openoffice.org2.3 OO_PKGPATH= ${WRKSRC}/instsetoo_native/${OPENOFFICE_OUTPATH}.pro/OpenOffice/portable/install @@ -141,19 +143,18 @@ post-build: >> ${WRKDIR}/${OO_UNXNAME}-printeradmin do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/${OO_RELEASE} cd ${WRKDIR}${OO_PKGROOT} && \ - tar cf - . | tar Cxpf ${PREFIX}/${OO_RELEASE} - + tar cf - . | tar Cxpf ${DESTDIR}${PREFIX}/${OO_RELEASE} - for f in ${OO_PROGRAMS}; do \ - ln -sf ${PREFIX}/${OO_RELEASE}/program/$$f \ - ${PREFIX}/bin/$$f; \ + ln -sf ${DESTDIR}${PREFIX}/${OO_RELEASE}/program/$$f \ + ${DESTDIR}${PREFIX}/bin/$$f; \ done - ${INSTALL_SCRIPT} ${WRKDIR}/${OO_UNXNAME} ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/${OO_UNXNAME} ${DESTDIR}${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKDIR}/${OO_UNXNAME}-printeradmin \ - ${PREFIX}/bin + ${DESTDIR}${PREFIX}/bin post-install: - cd ${PREFIX} && \ + cd ${DESTDIR}${PREFIX} && \ find ${OO_RELEASE} \! -type d -print | \ sort > ${PLIST_SRC} && \ find ${OO_RELEASE} -type d -print | sort -r | \ |