diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1999-12-14 23:14:36 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1999-12-14 23:14:36 +0000 |
commit | 76579b97b7909100ffc6bf5001f4c5fc068fec5a (patch) | |
tree | 69b1168ddb5492305ac91b535dab7ac275c3b737 /editors/openoffice-2.0-devel/Makefile | |
parent | ce59e9a532ab622c480a026ef9e3c20fe1d1a706 (diff) | |
download | ports-76579b97b7909100ffc6bf5001f4c5fc068fec5a.tar.gz ports-76579b97b7909100ffc6bf5001f4c5fc068fec5a.zip |
"Quite sorry for sending this so late. I just got my hands on a Sun
StarOffice CDROM and found out how broken the port really was.
It also uses a DIST_SUBDIR now."
Submitted by: obrien
Notes
Notes:
svn path=/head/; revision=23780
Diffstat (limited to 'editors/openoffice-2.0-devel/Makefile')
-rw-r--r-- | editors/openoffice-2.0-devel/Makefile | 83 |
1 files changed, 52 insertions, 31 deletions
diff --git a/editors/openoffice-2.0-devel/Makefile b/editors/openoffice-2.0-devel/Makefile index 7fa83f43a2eb..fc18982afafe 100644 --- a/editors/openoffice-2.0-devel/Makefile +++ b/editors/openoffice-2.0-devel/Makefile @@ -9,56 +9,77 @@ DISTNAME= so51a_lnx_01 PKGNAME= staroffice-5.1a CATEGORIES= editors -MASTER_SITES= "" # manual fetch -EXTRACT_SUFX= .tar - -PATCH_SITES= ftp://ftp.hagenhomes.com/pub/ \ - ftp://ftp.stat.duke.edu/pub/~sto/StarOffice51a/ \ - ftp://ftp.stardivision.de/pub/support/so51a/nwspatch/unxlnxi/ \ +MASTER_SITES= ftp://ftp.hagenhomes.com/pub/ \ + ftp://ftp.stat.duke.edu/pub/Users/sto/StarOffice51a/ \ + ftp://ftp.stardivision.de/pub/support/so51a/nwspatch/unxlnxi/ \ ftp://ftp.stardivision.de/pub/support/so51a/db/unxlnxi/ -PATCHFILES= applicat.rdb libofa517li.so libsdb517li.so +EXTRACT_SUFX= .tar +DISTFILES= applicat.rdb.gz libofa517li.so libsdb517li.so -RUN_DEPENDS= /compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base \ - ${PREFIX}/bin/unzip:${PORTSDIR}/archivers/unzip +BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip +RUN_DEPENDS= /compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base MAINTAINER= dkiwebe@hagenhomes.com ONLY_FOR_ARCHS= i386 NO_CDROM= 'Must be downloaded direct from Sun via www interface' IS_INTERACTIVE= yes +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} +EXTRACT_CMD= ${CAT} +EXTRACT_BEFORE_ARGS= -u NO_BUILD= yes +DIST_SUBDIR= staroffice5 WRKSRC= ${WRKDIR}/so51inst -.if !exists(${DISTDIR}/${DISTFILES}) -IGNORE="Please manually download ${DISTFILES} from www.sun.com/staroffice or copy them from your Sun StarOffice CDROM. Put ${DISTFILES} into the directory ${DISTDIR} and run make again." +.include <bsd.port.pre.mk> + +.if defined(USE_CDROM) +.if !exists(/cdrom/linux/office51/setup.zip) +IGNORE="Please mount the Sun StarOffice 5.1 CDROM onto /cdrom and run make again." +.endif +.else # FTP/web download +DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} +.if !exists(${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) +IGNORE="Please manually download ${DISTNAME}${EXTRACT_SUFX} from http://www.sun.com/staroffice. Put ${DISTNAME}${EXTRACT_SUFX} into the directory ${_DISTDIR} and run make again. Or, if you have the Sun StarOffice 5.1 CDROM, please run 'make USE_CDROM=yes'" .endif +.endif + +.if defined(USE_CDROM) +do-extract: + @${MKDIR} ${WRKSRC}/office51 + @cd ${WRKSRC}/office51 && ${LN} -s -v /cdrom/linux/office51/* . +.endif + +post-extract: + @unzip -u -L ${WRKDIR}/so51inst/office51/setup.zip -d ${WRKDIR}/tmp + @${CP} -p ${_DISTDIR}/applicat.rdb.gz ${WRKDIR} + @${GZIP_CMD} -d ${WRKDIR}/applicat.rdb.gz post-configure: - ${PERL} -pi.orig -e 's|DefaultDestPath = "Office51";|DefaultDestPath = "${PREFIX}/Office51";|' ${WRKSRC}/office51/setup.ins + @${PERL} -pi.orig -e 's|DefaultDestPath = "Office51";|DefaultDestPath = "${PREFIX}/Office51";|' ${WRKSRC}/office51/setup.ins do-install: - unzip -u -L ${WRKDIR}/so51inst/office51/setup.zip -d ${WRKDIR}/tmp - ${ECHO} "${WRKDIR}/tmp" >> /compat/linux/etc/ld.so.conf - ${ECHO} "/tmp/sv001.tmp" >> /compat/linux/etc/ld.so.conf - PATH=${PATH}:/tmp/sv001.tmp:/usr/compat/linux/tmp/sv001.tmp:/usr/compat/linux/tmp:/tmp - LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/tmp:${WRKDIR}/tmp:/usr/lib:/lib:/tmp:/usr/compat/linux/lib - /usr/compat/linux/sbin/ldconfig - ${INSTALL_DATA} ${FILESDIR}/dot.sversionrc /root/.sversionrc - ${TOUCH} ${WRKDIR}/.install-done - ${CAT} ${PKGDIR}/MESSAGE - ${WRKDIR}/so51inst/office51/setup /net + @${ECHO} "${WRKDIR}/tmp" >> /compat/linux/etc/ld.so.conf + @${ECHO} "/tmp/sv001.tmp" >> /compat/linux/etc/ld.so.conf + @PATH=${PATH}:/tmp/sv001.tmp:/usr/compat/linux/tmp/sv001.tmp:/usr/compat/linux/tmp:/tmp + @LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/tmp:${WRKDIR}/tmp:/usr/lib:/lib:/tmp:/usr/compat/linux/lib + @/usr/compat/linux/sbin/ldconfig + @${CAT} ${PKGDIR}/MESSAGE + @-${WRKDIR}/so51inst/office51/setup /net +# A seperate target as we need to be able to run this stuff independantly. post-install: - ${INSTALL_DATA} ${DISTDIR}/applicat.rdb ${PREFIX}/Office51/bin - ${INSTALL_DATA} ${DISTDIR}/libofa517li.so ${PREFIX}/Office51/lib - ${INSTALL_DATA} ${DISTDIR}/libsdb517li.so ${PREFIX}/Office51/lib - ${CHMOD} 100755 ${PREFIX}/Office51/lib/libofa517li.so - ${CHMOD} 100755 ${PREFIX}/Office51/lib/libsdb517li.so - ${PATCH} ${PREFIX}/Office51/bin/setup ${FILESDIR}/setup.patch - ${PATCH} ${PREFIX}/Office51/instdb.ins ${FILESDIR}/instdb.ins.patch - ${PATCH} ${PREFIX}/Office51/bin/soffice ${FILESDIR}/soffice.patch + @${INSTALL_DATA} ${WRKDIR}/applicat.rdb ${PREFIX}/Office51/bin + @${INSTALL_DATA} ${_DISTDIR}/libofa517li.so ${PREFIX}/Office51/lib + @${INSTALL_DATA} ${_DISTDIR}/libsdb517li.so ${PREFIX}/Office51/lib + @${CHMOD} 100755 ${PREFIX}/Office51/lib/libofa517li.so + @${CHMOD} 100755 ${PREFIX}/Office51/lib/libsdb517li.so + @${PATCH} -s ${PREFIX}/Office51/bin/setup ${FILESDIR}/setup.patch + @${PATCH} -s ${PREFIX}/Office51/bin/soffice ${FILESDIR}/soffice.patch + @${PERL} -pi -e 's|DefaultDestPath = "${PREFIX}/Office51";|DefaultDestPath = "~/Office51";|' ${PREFIX}/Office51/instdb.ins + @${INSTALL_DATA} ${FILESDIR}/dot.sversionrc /root/.sversionrc install-user: ${PREFIX}/Office51/bin/setup -.include <bsd.port.mk> +.include <bsd.port.post.mk> |