1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/editors/ooo-build/Makefile
Maho Nakata 8a1970c180 Update to ooo-build 2.1,
and fixes the build that is reported by kris.
The `base' version should ooo-build and openoffic.org-2 should
be the same.
2007-01-14 10:39:31 +00:00

98 lines
3.4 KiB
Makefile

# New ports collection makefile for: ooo-build
# Date created: 4 Dec 2005
# Whom: Nakata Maho <maho@FreeBSD.org>
# $FreeBSD$
PORTNAME= ooo-build
PORTVERSION= ${OOOBUILD_VERSION}
MASTER_SITES+= http://www.go-ooo.org/packages/OOE680/ \
http://www.go-ooo.org/packages/SRC680/ \
http://www.openclipart.org/downloads/0.18/:openclipart
DISTFILES+= ${OOOBUILD_SOURCE} \
${OOO_EXTRA_ARTWORK} ${OOO_CRYSTAL_IMAGES} \
${OOO_OPENCLIPART}:openclipart
MAINTAINER= maho@FreeBSD.org
COMMENT= Community enhanced/bug fixed version of OpenOffice.org
DESCR= ${.CURDIR}/pkg-descr
#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_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.1
OOOBUILD_TAG=ooe680-m6
OOOSRC= OOo_OOE680_m6_source.tar.bz2
OOOTAG= OOE680_m6
OOOBUILD= ooo-build-${OOOBUILD_VERSION}
#OOOBUILD= ooo-build-${OOOBUILD_TAG}
OOOBUILD_SOURCE=${OOOBUILD}.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
CONFIGURE_ARGS+= --enable-cairo --with-system-cairo --with-system-xrender-headers=yes #i62713#
CONFIGURE_ARGS+= --disable-access #--with-system-mdbtools
#for lpsolve...
CONFIGURE_ARGS+= --with-system-lpsolve
CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS} -L${PREFIX}/lib"
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -L${PREFIX}/lib"
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include"
LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
LIB_DEPENDS+= lpsolve55.1:${PORTSDIR}/math/lp_solve
#LIB_DEPENDS+= mdb:${PORTSDIR}/databases/mdbtools
USE_GSTREAMER= yes
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
post-patch:
#just for lpsolve...
@cd ${WRKSRC} ; ${PATCH} < ${.CURDIR}/files/set_soenv-patch
pre-configure:
@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}
@${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
.if defined(DEVELOPER_VER)
MASTERDIR= ${.CURDIR}/../openoffice.org-2-devel
.else
MASTERDIR= ${.CURDIR}/../openoffice.org-2
.endif
.include "${MASTERDIR}/Makefile"