pkgsrc/devel/eclipse/Makefile
jschauma c3d54eb054 Update eclipse to 3.0. There are tons of changes, including a new look
and feel, but apparently no cumulative list of changes is available.
Please compare to www.eclipse.org.

XXX: mark this as for NetBSD-*-i386 and Linux-*-* only for the time being
XXX: Users of other OS might be able to tweak the Makefile - if you do,
XXX: please file a PR with the patches.  Thanks.
2004-07-13 20:36:28 +00:00

56 lines
1.3 KiB
Makefile

# $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/
COMMENT= Java IDE
DEPENDS+= apache-ant>=1.4.1:../../devel/apache-ant
PKG_JVM= sun-jdk14
MAKE_ENV+= JAVA_HOME=${PKG_JAVA_HOME}
MAKE_ENV+= ANT_HOME=${PREFIX}
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= ftp://download.eclipse.org/R-3.0-200406251208/
PAXDIR= ${WRKDIR}
do-build:
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:
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
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"