2005-05-07 07:00:40 +02:00
|
|
|
# New ports collection makefile for: eclipse-devel
|
|
|
|
# Date created: April 9, 2005
|
|
|
|
# Whom: various members of freebsd-java
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2008-01-16 17:26:13 +01:00
|
|
|
PORTNAME= eclipse-devel
|
2008-10-12 17:46:15 +02:00
|
|
|
PORTVERSION= 3.4.1
|
2009-07-31 15:57:52 +02:00
|
|
|
PORTREVISION= 2
|
2005-05-07 07:00:40 +02:00
|
|
|
CATEGORIES= java devel
|
2007-10-24 09:05:50 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_ECLIPSE}
|
2008-10-12 17:46:15 +02:00
|
|
|
MASTER_SITE_SUBDIR= R-${PORTVERSION}-200809111700
|
2008-01-16 17:26:13 +01:00
|
|
|
DISTNAME= eclipse-sourceBuild-srcIncluded-${PORTVERSION}
|
2005-05-07 07:00:40 +02:00
|
|
|
DIST_SUBDIR= eclipse
|
|
|
|
|
2005-08-28 17:29:51 +02:00
|
|
|
MAINTAINER= freebsd-eclipse@FreeBSD.org
|
2005-05-07 07:00:40 +02:00
|
|
|
COMMENT= An open extensible IDE for anything and nothing in particular
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ant:${PORTSDIR}/devel/apache-ant \
|
2008-09-06 21:31:51 +02:00
|
|
|
zip:${PORTSDIR}/archivers/zip \
|
2008-10-12 17:46:15 +02:00
|
|
|
unzip:${PORTSDIR}/archivers/unzip
|
2008-09-06 21:31:51 +02:00
|
|
|
PATCH_DEPENDS+= gpatch:${PORTSDIR}/devel/patch
|
2005-05-07 07:00:40 +02:00
|
|
|
|
2008-01-16 17:26:13 +01:00
|
|
|
ECLIPSE= ${PORTNAME}
|
2005-05-07 07:00:40 +02:00
|
|
|
|
2007-10-13 16:31:30 +02:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2005-05-07 07:00:40 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_ZIP= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_GL= glu
|
2007-10-13 05:28:18 +02:00
|
|
|
|
2008-09-06 21:31:51 +02:00
|
|
|
PATCH= ${LOCALBASE}/bin/gpatch
|
|
|
|
|
2007-10-13 05:28:18 +02:00
|
|
|
.if !defined(WITHOUT_MOZILLA)
|
2008-10-12 17:46:15 +02:00
|
|
|
USE_GECKO= firefox xulrunner seamonkey
|
2007-10-13 05:28:18 +02:00
|
|
|
.endif
|
2005-05-07 07:00:40 +02:00
|
|
|
|
|
|
|
USE_JAVA= yes
|
2008-09-06 21:31:51 +02:00
|
|
|
JAVA_VERSION= 1.6
|
2005-05-07 07:00:40 +02:00
|
|
|
JAVA_OS= native
|
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2007-10-13 05:28:18 +02:00
|
|
|
PORTDESTDIR= ${PREFIX}/${ECLIPSE}
|
2005-05-07 07:00:40 +02:00
|
|
|
|
|
|
|
ECLIPSE_OS= freebsd
|
|
|
|
|
|
|
|
ECLIPSE_WS= gtk
|
|
|
|
|
2009-02-15 04:21:30 +01:00
|
|
|
IGNORE= eclipse 3.4.x is now in java/eclipse, please use that instead
|
|
|
|
|
2005-05-07 07:00:40 +02:00
|
|
|
.if defined(WITHOUT_GNOMEVFS)
|
|
|
|
MAKE_GNOME=
|
2007-10-13 05:28:18 +02:00
|
|
|
USE_GNOME= gtk20 pkgconfig desktopfileutils
|
2005-05-07 07:00:40 +02:00
|
|
|
.else
|
|
|
|
MAKE_GNOME= make_gnome
|
2007-10-13 05:28:18 +02:00
|
|
|
USE_GNOME= gtk20 gnomevfs2 libgnome libgnomeui pkgconfig desktopfileutils
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_CAIRO)
|
|
|
|
MAKE_CAIRO=
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
|
|
|
|
MAKE_CAIRO= make_cairo
|
2005-05-07 07:00:40 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-09-06 21:31:51 +02:00
|
|
|
.if ${OSVERSION} >= 800000
|
2008-01-16 17:26:13 +01:00
|
|
|
JAVA_VENDOR= bsdjava
|
|
|
|
.endif
|
|
|
|
|
2007-10-13 05:28:18 +02:00
|
|
|
.if !defined(WITHOUT_MOZILLA)
|
|
|
|
MAKE_MOZILLA= make_mozilla
|
|
|
|
BROWSER= ${GECKO}
|
|
|
|
.else
|
|
|
|
BROWSER=
|
|
|
|
MAKE_MOZILLA=
|
2005-05-07 07:00:40 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if (${ARCH} == "amd64")
|
|
|
|
ECLIPSE_ARCH= amd64
|
|
|
|
ECLIPSE_SWT= gtk64
|
|
|
|
.else
|
|
|
|
ECLIPSE_ARCH= x86
|
|
|
|
ECLIPSE_SWT= gtk
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MAKE_ENV+= BROWSER=${BROWSER} \
|
|
|
|
ECLIPSE_ARCH=${ECLIPSE_ARCH} \
|
|
|
|
ECLIPSE_OS=${ECLIPSE_OS} \
|
|
|
|
ECLIPSE_WS=${ECLIPSE_WS} \
|
|
|
|
JAVA_HOME=${JAVA_HOME} \
|
|
|
|
MAKE_GNOME=${MAKE_GNOME} \
|
2007-10-13 05:28:18 +02:00
|
|
|
MAKE_MOZILLA=${MAKE_MOZILLA} \
|
|
|
|
MAKE_CAIRO=${MAKE_CAIRO} \
|
|
|
|
MACHINE_ARCH=${MACHINE_ARCH}
|
2005-05-07 07:00:40 +02:00
|
|
|
|
2007-10-13 05:28:18 +02:00
|
|
|
PLIST_FILES= bin/${ECLIPSE} share/applications/${ECLIPSE}.desktop
|
2005-05-07 07:00:40 +02:00
|
|
|
|
2008-09-06 21:31:51 +02:00
|
|
|
SWTBASE=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT
|
2007-10-13 05:28:18 +02:00
|
|
|
SWTGTK=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI
|
|
|
|
SWTMOZ=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT Mozilla
|
2005-05-07 07:00:40 +02:00
|
|
|
|
2008-09-06 21:31:51 +02:00
|
|
|
ECLIPSE_IU=FreeBSD Eclipse SDK
|
2008-10-12 17:46:15 +02:00
|
|
|
ECLIPSE_IU_VERSION=${PORTVERSION}.${PORTREVISION}
|
2008-09-06 21:31:51 +02:00
|
|
|
|
2005-05-07 07:00:40 +02:00
|
|
|
post-patch:
|
2008-09-06 21:31:51 +02:00
|
|
|
@${PATCH} ${PATCH_DIST_ARGS} -d "${SWTBASE}" -i ${FILESDIR}/post-patch-plugins-org.eclipse.swt-Eclipse_SWT-gtk-org-eclipse-swt-widgets-FileDialog.java
|
|
|
|
@${PATCH} ${PATCH_DIST_ARGS} -d "${SWTBASE}" -i ${FILESDIR}/post-patch-plugins-org.eclipse.swt-Eclipse_SWT-gtk-org-eclipse-swt-widgets-DirectoryDialog.java
|
|
|
|
@${PATCH} ${PATCH_DIST_ARGS} -d "${SWTGTK}" -i ${FILESDIR}/post-patch-plugins-org.eclipse.swt-Eclipse_SWT_PI-gtk-library-build.sh
|
|
|
|
@${PATCH} ${PATCH_DIST_ARGS} -d "${SWTGTK}" -i ${FILESDIR}/post-patch-plugins-org.eclipse.swt-Eclipse_SWT_PI-gtk-library-build.xml
|
|
|
|
@${PATCH} ${PATCH_DIST_ARGS} -d "${SWTGTK}" -i ${FILESDIR}/post-patch-plugins-org.eclipse.swt-Eclipse_SWT_PI-gtk-library-make_freebsd.mak
|
|
|
|
@${PATCH} ${PATCH_DIST_ARGS} -d "${SWTGTK}" -i ${FILESDIR}/post-patch-plugins-org.eclipse.swt-Eclipse_SWT_PI-gtk-org-eclipse-swt-internal-gtk-OS.java
|
|
|
|
@${PATCH} ${PATCH_DIST_ARGS} -d "${SWTMOZ}" -i ${FILESDIR}/post-patch-plugins-org.eclipse.swt-Eclipse_SWT_Mozilla-gtk-org-eclipse-swt-browser-MozillaDelegate.java
|
2005-05-07 07:00:40 +02:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} \
|
2007-10-24 09:05:50 +02:00
|
|
|
./build -os ${ECLIPSE_OS} -ws ${ECLIPSE_WS} -arch ${ECLIPSE_ARCH} -compilelibs)
|
2008-09-06 21:31:51 +02:00
|
|
|
@${JAVA} \
|
2008-10-12 17:46:15 +02:00
|
|
|
-jar ${WRKSRC}/eclipse/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar \
|
2008-09-06 21:31:51 +02:00
|
|
|
-data ${WRKSRC}/workspace \
|
|
|
|
-application org.eclipse.equinox.p2.metadata.generator.EclipseGenerator \
|
|
|
|
-flavor tooling \
|
|
|
|
-metadataRepositoryName "FreeBSD Eclipse" \
|
|
|
|
-artifactRepositoryName "FreeBSD Eclipse" \
|
|
|
|
-metadataRepository "file:${WRKSRC}/eclipse/metadata" \
|
|
|
|
-artifactRepository "file:${WRKSRC}/eclipse/metadata" \
|
|
|
|
-root "${ECLIPSE_IU}" \
|
|
|
|
-rootVersion "${ECLIPSE_IU_VERSION}" \
|
|
|
|
-source ${WRKSRC}/eclipse \
|
|
|
|
-append \
|
|
|
|
-publishArtifacts
|
2005-05-07 07:00:40 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${PORTDESTDIR}
|
2008-09-06 21:31:51 +02:00
|
|
|
@${JAVA} \
|
|
|
|
-Declipse.p2.data.area="file:${PORTDESTDIR}/p2" \
|
2008-10-12 17:46:15 +02:00
|
|
|
-jar ${WRKSRC}/eclipse/plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar \
|
2008-09-06 21:31:51 +02:00
|
|
|
-data ${WRKSRC}/workspace \
|
|
|
|
-application org.eclipse.equinox.p2.director.app.application \
|
|
|
|
-flavor tooling \
|
|
|
|
-metadataRepository "file:${WRKSRC}/eclipse/metadata" \
|
|
|
|
-artifactRepository "file:${WRKSRC}/eclipse/metadata" \
|
|
|
|
-installIU "${ECLIPSE_IU}" \
|
|
|
|
-version "${ECLIPSE_IU_VERSION}" \
|
|
|
|
-p2.os ${ECLIPSE_OS} \
|
|
|
|
-p2.ws ${ECLIPSE_WS} \
|
|
|
|
-p2.arch ${ECLIPSE_ARCH} \
|
|
|
|
-profile SDKProfile \
|
|
|
|
-profileProperties org.eclipse.update.install.features=true \
|
|
|
|
-destination "${PORTDESTDIR}" \
|
|
|
|
-bundlepool "${PORTDESTDIR}" \
|
|
|
|
-roaming
|
|
|
|
(cd ${WRKSRC}/eclipse; \
|
|
|
|
${CP} -R about.html epl-v10.html icon.xpm notice.html readme ${PORTDESTDIR})
|
2005-05-07 07:00:40 +02:00
|
|
|
@${SED} \
|
|
|
|
-e "s+%%ECLIPSE_HOME%%+${PORTDESTDIR}+g" \
|
2007-10-13 05:28:18 +02:00
|
|
|
-e "s+%%PREFIX%%+${PREFIX}+g" \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
-e "s+%%LOCALBASE%%+${LOCALBASE}+g" \
|
2007-10-13 05:28:18 +02:00
|
|
|
-e "s+%%LOCALBASE%%+${LOCALBASE}+g" \
|
2005-05-07 07:00:40 +02:00
|
|
|
-e "s+%%BROWSER%%+${BROWSER}+g" \
|
2007-10-13 05:28:18 +02:00
|
|
|
-e "s,%%JAVA_VERSION%%,${JAVA_VERSION},g" \
|
|
|
|
-e "s+%%JAVA_OS%%+${JAVA_OS}+g" \
|
2008-09-06 21:31:51 +02:00
|
|
|
${FILESDIR}/eclipse.in > ${WRKSRC}/eclipse.tmp
|
2008-01-16 17:26:13 +01:00
|
|
|
.if defined(JAVA_VENDOR)
|
2008-09-06 21:31:51 +02:00
|
|
|
@${REINPLACE_CMD} \
|
2008-01-16 17:26:13 +01:00
|
|
|
-e "s+%%JAVA_VENDOR_SPECIFICATION%%+JAVA_VENDOR=\"${JAVA_VENDOR}\"+g" \
|
|
|
|
${WRKSRC}/eclipse.tmp
|
|
|
|
.else
|
2008-09-06 21:31:51 +02:00
|
|
|
@${REINPLACE_CMD} \
|
2008-01-16 17:26:13 +01:00
|
|
|
-e "s+%%JAVA_VENDOR_SPECIFICATION%%++g" \
|
|
|
|
${WRKSRC}/eclipse.tmp
|
|
|
|
.endif
|
2008-09-06 21:31:51 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/eclipse.tmp ${PREFIX}/bin/${ECLIPSE}
|
2007-10-13 05:28:18 +02:00
|
|
|
@${SED} \
|
|
|
|
-e "s+%%ECLIPSE_HOME%%+${PORTDESTDIR}+g" \
|
2008-09-06 21:31:51 +02:00
|
|
|
-e "s+%%ECLIPSE%%+${ECLIPSE}+g" \
|
2007-10-13 05:28:18 +02:00
|
|
|
-e "s+%%PREFIX%%+${PREFIX}+g" \
|
2008-09-06 21:31:51 +02:00
|
|
|
${FILESDIR}/eclipse.desktop > ${WRKSRC}/eclipse.desktop.tmp
|
|
|
|
@${MKDIR} ${PREFIX}/share/applications/ || ${TRUE}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/eclipse.desktop.tmp ${PREFIX}/share/applications/${ECLIPSE}.desktop
|
2007-10-13 05:28:18 +02:00
|
|
|
@-update-desktop-database
|
2008-09-06 21:31:51 +02:00
|
|
|
@(cd ${PREFIX}; ${FIND} -s ${ECLIPSE} -not -type d) >> ${TMPPLIST}
|
2007-10-13 05:28:18 +02:00
|
|
|
@echo '@exec ${PREFIX}/bin/update-desktop-database > /dev/null || /usr/bin/true' >> ${TMPPLIST}
|
2008-09-06 21:31:51 +02:00
|
|
|
@(cd ${PREFIX}; ${FIND} -s -d ${ECLIPSE} -type d) | ${SED} -ne 's,^,@dirrm ,p' >> ${TMPPLIST}
|
2007-10-13 05:28:18 +02:00
|
|
|
@echo '@unexec ${PREFIX}/bin/update-desktop-database > /dev/null || /usr/bin/true' >> ${TMPPLIST}
|
|
|
|
|
2009-02-03 07:05:11 +01:00
|
|
|
setup-user:
|
|
|
|
@echo 'Preparing Eclipse configuration for user ${USER}'
|
|
|
|
@${PREFIX}/bin/${ECLIPSE} -initialize -clean -consoleLog
|
|
|
|
@${FIND} ${HOME}/.eclipse -exec touch {} \;
|
|
|
|
|
2005-05-07 07:00:40 +02:00
|
|
|
.include <bsd.port.post.mk>
|