summaryrefslogtreecommitdiff
path: root/devel/eclipse/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/eclipse/Makefile')
-rw-r--r--devel/eclipse/Makefile23
1 files changed, 16 insertions, 7 deletions
diff --git a/devel/eclipse/Makefile b/devel/eclipse/Makefile
index 70e50cdcb67..9344618e704 100644
--- a/devel/eclipse/Makefile
+++ b/devel/eclipse/Makefile
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.9 2004/02/28 18:31:25 jschauma Exp $
+# $NetBSD: Makefile,v 1.10 2004/07/13 20:36:28 jschauma Exp $
#
DISTNAME= ${PKGNAME}
PKGNAME= eclipse-${VERSION}
CATEGORIES= devel java
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/jschauma/
+EXTRACT_SUFX= .zip
MAINTAINER= jschauma@NetBSD.org
HOMEPAGE= http://www.eclipse.org/
@@ -17,28 +18,36 @@ PKG_JVM= sun-jdk14
MAKE_ENV+= JAVA_HOME=${PKG_JAVA_HOME}
MAKE_ENV+= ANT_HOME=${PREFIX}
-VERSION= 2.1.2
+VERSION= 3.0
+
+# XXX: Others might work but might need significant tweaking
+ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-*
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
DISTNAME= eclipse-sourceBuild-srcIncluded-${VERSION}
-MASTER_SITES= http://download.eclipse.org/downloads/drops/R-2.1.2-200311030802/
-EXTRACT_SUFX= .zip
+MASTER_SITES= ftp://download.eclipse.org/R-3.0-200406251208/
PAXDIR= ${WRKDIR}
do-build:
- cd ${WRKDIR} && ${MAKE_ENV} ${SH} build -os linux -ws motif
+ cd ${WRKDIR} && ${MAKE_ENV} ${SH} build -os linux -ws motif -arch x86
.else
NO_BUILD= #defined
PAXDIR= ${WRKSRC}
CHECK_SHLIBS= NO
+
+do-extract:
+ ${MKDIR} ${WRKDIR}/result
+ ${CP} ${DISTDIR}/${PKGNAME}${EXTRACT_SUFX} ${WRKDIR}/result/linux-motif-x86-sdk.zip
.endif
+post-build:
+ ${RM} -fr ${WRKDIR}/tmp
+
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/eclipse
- cd ${PAXDIR} && ${PAX} -s ,^./[.].*,, -rw . ${PREFIX}/eclipse/
+ cd ${PREFIX} && unzip ${WRKDIR}/result/linux-motif-x86-sdk.zip
${SED} -e "s,@PREFIX@,${PREFIX}," ${FILESDIR}/eclipse > \
${WRKDIR}/.eclipse
${INSTALL_SCRIPT} ${WRKDIR}/.eclipse ${PREFIX}/bin/eclipse