diff options
author | mbr <mbr@FreeBSD.org> | 2002-06-14 23:05:41 +0000 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2002-06-14 23:05:41 +0000 |
commit | c8e6b55209a774c43cfe6736e7c2e9e1a291fd40 (patch) | |
tree | 3b49390fef8f12a0246767ef4ad7d87b2a13accd /editors | |
parent | f1aeef95d424d2fc7a7a4fe138d3a6e77d8b20ce (diff) | |
download | FreeBSD-ports-c8e6b55209a774c43cfe6736e7c2e9e1a291fd40.zip FreeBSD-ports-c8e6b55209a774c43cfe6736e7c2e9e1a291fd40.tar.gz |
Preparations to add OO ports for other languages. I'll add later OO
slave ports for 12 languages.
Obtained from: lioux (slave port skeletons)
Diffstat (limited to 'editors')
-rw-r--r-- | editors/openoffice-1.0/Makefile | 50 | ||||
-rw-r--r-- | editors/openoffice.org-1.0/Makefile | 50 | ||||
-rw-r--r-- | editors/openoffice/Makefile | 50 |
3 files changed, 138 insertions, 12 deletions
diff --git a/editors/openoffice-1.0/Makefile b/editors/openoffice-1.0/Makefile index 7c31288..db5af58 100644 --- a/editors/openoffice-1.0/Makefile +++ b/editors/openoffice-1.0/Makefile @@ -7,7 +7,7 @@ PORTNAME= openoffice PORTVERSION= 1.0.0 -CATEGORIES= editors +CATEGORIES+= editors MASTER_SITES= ftp://sunsite.cnlab-switch.ch/mirror/OpenOffice/${PORTVERSION}/ \ http://niihau.student.utwente.nl/openoffice/${PORTVERSION}/ \ http://sf1.mirror.openoffice.org/${PORTVERSION}/ \ @@ -17,8 +17,38 @@ MASTER_SITES= ftp://sunsite.cnlab-switch.ch/mirror/OpenOffice/${PORTVERSION}/ \ DISTFILES= OOo_${PORTVERSION}_source.tar.bz2 gpc231.tar.Z \ oo_moz1.0RC3_includes.tgz ${MOZILLADIST} +SORT?= /usr/bin/sort + .include <bsd.port.pre.mk> +# +# configuration for language specific slave ports +# +.if defined(LANG_PKGNAME) +PKGNAMEPREFIX= ${LANG_PKGNAME}- + +# +# LANG_CONFIGURE_ARG is missing for the german port +# +.if defined(LANG_EXT) && LANG_EXT!=49 +CONFIGURE_ARGS+= --with-lang=${LANG_CONFIGURE_ARG} +.endif + +INSTALLATION_BASEDIR= OpenOffice.org1.0 + +.if exists(${.CURDIR}/pkg-comment) +COMMENT= ${.CURDIR}/pkg-comment +.endif + +.if exists(${.CURDIR}/pkg-descr) +DESCR= ${.CURDIR}/pkg-descr +.endif +.endif + +.if !defined(LANG_EXT) +LANG_EXT=01 +.endif + .if ${OSVERSION} > 500000 # # OO is still broken with the system gcc on CURRENT. @@ -253,10 +283,14 @@ do-build: @cd ${WRKSRC}/.. && DISPLAY=${DISPLAY} PATH="${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin" && \ tcsh -c 'source FreeBSDEnv.Set && ${DMAKE}' .endif +.if defined(LANG_PKGNAME) + @cd ${WRKSRC}/.. && PATH="${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin" && \ + tcsh -c 'source FreeBSDEnv.Set && cd instsetoo/util && ${DMAKE} LANGEXT=${LANGEXT}' +.endif pre-install: @${SED} -e 's#%%PREFIX%%#${PREFIX}#g' < ${FILESDIR}/oo_setup.resp \ - > ${WRKSRC}/../instsetoo/unxfbsd.pro/01/normal/oo_setup.resp + > ${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp do-install: .if !defined(DISPLAY) @@ -267,17 +301,25 @@ do-install: @sleep 5 @-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \ TEMP=${WRKDIR} DISPLAY=${DISPLAYHACK} \ - ${WRKSRC}/../instsetoo/*.pro/01/normal/setup -r:oo_setup.resp + ${WRKSRC}/../instsetoo/*.pro/${LANG_EXT}/normal/setup -r:oo_setup.resp @${CAT} ${WRKDIR}/.Xvfb.pid | xargs kill @${RM} -f ${WRKDIR}/.Xvfb.pid .else @-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \ TEMP=${WRKDIR} DISPLAY=${DISPLAY} \ - ${WRKSRC}/../instsetoo/*.pro/01/normal/setup -r:oo_setup.resp + ${WRKSRC}/../instsetoo/*.pro/${LANG_EXT}/normal/setup -r:oo_setup.resp .endif install-user: @-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" \ ${PREFIX}/OpenOffice.org1.0/program/setup +# configuration for language specific slave ports +.if defined(LANG_PKGNAME) +post-install: + @cd ${PREFIX} && ${FIND} -s ${INSTALLATION_BASEDIR} -type f > ${TMPPLIST} + @cd ${PREFIX} && ${FIND} -s ${INSTALLATION_BASEDIR} -type d > ${WRKDIR}/dir.tmp + @${SORT} -r ${WRKDIR}/dir.tmp | ${XARGS} -n 1 ${ECHO_CMD} @dirrm >> ${TMPPLIST} +.endif + .include <bsd.port.post.mk> diff --git a/editors/openoffice.org-1.0/Makefile b/editors/openoffice.org-1.0/Makefile index 7c31288..db5af58 100644 --- a/editors/openoffice.org-1.0/Makefile +++ b/editors/openoffice.org-1.0/Makefile @@ -7,7 +7,7 @@ PORTNAME= openoffice PORTVERSION= 1.0.0 -CATEGORIES= editors +CATEGORIES+= editors MASTER_SITES= ftp://sunsite.cnlab-switch.ch/mirror/OpenOffice/${PORTVERSION}/ \ http://niihau.student.utwente.nl/openoffice/${PORTVERSION}/ \ http://sf1.mirror.openoffice.org/${PORTVERSION}/ \ @@ -17,8 +17,38 @@ MASTER_SITES= ftp://sunsite.cnlab-switch.ch/mirror/OpenOffice/${PORTVERSION}/ \ DISTFILES= OOo_${PORTVERSION}_source.tar.bz2 gpc231.tar.Z \ oo_moz1.0RC3_includes.tgz ${MOZILLADIST} +SORT?= /usr/bin/sort + .include <bsd.port.pre.mk> +# +# configuration for language specific slave ports +# +.if defined(LANG_PKGNAME) +PKGNAMEPREFIX= ${LANG_PKGNAME}- + +# +# LANG_CONFIGURE_ARG is missing for the german port +# +.if defined(LANG_EXT) && LANG_EXT!=49 +CONFIGURE_ARGS+= --with-lang=${LANG_CONFIGURE_ARG} +.endif + +INSTALLATION_BASEDIR= OpenOffice.org1.0 + +.if exists(${.CURDIR}/pkg-comment) +COMMENT= ${.CURDIR}/pkg-comment +.endif + +.if exists(${.CURDIR}/pkg-descr) +DESCR= ${.CURDIR}/pkg-descr +.endif +.endif + +.if !defined(LANG_EXT) +LANG_EXT=01 +.endif + .if ${OSVERSION} > 500000 # # OO is still broken with the system gcc on CURRENT. @@ -253,10 +283,14 @@ do-build: @cd ${WRKSRC}/.. && DISPLAY=${DISPLAY} PATH="${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin" && \ tcsh -c 'source FreeBSDEnv.Set && ${DMAKE}' .endif +.if defined(LANG_PKGNAME) + @cd ${WRKSRC}/.. && PATH="${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin" && \ + tcsh -c 'source FreeBSDEnv.Set && cd instsetoo/util && ${DMAKE} LANGEXT=${LANGEXT}' +.endif pre-install: @${SED} -e 's#%%PREFIX%%#${PREFIX}#g' < ${FILESDIR}/oo_setup.resp \ - > ${WRKSRC}/../instsetoo/unxfbsd.pro/01/normal/oo_setup.resp + > ${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp do-install: .if !defined(DISPLAY) @@ -267,17 +301,25 @@ do-install: @sleep 5 @-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \ TEMP=${WRKDIR} DISPLAY=${DISPLAYHACK} \ - ${WRKSRC}/../instsetoo/*.pro/01/normal/setup -r:oo_setup.resp + ${WRKSRC}/../instsetoo/*.pro/${LANG_EXT}/normal/setup -r:oo_setup.resp @${CAT} ${WRKDIR}/.Xvfb.pid | xargs kill @${RM} -f ${WRKDIR}/.Xvfb.pid .else @-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \ TEMP=${WRKDIR} DISPLAY=${DISPLAY} \ - ${WRKSRC}/../instsetoo/*.pro/01/normal/setup -r:oo_setup.resp + ${WRKSRC}/../instsetoo/*.pro/${LANG_EXT}/normal/setup -r:oo_setup.resp .endif install-user: @-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" \ ${PREFIX}/OpenOffice.org1.0/program/setup +# configuration for language specific slave ports +.if defined(LANG_PKGNAME) +post-install: + @cd ${PREFIX} && ${FIND} -s ${INSTALLATION_BASEDIR} -type f > ${TMPPLIST} + @cd ${PREFIX} && ${FIND} -s ${INSTALLATION_BASEDIR} -type d > ${WRKDIR}/dir.tmp + @${SORT} -r ${WRKDIR}/dir.tmp | ${XARGS} -n 1 ${ECHO_CMD} @dirrm >> ${TMPPLIST} +.endif + .include <bsd.port.post.mk> diff --git a/editors/openoffice/Makefile b/editors/openoffice/Makefile index 7c31288..db5af58 100644 --- a/editors/openoffice/Makefile +++ b/editors/openoffice/Makefile @@ -7,7 +7,7 @@ PORTNAME= openoffice PORTVERSION= 1.0.0 -CATEGORIES= editors +CATEGORIES+= editors MASTER_SITES= ftp://sunsite.cnlab-switch.ch/mirror/OpenOffice/${PORTVERSION}/ \ http://niihau.student.utwente.nl/openoffice/${PORTVERSION}/ \ http://sf1.mirror.openoffice.org/${PORTVERSION}/ \ @@ -17,8 +17,38 @@ MASTER_SITES= ftp://sunsite.cnlab-switch.ch/mirror/OpenOffice/${PORTVERSION}/ \ DISTFILES= OOo_${PORTVERSION}_source.tar.bz2 gpc231.tar.Z \ oo_moz1.0RC3_includes.tgz ${MOZILLADIST} +SORT?= /usr/bin/sort + .include <bsd.port.pre.mk> +# +# configuration for language specific slave ports +# +.if defined(LANG_PKGNAME) +PKGNAMEPREFIX= ${LANG_PKGNAME}- + +# +# LANG_CONFIGURE_ARG is missing for the german port +# +.if defined(LANG_EXT) && LANG_EXT!=49 +CONFIGURE_ARGS+= --with-lang=${LANG_CONFIGURE_ARG} +.endif + +INSTALLATION_BASEDIR= OpenOffice.org1.0 + +.if exists(${.CURDIR}/pkg-comment) +COMMENT= ${.CURDIR}/pkg-comment +.endif + +.if exists(${.CURDIR}/pkg-descr) +DESCR= ${.CURDIR}/pkg-descr +.endif +.endif + +.if !defined(LANG_EXT) +LANG_EXT=01 +.endif + .if ${OSVERSION} > 500000 # # OO is still broken with the system gcc on CURRENT. @@ -253,10 +283,14 @@ do-build: @cd ${WRKSRC}/.. && DISPLAY=${DISPLAY} PATH="${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin" && \ tcsh -c 'source FreeBSDEnv.Set && ${DMAKE}' .endif +.if defined(LANG_PKGNAME) + @cd ${WRKSRC}/.. && PATH="${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin" && \ + tcsh -c 'source FreeBSDEnv.Set && cd instsetoo/util && ${DMAKE} LANGEXT=${LANGEXT}' +.endif pre-install: @${SED} -e 's#%%PREFIX%%#${PREFIX}#g' < ${FILESDIR}/oo_setup.resp \ - > ${WRKSRC}/../instsetoo/unxfbsd.pro/01/normal/oo_setup.resp + > ${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp do-install: .if !defined(DISPLAY) @@ -267,17 +301,25 @@ do-install: @sleep 5 @-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \ TEMP=${WRKDIR} DISPLAY=${DISPLAYHACK} \ - ${WRKSRC}/../instsetoo/*.pro/01/normal/setup -r:oo_setup.resp + ${WRKSRC}/../instsetoo/*.pro/${LANG_EXT}/normal/setup -r:oo_setup.resp @${CAT} ${WRKDIR}/.Xvfb.pid | xargs kill @${RM} -f ${WRKDIR}/.Xvfb.pid .else @-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" LD_LIBRARY_PATH=${LD_PATH} \ TEMP=${WRKDIR} DISPLAY=${DISPLAY} \ - ${WRKSRC}/../instsetoo/*.pro/01/normal/setup -r:oo_setup.resp + ${WRKSRC}/../instsetoo/*.pro/${LANG_EXT}/normal/setup -r:oo_setup.resp .endif install-user: @-SAL_IGNOREXERRORS=1 PATH="/bin:${PATH}" \ ${PREFIX}/OpenOffice.org1.0/program/setup +# configuration for language specific slave ports +.if defined(LANG_PKGNAME) +post-install: + @cd ${PREFIX} && ${FIND} -s ${INSTALLATION_BASEDIR} -type f > ${TMPPLIST} + @cd ${PREFIX} && ${FIND} -s ${INSTALLATION_BASEDIR} -type d > ${WRKDIR}/dir.tmp + @${SORT} -r ${WRKDIR}/dir.tmp | ${XARGS} -n 1 ${ECHO_CMD} @dirrm >> ${TMPPLIST} +.endif + .include <bsd.port.post.mk> |