diff options
author | mbr <mbr@FreeBSD.org> | 2003-01-21 23:11:33 +0000 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2003-01-21 23:11:33 +0000 |
commit | 76850c85b0b356ee358dd419a62be10a1a20a6d2 (patch) | |
tree | d879854db2cd4c1a2460474a9ea9f97f0e92d7ac /editors/staroffice70 | |
parent | aa92c9ae59f94dd80e2d39d1b70e90dc58a9b6e8 (diff) | |
download | FreeBSD-ports-76850c85b0b356ee358dd419a62be10a1a20a6d2.zip FreeBSD-ports-76850c85b0b356ee358dd419a62be10a1a20a6d2.tar.gz |
Update StarOffice6.0 to patchlevel 3
Add basic CDROM install support
Submitted by: obrien
Diffstat (limited to 'editors/staroffice70')
-rw-r--r-- | editors/staroffice70/Makefile | 29 | ||||
-rw-r--r-- | editors/staroffice70/distinfo | 2 |
2 files changed, 21 insertions, 10 deletions
diff --git a/editors/staroffice70/Makefile b/editors/staroffice70/Makefile index f30e637..2bc87c0 100644 --- a/editors/staroffice70/Makefile +++ b/editors/staroffice70/Makefile @@ -11,12 +11,14 @@ PORTREVISION= 1 CATEGORIES= editors linux MASTER_SITES= DISTNAME= so-6_0-ga-bin-linux-en.bin -DISTFILES= so-6_0-ga-bin-linux-en.bin 112887-02.tar.Z +.if !defined(USE_CDROM) +DISTFILES= so-6_0-ga-bin-linux-en.bin 112887-03.tar +.endif .if defined(WITH_ADABAS) DISTFILES+= soa-6_0-ga-bin-linux-en.bin .endif -EXTRACT_ONLY= 112887-02.tar.Z +EXTRACT_ONLY= 112887-03.tar MAINTAINER= mbr@FreeBSD.org @@ -31,7 +33,7 @@ WRKSRC= ${WRKDIR}/${SOVERSION} TMPDIR= ${WRKDIR}/tmp LD_PATH= ${TMPDIR}:${WRKSRC}:${LINUXBASE}/lib:${LINUXBASE}/usr/lib INSTDB.INS= ${PREFIX}/${SOVERSION}/program/instdb.ins -SUNSOLVE= ${WRKDIR}/112887-02 +SUNSOLVE= ${WRKDIR}/112887-03 ADABAS_DIST= soa-6_0-ga-bin-linux-en.bin .include <bsd.port.pre.mk> @@ -99,8 +101,13 @@ pre-fetch: @${ECHO} WITH_ADABAS=YES. @${ECHO} .endif -.if !exists(${DISTDIR}/${DISTNAME}) -IGNORE="Please manually download ${DISTNAME} from http://www.sun.com/staroffice. Put ${DISTNAME} into the directory ${DISTDIR} and run make again." +.if defined(USE_CDROM) +DLTEST=112887-03.tar +.else +DLTEST=${DISTNAME} +.endif +.if !exists(${DISTDIR}/${DLTEST}) +IGNORE="Please manually download ${DLTEST} from http://www.sun.com/staroffice. Put ${DLTEST} into the directory ${DISTDIR} and run make again." .endif post-extract: @@ -112,12 +119,16 @@ post-extract: @ ${FALSE} .else @${MKDIR} ${WRKSRC} +.if defined(USE_CDROM) + @ln -sf /cdrom/linux/office60/* ${WRKSRC} +.else @${MKDIR} ${TMPDIR} @${CP} ${_DISTDIR}/${DISTNAME} ${WRKSRC} @${CHMOD} 755 ${WRKSRC}/${DISTNAME} @cd ${WRKSRC} @SAL_IGNOREXERRORS=1 ${WRKSRC}/${DISTNAME} -extract ${WRKSRC} @${RM} ${WRKSRC}/${DISTNAME} +.endif .if defined(WITH_ADABAS) @${CP} ${_DISTDIR}/${ADABAS_DIST} ${WRKSRC} @${CHMOD} 755 ${WRKSRC}/${ADABAS_DIST} @@ -125,7 +136,7 @@ post-extract: .endif post-configure: - @${PERL} -pi.orig -e \ + @${SED} -i .orig -e \ 's|DefaultDestPath = "staroffice%PRODUCTVERSION";|DefaultDestPath = "${PREFIX}/staroffice%PRODUCTVERSION";|' \ ${WRKSRC}/setup.ins @@ -169,8 +180,8 @@ do-install: .if !exists(${LINUXBASE}/usr/X11R6/lib/libXrender.so) @${LN} -fs ${LINUXBASE}/usr/X11R6/lib/libXrender.so.1.0 ${PREFIX}/${SOVERSION}/program/libXrender.so .endif - @${MV} ${INSTDB.INS} ${INSTDB.INS}.orig - @${SED} -e 's%DefaultDestPath = "${PREFIX}/staroffice%DefaultDestPath = "staroffice%' \ + @${SED} -i .orig -e 's%DefaultDestPath = "${PREFIX}/staroffice%DefaultDestPath = "staroffice%' \ + ${INSTDB.INS} ${INSTDB.INS}.orig > ${INSTDB.INS} @make install-user .endif @@ -190,7 +201,7 @@ install-user: install-patch: @-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \ - TEMP=${TMPDIR} ${LINUXBASE}/bin/sh -c '${WRKSRC}/../112887-02/so-6_0-pp1-bin-linux.bin' + TEMP=${TMPDIR} ${LINUXBASE}/bin/sh -c '${WRKSRC}/../112887-03/so-6_0-pp1-bin-linux.bin' install-update: @make extract diff --git a/editors/staroffice70/distinfo b/editors/staroffice70/distinfo index f1acf08..8c5e140 100644 --- a/editors/staroffice70/distinfo +++ b/editors/staroffice70/distinfo @@ -1,3 +1,3 @@ MD5 (soa-6_0-ga-bin-linux-en.bin) = 7f7003401e8533e7795faa0fd112111c MD5 (so-6_0-ga-bin-linux-en.bin) = 97cba97cb348d071bea7e8fc08079151 -MD5 (112887-02.tar.Z) = 53479ee4537453b9bf1a27d3967fd92f +MD5 (112887-03.tar) = 019298e5fb7be33944cc792b433fbb6f |