2008-10-28 09:33:16 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.44 2008/10/28 13:39:12 jasper Exp $
|
2005-02-04 12:18:09 -05:00
|
|
|
|
2007-04-13 10:30:43 -04:00
|
|
|
SHARED_ONLY= Yes
|
2006-07-06 21:48:54 -04:00
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
2005-02-04 12:18:09 -05:00
|
|
|
|
2007-09-15 22:52:56 -04:00
|
|
|
COMMENT-main= general-purpose, extensible IDE for Java & other langs
|
|
|
|
COMMENT-swt= widget toolkit for Java
|
2008-10-28 09:33:16 -04:00
|
|
|
COMMENT-gnome= GNOME integration library for swt/eclipse
|
2007-09-15 22:52:56 -04:00
|
|
|
COMMENT-browser= HTML Browser Widget library for swt/eclipse
|
2005-02-04 12:18:09 -05:00
|
|
|
|
2007-04-13 10:30:43 -04:00
|
|
|
ECLIPSE_VER= 3.2.2
|
2005-02-04 12:18:09 -05:00
|
|
|
DISTNAME= eclipse-sourceBuild-srcIncluded-${ECLIPSE_VER}
|
2006-12-13 15:57:16 -05:00
|
|
|
PKGNAME= eclipse-sdk-${ECLIPSE_VER}
|
2008-06-14 20:04:49 -04:00
|
|
|
PKGNAME-main= eclipse-sdk-${ECLIPSE_VER}p7
|
2008-04-06 06:08:17 -04:00
|
|
|
PKGNAME-swt= swt-${ECLIPSE_VER}p0
|
2008-10-28 09:33:16 -04:00
|
|
|
PKGNAME-gnome= swt-gnome-${ECLIPSE_VER}p1
|
2008-04-14 03:17:41 -04:00
|
|
|
PKGNAME-browser= swt-browser-${ECLIPSE_VER}p0
|
2007-04-13 10:30:43 -04:00
|
|
|
SHARED_LIBS= swt-atk-gtk-3236 4.0 \
|
|
|
|
swt-awt-gtk-3236 4.0 \
|
|
|
|
swt-gtk-3236 4.0 \
|
|
|
|
swt-pi-gtk-3236 4.0 \
|
|
|
|
swt-cairo-gtk-3236 4.0 \
|
|
|
|
swt-gnome-gtk-3236 4.0 \
|
|
|
|
swt-mozilla-gtk-3236 4.0 \
|
|
|
|
swt-glx-gtk-3236 4.0
|
2006-01-10 08:29:57 -05:00
|
|
|
|
2005-02-04 12:18:09 -05:00
|
|
|
CATEGORIES= devel/eclipse java
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.eclipse.org/
|
|
|
|
|
|
|
|
MAINTAINER= Kurt Miller <kurt@openbsd.org>
|
|
|
|
|
|
|
|
# Eclipse Public License Version 1.0 (http://www.eclipse.org/legal/epl-v10.html)
|
2005-08-09 10:49:09 -04:00
|
|
|
# Apache Software License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
2005-02-04 12:18:09 -05:00
|
|
|
# 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)
|
2005-08-09 10:49:09 -04:00
|
|
|
# LGPL 2.1
|
2007-09-15 22:52:56 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= commercial distribution defend and indemnify clauses
|
2005-02-04 12:18:09 -05:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2007-09-15 22:52:56 -04:00
|
|
|
PERMIT_DISTFILES_CDROM= commercial distribution defend and indemnify clauses
|
2005-02-04 12:18:09 -05:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITE_ECLIPSE+= \
|
2006-07-06 21:48:54 -04:00
|
|
|
http://ftp.osuosl.org/pub/eclipse/eclipse/downloads/drops/ \
|
2005-02-04 12:18:09 -05:00
|
|
|
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/ \
|
2006-07-06 21:48:54 -04:00
|
|
|
http://download2.eclipse.org/eclipse/downloads/drops/
|
|
|
|
|
2007-04-13 10:30:43 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_ECLIPSE:=R-3.2.2-200702121330/}
|
2005-02-04 12:18:09 -05:00
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
|
|
|
VMEM_WARNING= Yes
|
2005-06-17 15:15:29 -04:00
|
|
|
|
2006-11-22 10:42:39 -05:00
|
|
|
MODULES= java devel/gettext
|
2006-07-06 21:48:54 -04:00
|
|
|
MODJAVA_VER= 1.5+
|
2005-06-17 15:15:29 -04:00
|
|
|
|
2007-01-12 13:46:37 -05:00
|
|
|
BUILD_DEPENDS= ::devel/xulrunner,-devel \
|
2006-12-16 07:22:32 -05:00
|
|
|
:apache-ant->=1.6.1:devel/apache-ant
|
2005-02-04 12:18:09 -05:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_X11= Yes
|
2007-01-26 09:15:37 -05:00
|
|
|
USE_ZIP= Yes
|
2005-02-04 12:18:09 -05:00
|
|
|
|
2006-12-13 15:57:16 -05:00
|
|
|
MULTI_PACKAGES= -main -swt -gnome -browser
|
2006-11-17 14:41:58 -05:00
|
|
|
|
2006-11-22 10:42:39 -05:00
|
|
|
RUN_DEPENDS-main= ::java/javaPathHelper \
|
2006-12-13 15:57:16 -05:00
|
|
|
${MODJAVA_RUN_DEPENDS} \
|
2008-04-14 09:26:06 -04:00
|
|
|
:swt-browser-${ECLIPSE_VER}*:devel/eclipse/sdk,-browser \
|
2008-01-25 15:17:26 -05:00
|
|
|
::devel/desktop-file-utils
|
2006-11-22 10:42:39 -05:00
|
|
|
LIB_DEPENDS-main= gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2
|
2007-05-15 14:40:26 -04:00
|
|
|
|
|
|
|
WANTLIB-main= X11 Xau Xcursor Xdmcp Xext Xfixes Xi Xinerama \
|
2007-11-13 09:06:21 -05:00
|
|
|
Xcomposite Xdamage \
|
2007-05-15 14:40:26 -04:00
|
|
|
Xrandr Xrender c expat m z fontconfig \
|
2006-11-17 14:41:58 -05:00
|
|
|
freetype atk-1.0 glib-2.0 gmodule-2.0 \
|
2007-01-04 15:19:53 -05:00
|
|
|
gobject-2.0 glitz png iconv intl \
|
2008-06-14 20:04:49 -04:00
|
|
|
pango-1.0 pangoft2-1.0 pangocairo-1.0 cairo \
|
|
|
|
pixman-1
|
2005-02-04 12:18:09 -05:00
|
|
|
|
2006-12-13 15:57:16 -05:00
|
|
|
LIB_DEPENDS-swt= gtk-x11-2.0::x11/gtk+2
|
|
|
|
WANTLIB-swt= GL GLU Xtst m atk-1.0 cairo gthread-2.0
|
|
|
|
|
2008-04-14 03:17:41 -04:00
|
|
|
RUN_DEPENDS-gnome= :swt-${ECLIPSE_VER}*:devel/eclipse/sdk,-swt
|
2006-11-22 10:42:39 -05:00
|
|
|
LIB_DEPENDS-gnome= gnomeui-2::x11/gnome/libgnomeui
|
|
|
|
WANTLIB-gnome= gnome-2 gnomevfs-2
|
|
|
|
|
2008-04-14 03:17:41 -04:00
|
|
|
RUN_DEPENDS-browser= :swt-${ECLIPSE_VER}*:devel/eclipse/sdk,-swt
|
2007-01-12 13:46:37 -05:00
|
|
|
LIB_DEPENDS-browser= xulrunner/gtkembedmoz,xulrunner/xpcom::devel/xulrunner
|
2006-12-13 15:57:16 -05:00
|
|
|
WANTLIB-browser= c nspr4 plc4 plds4
|
2005-02-04 12:18:09 -05:00
|
|
|
|
2007-01-12 13:46:37 -05:00
|
|
|
MOZILLA_HOME= ${LOCALBASE}/xulrunner
|
2005-04-19 09:56:47 -04:00
|
|
|
ECLIPSE_WS= gtk
|
2007-04-13 10:30:43 -04:00
|
|
|
ECLIPSE_BUILD= 3236
|
2005-02-04 12:18:09 -05:00
|
|
|
ECLIPSE_OS= openbsd
|
2006-07-06 21:48:54 -04:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2005-02-04 12:18:09 -05:00
|
|
|
ECLIPSE_ARCH= x86
|
2006-07-06 21:48:54 -04:00
|
|
|
.else
|
|
|
|
ECLIPSE_ARCH= x86_64
|
|
|
|
.endif
|
2005-02-04 12:18:09 -05:00
|
|
|
|
2005-08-09 10:49:09 -04:00
|
|
|
MAKE_ENV= ECLIPSE_BUILD=${ECLIPSE_BUILD} \
|
2005-02-04 12:18:09 -05:00
|
|
|
ECLIPSE_ARCH=${ECLIPSE_ARCH} \
|
|
|
|
ECLIPSE_OS=${ECLIPSE_OS} \
|
|
|
|
ECLIPSE_WS=${ECLIPSE_WS} \
|
|
|
|
JAVA_HOME=${JAVA_HOME} \
|
2005-08-09 10:49:09 -04:00
|
|
|
MOZILLA_HOME=${MOZILLA_HOME} \
|
2006-01-10 08:29:57 -05:00
|
|
|
CC="${CC}" CXX="${CXX}" \
|
2007-04-13 10:30:43 -04:00
|
|
|
LIBswt_atk_gtk_VERSION=${LIBswt-atk-gtk-3236_VERSION} \
|
|
|
|
LIBswt_awt_gtk_VERSION=${LIBswt-awt-gtk-3236_VERSION} \
|
|
|
|
LIBswt_gtk_VERSION=${LIBswt-gtk-3236_VERSION} \
|
|
|
|
LIBswt_pi_gtk_VERSION=${LIBswt-pi-gtk-3236_VERSION} \
|
|
|
|
LIBswt_cairo_gtk_VERSION=${LIBswt-cairo-gtk-3236_VERSION} \
|
|
|
|
LIBswt_gnome_gtk_VERSION=${LIBswt-gnome-gtk-3236_VERSION} \
|
|
|
|
LIBswt_mozilla_gtk_VERSION=${LIBswt-mozilla-gtk-3236_VERSION} \
|
|
|
|
LIBswt_glx_gtk_VERSION=${LIBswt-glx-gtk-3236_VERSION}
|
2005-02-04 12:18:09 -05:00
|
|
|
|
2005-08-09 10:49:09 -04:00
|
|
|
FAKE_FLAGS= ${MAKE_ENV}
|
2005-02-04 12:18:09 -05:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}
|
|
|
|
|
2006-07-06 21:48:54 -04:00
|
|
|
SUBST_VARS= ECLIPSE_ARCH
|
2005-02-04 12:18:09 -05:00
|
|
|
|
|
|
|
# Build out openbsd source from linux source
|
|
|
|
pre-patch:
|
|
|
|
@exec ${SETENV} WRKSRC=${WRKSRC} ECLIPSE_WS=${ECLIPSE_WS} \
|
2006-11-02 05:59:17 -05:00
|
|
|
${FILESDIR}/prepatch.sh
|
2006-01-10 08:29:57 -05:00
|
|
|
|
2005-08-09 10:49:09 -04:00
|
|
|
do-build:
|
2005-08-26 17:39:14 -04:00
|
|
|
@cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
|
2006-07-06 21:48:54 -04:00
|
|
|
./build -os ${ECLIPSE_OS} -ws ${ECLIPSE_WS} -arch ${ECLIPSE_ARCH} -java5home ${JAVA_HOME} -compilelibs
|
2005-08-09 10:49:09 -04:00
|
|
|
|
|
|
|
do-install:
|
2006-12-13 15:57:16 -05:00
|
|
|
@tar xzf ${WRKBUILD}/result/openbsd-gtk-${ECLIPSE_ARCH}-sdk.tar.gz \
|
2005-08-09 10:49:09 -04:00
|
|
|
-C ${PREFIX}
|
|
|
|
@sed -e "s+%%ECLIPSE_HOME%%+${TRUEPREFIX}/eclipse+g" \
|
2007-01-12 13:46:37 -05:00
|
|
|
-e "s+%%MOZILLA_FIVE_HOME%%+${TRUEPREFIX}/xulrunner+g" \
|
2005-08-09 10:49:09 -04:00
|
|
|
${WRKBUILD}/eclipse.in > ${WRKBUILD}/eclipse.tmp
|
2006-12-13 15:57:16 -05:00
|
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/eclipse.tmp ${PREFIX}/bin/eclipse
|
2005-08-09 10:49:09 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/launchertmp/eclipse ${PREFIX}/eclipse/eclipse
|
2006-12-13 15:57:16 -05:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/plugins/org.eclipse.swt.gtk.openbsd.${ECLIPSE_ARCH}/libswt-*.so.* \
|
|
|
|
${PREFIX}/lib/
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/java/classes/
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/eclipse/plugins/org.eclipse.swt.gtk.openbsd.${ECLIPSE_ARCH}_${ECLIPSE_VER}.v${ECLIPSE_BUILD}.jar \
|
|
|
|
${PREFIX}/share/java/classes/swt.jar
|
2008-01-25 15:17:26 -05:00
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/share/applications
|
|
|
|
@sed -e 's+%%PREFIX%%+${TRUEPREFIX}+' ${FILESDIR}/eclipse.desktop > \
|
|
|
|
${PREFIX}/share/applications/eclipse.desktop
|
2005-08-09 10:49:09 -04:00
|
|
|
|
2005-02-04 12:18:09 -05:00
|
|
|
.include <bsd.port.mk>
|