8be560d1a7
sdk: The Eclipse Platform is an IDE for anything, and for nothing in particular. flavors: gtk2, motif subpackages: -gnome, -mozilla (gtk2 only), -kde (motif only) plugins/emf: Eclipse Modeling Framework (EMF) plugins/gef: graphical editing environment for eclipse plugins/uml2 UML diagram framework for Eclipse ok alek@, todd@
163 lines
5.3 KiB
Makefile
163 lines
5.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2005/02/04 17:18:10 kurt Exp $
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
COMMENT= "IDE for anything and nothing in particular"
|
|
COMMENT-gnome= "gnome intergration library for eclipse"
|
|
COMMENT-kde= "kde intergration library for eclipse"
|
|
COMMENT-mozilla= "mozilla intergration library for eclipse HTML Browser Widget"
|
|
|
|
ECLIPSE_VER= 3.0.1
|
|
DISTNAME= eclipse-sourceBuild-srcIncluded-${ECLIPSE_VER}
|
|
FULLPKGNAME= eclipse-sdk${FLAVOR_EXT}-${ECLIPSE_VER}
|
|
FULLPKGNAME-gnome= eclipse-sdk${FLAVOR_EXT}-gnome-${ECLIPSE_VER}
|
|
FULLPKGNAME-kde= eclipse-sdk${FLAVOR_EXT}-kde-${ECLIPSE_VER}
|
|
FULLPKGNAME-mozilla= eclipse-sdk${FLAVOR_EXT}-mozilla-${ECLIPSE_VER}
|
|
CATEGORIES= devel/eclipse java
|
|
|
|
HOMEPAGE= http://www.eclipse.org/
|
|
|
|
MAINTAINER= Kurt Miller <kurt@openbsd.org>
|
|
|
|
# Common Public License Version 1.0 (http://www.eclipse.org/legal/cpl-v10.html)
|
|
# Eclipse Public License Version 1.0 (http://www.eclipse.org/legal/epl-v10.html)
|
|
# Apache Software License 1.1 (http://www.apache.org/licenses/LICENSE-1.1)
|
|
# IBM Public License 1.0 (http://oss.software.ibm.com/developerworks/opensource/license10.html)
|
|
# Metro Link Public License 1.00 (http://www.opengroup.org/openmotif/supporters/metrolink/license.html)
|
|
# Mozilla Public License Version 1.1 (http://www.mozilla.org/MPL/MPL-1.1.html)
|
|
PERMIT_PACKAGE_CDROM= "commercial distribution defend and indemnify clauses"
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= "commercial distribution defend and indemnify clauses"
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITE_ECLIPSE+= \
|
|
ftp://ftp.cse.buffalo.edu/pub/Eclipse/eclipse/downloads/drops/ \
|
|
http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/ \
|
|
ftp://eclipse.mirrors.tds.net/pub/eclipse.org/eclipse/downloads/drops/ \
|
|
http://eclipse.objectweb.org/downloads/drops/ \
|
|
http://mirror.pacific.net.au/eclipse/eclipse/downloads/drops/ \
|
|
ftp://download.eclipse.org/ \
|
|
ftp://download2.eclipse.org/
|
|
|
|
MASTER_SITES= ${MASTER_SITE_ECLIPSE:=R-3.0.1-200409161125/}
|
|
EXTRACT_SUFX= .zip
|
|
|
|
VMEM_WARNING= Yes
|
|
BUILD_DEPENDS= :jdk->=1.4.2p0,<1.5:devel/jdk/1.4 \
|
|
:apache-ant->=1.6.1:devel/apache-ant \
|
|
:pkgconfig-*:devel/pkgconfig
|
|
|
|
RUN_DEPENDS= :jdk->=1.4.2p0:devel/jdk/1.4 \
|
|
:apache-ant->=1.6.1:devel/apache-ant
|
|
|
|
LIB_DEPENDS= gdk-x11-2.0.0.0,gdk_pixbuf-2.0.0.0,gtk-x11-2.0.0.0::x11/gtk+2
|
|
|
|
WANTLIB_COMMON= X11 Xcursor Xext Xft Xinerama Xrender atk-1.0.0.0 \
|
|
fontconfig freetype glib-2.0.0.0 gmodule-2.0.0.0 \
|
|
gobject-2.0.0.0 iconv intl m pango-1.0.0.0 \
|
|
pangox-1.0.0.0 pangoxft-1.0.0.0
|
|
|
|
USE_GMAKE= Yes
|
|
USE_X11= Yes
|
|
|
|
FLAVORS= gtk2 motif
|
|
FLAVOR?= gtk2
|
|
|
|
MULTI_PACKAGES= -gnome
|
|
SUBPACKAGE?=
|
|
|
|
.if ${FLAVOR:L:Mgtk2} && ${FLAVOR:L:Mmotif}
|
|
ERRORS+= "Fatal: You must select only one of the following flavors: gtk2 motif"
|
|
.elif ${FLAVOR:L:Mgtk2}
|
|
MULTI_PACKAGES+= -mozilla
|
|
ECLIPSE_WS= gtk
|
|
BUILD_DEPENDS+= :mozilla-devel-*-gtk2:www/mozilla,-devel,gtk2
|
|
.elif ${FLAVOR:L:Mmotif}
|
|
MULTI_PACKAGES+= -kde
|
|
ECLIPSE_WS= motif
|
|
USE_MOTIF= openmotif
|
|
.else
|
|
ERRORS+= "Fatal: You must select one of the following flavors: ${FLAVORS}"
|
|
.endif
|
|
|
|
GNOME_LIB_DEPENDS= gnomeui-2::x11/gnome/libgnomeui
|
|
|
|
KDE_LIB_DEPENDS= kdecore.6::x11/kde/libs3 \
|
|
qt-mt.3::x11/qt3,mt
|
|
|
|
MOZILLA_LIB_DEPENDS= mozilla/xpcom.1,mozilla/gtkembedmoz.1:mozilla-*-gtk2:www/mozilla,gtk2
|
|
|
|
.if defined(PACKAGING)
|
|
. if ${SUBPACKAGE} == "-gnome"
|
|
RUN_DEPENDS= ::devel/eclipse/sdk,${FLAVOR}
|
|
LIB_DEPENDS+= ${GNOME_LIB_DEPENDS}
|
|
WANTLIB= ${WANTLIB_COMMON} \
|
|
ICE ORBit-2 SM art_lgpl_2 bonobo-2 bonobo-activation \
|
|
bonoboui-2 gconf-2 gnome-2 gnomecanvas-2 gnomevfs-2 \
|
|
gthread-2.0.0.0 pangoft2-1.0.0.0 popt xml2 z
|
|
. elif ${SUBPACKAGE} == "-kde"
|
|
RUN_DEPENDS= ::devel/eclipse/sdk,${FLAVOR}
|
|
LIB_DEPENDS= ${KDE_LIB_DEPENDS}
|
|
. elif ${SUBPACKAGE} == "-mozilla"
|
|
RUN_DEPENDS= ::devel/eclipse/sdk,${FLAVOR}
|
|
LIB_DEPENDS= ${MOZILLA_LIB_DEPENDS}
|
|
. else
|
|
WANTLIB= ${WANTLIB_COMMON} Xtst c
|
|
. if ${FLAVOR:L:Mgtk2}
|
|
WANTLIB+= gthread-2.0.0.0
|
|
. elif ${FLAVOR:L:Mmotif}
|
|
WANTLIB+= Xp Xt
|
|
. endif
|
|
. endif
|
|
.else
|
|
. if ${MULTI_PACKAGES:M-gnome}
|
|
LIB_DEPENDS+= ${GNOME_LIB_DEPENDS}
|
|
. endif
|
|
. if ${MULTI_PACKAGES:M-kde}
|
|
LIB_DEPENDS+= ${KDE_LIB_DEPENDS}
|
|
. endif
|
|
. if ${MULTI_PACKAGES:M-mozilla}
|
|
LIB_DEPENDS+= ${MOZILLA_LIB_DEPENDS}
|
|
. endif
|
|
.endif
|
|
|
|
JAVA_HOME= ${LOCALBASE}/jdk-1.4.2
|
|
MOZILLA_HOME= ${LOCALBASE}/mozilla
|
|
ECLIPSE_BUILD= 3063
|
|
ECLIPSE_COREVER= 3.0.0
|
|
ECLIPSE_OS= openbsd
|
|
ECLIPSE_ARCH= x86
|
|
|
|
MAKE_FLAGS= ECLIPSE_BUILD=${ECLIPSE_BUILD} \
|
|
ECLIPSE_ARCH=${ECLIPSE_ARCH} \
|
|
ECLIPSE_OS=${ECLIPSE_OS} \
|
|
ECLIPSE_WS=${ECLIPSE_WS} \
|
|
JAVA_HOME=${JAVA_HOME} \
|
|
MOZILLA_HOME=${MOZILLA_HOME}
|
|
|
|
FAKE_FLAGS= ${MAKE_FLAGS}
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
WRKDIST= ${WRKDIR}
|
|
|
|
SUBST_VARS= ECLIPSE_WS ECLIPSE_VER ECLIPSE_COREVER ECLIPSE_BUILD
|
|
|
|
FIXUP_FILES= plugins/org.eclipse.update.core.openbsd/src/build.xml \
|
|
plugins/org.eclipse.swt/Eclipse\ SWT\ PI/gtk/library/make_gtk.xml \
|
|
plugins/org.eclipse.swt/Eclipse\ SWT\ PI/motif/library/make_motif.xml \
|
|
plugins/org.eclipse.swt.motif/build.xml \
|
|
plugins/org.eclipse.swt.gtk/build.xml \
|
|
plugins/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseBundleData.java
|
|
|
|
# Build out openbsd source from linux source
|
|
# Avoid patch problems by adding the missing last line feeds
|
|
pre-patch:
|
|
@exec ${SETENV} WRKSRC=${WRKSRC} ECLIPSE_WS=${ECLIPSE_WS} \
|
|
${SCRIPTDIR}/prepatch.sh
|
|
.for file in ${FIXUP_FILES}
|
|
@echo >> ${WRKSRC}/${file}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|