pkgsrc/devel/eclipse/Makefile
jlam 60f791e1e6 Move the check-shlibs target from bsd.pkg.mk to bsd.pkg.check.mk where
it will live with other "check" targets run after package installation.

Get rid of SHLIB_HANDLING, whose meaning had mutated over the years
from one thing to another.  Currently, it is used to basically note
whether the system's "ldd" command can be usefully run on the package's
binaries and libraries.  Rename this variable to CHECK_SHLIBS_SUPPORTED
for more clarity.

CHECK_SHLIBS is now a variable set exclusively by the user in /etc/mk.conf
to note whether the check for missing run-time search paths is performed
after a package is installed.  It defaults to "no" unless PKG_DEVELOPER
is set.
2006-05-22 22:22:02 +00:00

60 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.20 2006/05/22 22:22:02 jlam Exp $
#
DISTNAME= ${PKGNAME_NOREV}
PKGNAME= eclipse-${VERSION}
PKGREVISION= 1
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
LICENSE= eclipse-license
DEPENDS+= apache-ant>=1.4.1:../../devel/apache-ant
PKG_JVMS_ACCEPTED= sun-jdk15 sun-jdk14
MAKE_ENV+= JAVA_HOME=${PKG_JAVA_HOME:Q}
MAKE_ENV+= ANT_HOME=${PREFIX:Q}
VERSION= 3.0.1
# 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.1-200409161125/
BUILD_DEPENDS+= zip>=2.3:../../archivers/zip
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
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 ${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"