pkgsrc/devel/eclipse/Makefile
rillig 9637f7852e all: migrate homepages from http to https
pkglint -r --network --only "migrate"

As a side-effect of migrating the homepages, pkglint also fixed a few
indentations in unrelated lines. These and the new homepages have been
checked manually.
2020-01-26 17:30:40 +00:00

67 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.36 2020/01/26 17:30:56 rillig Exp $
DISTNAME= ${PKGNAME_NOREV}
PKGNAME= eclipse-${VERSION}
PKGREVISION= 2
CATEGORIES= devel java
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/jschauma/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.eclipse.org/
COMMENT= Java IDE
LICENSE= eclipse-license
DEPENDS+= apache-ant>=1.4.1:../../devel/apache-ant
USE_TOOLS+= unzip zip
PKG_JVMS_ACCEPTED= sun-jdk7
MAKE_ENV+= JAVA_HOME=${PKG_JAVA_HOME:Q}
MAKE_ENV+= ANT_HOME=${PREFIX:Q}
VERSION= 3.0.1
# Note: Linux is "native"; x86 NetBSD is (or was) tested.
# Others might work but might need significant tweaking.
# Don't mark others broken until tested; otherwise they'll never *be* tested.
#BROKEN_EXCEPT_ON_PLATFORM= Linux-*-* NetBSD-*-i386 NetBSD-*-x86_64
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
DISTNAME= eclipse-sourceBuild-srcIncluded-${VERSION}
MASTER_SITES= http://archive.eclipse.org/eclipse/downloads/drops/R-3.0.1-200409161125/
INSTALLATION_DIRS= bin
do-build:
cd ${WRKDIR} && ${MAKE_ENV} ${SH} build -os linux -ws motif -arch x86
.else
NO_BUILD= yes
CHECK_SHLIBS_SUPPORTED= no
CHECK_SSP_SUPPORTED= no
do-extract:
${MKDIR} ${WRKDIR}/result
${CP} ${DISTDIR}/${PKGNAME_NOREV}${EXTRACT_SUFX} ${WRKDIR}/result/linux-motif-x86-sdk.zip
.endif
post-build:
${RM} -fr ${WRKDIR}/tmp
do-install:
cd ${DESTDIR}${PREFIX} && \
unzip ${WRKDIR}/result/linux-motif-x86-sdk.zip
${SED} -e "s,@PREFIX@,${PREFIX}," ${FILESDIR}/eclipse > \
${WRKDIR}/.eclipse
${INSTALL_SCRIPT} ${WRKDIR}/.eclipse ${DESTDIR}${PREFIX}/bin/eclipse
# This is not right, but for the time being it's the path of least
# resistance, since replacing it after install is problematic and
# replacing it before install is even more problematic. XXX.
#
CHECK_INTERPRETER_SKIP+= eclipse/plugins/org.apache.ant_1.6.2/bin/antRun.pl
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"