# New ports collection makefile for: ooo-build # Date created: 4 Dec 2005 # Whom: Nakata Maho # $FreeBSD$ PORTNAME= ooo-build PORTVERSION= ${OOOBUILD_VERSION} MASTER_SITES+= http://ooo.ximian.com/packages/OOB680/ \ http://ooo.ximian.com/packages/SRC680/ \ http://www.openclipart.org/downloads/0.18/:openclipart DISTFILES+= ${OOOBUILD_SOURCE} ${OOO_CAIRO} \ ${OOO_EXTRA_ARTWORK} ${OOO_CRYSTAL_IMAGES} \ ${OOO_OPENCLIPART}:openclipart MAINTAINER= maho@FreeBSD.org #DEVELOPER_VER= yes #you must be an expert or guru to activate this .if defined(DEVELOPER_VER) OOOBUILD_VERSION=2.0.2.${MILESTONE} MILESTONE= 156 OOOBUILD_TAG=src680-m${MILESTONE} OOOBUILD= ooo-build-src680.${MILESTONE}.0 OOOBUILD_SOURCE=${OOOBUILD}.tar.gz OOO_CAIRO= cairo-1.0.2.tar.gz OOO_MDBTOOLS= mdbtools-0.6pre1.tar.gz OOO_EXTRA_ARTWORK=extras-2.tar.bz2 OOO_CRYSTAL_IMAGES= ooo_crystal_images-1.tar.gz OOO_OPENCLIPART= openclipart-0.18-full.tar.gz OOO_PATCHDIR=src680 .else OOOBUILD_VERSION=2.0.2 OOOBUILD_TAG=oob680-m5 OOOBUILD= ooo-build-${OOOBUILD_VERSION} OOOBUILD_SOURCE=${OOOBUILD}.tar.gz OOO_CAIRO= cairo-1.0.2.tar.gz OOO_MDBTOOLS= mdbtools-0.6pre1.tar.gz OOO_EXTRA_ARTWORK=extras-2.tar.bz2 OOO_CRYSTAL_IMAGES= ooo_crystal_images-1.tar.gz OOO_OPENCLIPART= openclipart-0.18-full.tar.gz OOO_PATCHDIR=src680 .endif MD5_FILE= ${.CURDIR}/distinfo USE_AUTOTOOLS= autoconf:259 #workarounds CONFIGURE_ARGS+= --disable-access --disable-binfilter --disable-cairo INSTALLATION_BASEDIR= ooo-build-${PORTVERSION} EXECBASE= ooo-build-${PORTVERSION} DIST_SUBDIR= openoffice.org2.0 SIMPLEOSVER= ${OSREL:C/\.//g} PACKAGE_BASENAME= ooo-build-${PORTVERSION}-${OPSYS}${SIMPLEOSVER}Intel pre-configure: #see ooo-build*/bin/unpack and others for details @cd ${WRKDIR} ; ${CAT} ${DISTDIR}/${DIST_SUBDIR}/${OOOBUILD_SOURCE} | ${TAR} xfz - .if !defined(DEVELOPER_VER) @cd ${WRKDIR}/${OOOBUILD} ; ${PATCH} < ${.CURDIR}/files/ooo-build-patch .else @cd ${WRKDIR}/${OOOBUILD} ; ${PATCH} < ${.CURDIR}/files/ooo-build-patch-devel .endif @cd ${WRKDIR}/${OOOBUILD}/patches ; ${PERL} apply.pl ${WRKDIR}/${OOOBUILD}/patches/${OOO_PATCHDIR} ${WRKSRC} --distro=FreeBSD --distro=Binfilter --tag=${OOOBUILD_TAG} ${MKDIR} ${WRKSRC}/cairo/download ; ${CP} ${DISTDIR}/${DIST_SUBDIR}/${OOO_CAIRO} ${WRKSRC}/cairo/download @${MKDIR} ${WRKSRC}/mdbtools/download ; ${CP} ${DISTDIR}/${DIST_SUBDIR}/${OOO_MDBTOOLS} ${WRKSRC}/mdbtools/download @${CP} ${WRKDIR}/${OOOBUILD}/src/evolocal.odb ${WRKSRC}/extras/source/database/ .if !defined(DEVELOPER_VER) @${CP} ${WRKDIR}/${OOOBUILD}/src/go-oo-team.png ${WRKSRC}/default_images/sw/res .endif #extract some goodies cd ${WRKSRC} ; ${TAR} xjf ${DISTDIR}/${DIST_SUBDIR}/${OOO_EXTRA_ARTWORK} #cd ${WRKDIR} ; ${TAR} xjf ${DISTDIR}/${DIST_SUBDIR}/${OOO_OPENCLIPART} .if defined(DEVELOPER_VER) @${MKDIR} ${WRKSRC}/external_images @${CP} ${DISTDIR}/${DIST_SUBDIR}/${OOO_CRYSTAL_IMAGES} ${WRKSRC}/external_images .endif #apply FreeBSD specifc (?) patches for ooo-build :( # @cd ${WRKSRC} ; ${PATCH} < ${.CURDIR}/files/cairo-patch # @cd ${WRKSRC} ; ${PATCH} < ${.CURDIR}/files/patch-i18npool .if defined(DEVELOPER_VER) MASTERDIR= ${.CURDIR}/../openoffice.org-2.0-devel .else MASTERDIR= ${.CURDIR}/../openoffice.org-2.0 .endif .include "${MASTERDIR}/Makefile"