aboutsummaryrefslogtreecommitdiffstats
path: root/java/eclipse/Makefile
blob: 42c0c9e08425028ebafbd6a8dcd046ad78567e7c (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
# New ports collection makefile for:    eclipse
# Date created:             March 7, 2003
# Whom:                 various members of freebsd-java
#
# $FreeBSD$
#

PORTNAME=   eclipse
PORTVERSION=    3.0.1
PORTREVISION=   4
CATEGORIES= java devel
MASTER_SITES=   ${MASTER_SITE_ECLIPSE}
MASTER_SITE_SUBDIR= R-${PORTVERSION}-200409161125
DISTNAME=   ${PORTNAME}-sourceBuild-srcIncluded-${PORTVERSION}
DIST_SUBDIR=    eclipse

MAINTAINER= java@FreeBSD.ORG
COMMENT=    An open extensible IDE for anything and nothing in particular

BUILD_DEPENDS=  ant:${PORTSDIR}/devel/apache-ant \
        zip:${PORTSDIR}/archivers/zip
BUILD_DEPENDS+= ${EXTRACT_DEPENDS}

ONLY_FOR_ARCHS= i386
USE_GMAKE=  yes
USE_ZIP=    yes
USE_GCC=    3.4

USE_JAVA=   yes
JAVA_VERSION=   1.4+
JAVA_OS=    native

USE_REINPLACE=  yes
NO_WRKSUBDIR=   yes
PLIST_SUB=  BUILD=${ECLIPSE_BUILD} WS=${ECLIPSE_WS} RELEASEVERSION=${PORTVERSION}

ECLIPSE_BUILD=  3063
ECLIPSE_OS= freebsd
ECLIPSE_ARCH=   x86

.if defined(WITH_MOTIF)
ECLIPSE_WS= motif
USE_ICONV=  yes
USE_MOTIF=  yes
PLIST_SUB+= GTK:="@comment "
PLIST_SUB+= MOTIF:=""
.else
ECLIPSE_WS= gtk
PLIST_SUB+= GTK:=""
PLIST_SUB+= MOTIF:="@comment "
.if defined(WITH_MOZILLA) && ${WITH_MOZILLA} == "firefox"
BUILD_DEPENDS+= firefox:${PORTSDIR}/www/firefox
BROWSER=    firefox
.else
BUILD_DEPENDS+= mozilla:${PORTSDIR}/www/mozilla
BROWSER=    mozilla
.endif
.endif

.if defined(WITHOUT_GNOMEVFS)
MAKE_GNOME=
USE_GNOME=  gtk20 pkgconfig
PLIST_SUB+= GNOME:="@comment "
.else
MAKE_GNOME= make_gnome
USE_GNOME=  gtk20 gnomevfs2 libgnome libgnomeui pkgconfig
PLIST_SUB+= GNOME:=""
.endif

MAKE_ARGS=  BROWSER=${BROWSER} \
        ECLIPSE_BUILD=${ECLIPSE_BUILD} \
        ECLIPSE_ARCH=${ECLIPSE_ARCH} \
        ECLIPSE_OS=${ECLIPSE_OS} \
        ECLIPSE_WS=${ECLIPSE_WS} \
        JAVA_HOME=${JAVA_HOME} \
        MAKE_GNOME=${MAKE_GNOME}

SCRIPTS_ENV=    ECLIPSE_WS="${ECLIPSE_WS}"

.include <bsd.port.pre.mk>

# The Motif version builds a KDE/Qt library if kdebase is around
.if defined(WITH_MOTIF)
BUILD_KDE=`${PKG_INFO} -xc kdebase | ${GREP} "no packages match"`
.if empty(BUILD_KDE)
PLIST_SUB+= KDE:=""
.else
PLIST_SUB+= KDE:="@comment *${BUILD_KDE}*"
.endif
.endif

.include <bsd.port.post.mk>