aboutsummaryrefslogtreecommitdiffstats
path: root/editors/ooo-build/Makefile
blob: c6adb289f24ab436a624d62e3ad8cddb5a8df5d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# 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"