diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2007-10-13 03:28:18 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2007-10-13 03:28:18 +0000 |
commit | 28a3f566fca055cd6c99ab2f6cd7390324c1814d (patch) | |
tree | 108450e1e2832da70f3e9cccbd427c8f60674457 /java/eclipse-devel/Makefile | |
parent | 255d5242ba798f60a9b4e381c3e9ec46850ccec4 (diff) | |
download | ports-28a3f566fca055cd6c99ab2f6cd7390324c1814d.tar.gz ports-28a3f566fca055cd6c99ab2f6cd7390324c1814d.zip |
Notes
Diffstat (limited to 'java/eclipse-devel/Makefile')
-rw-r--r-- | java/eclipse-devel/Makefile | 142 |
1 files changed, 83 insertions, 59 deletions
diff --git a/java/eclipse-devel/Makefile b/java/eclipse-devel/Makefile index c66dc7476949..7b3580578e59 100644 --- a/java/eclipse-devel/Makefile +++ b/java/eclipse-devel/Makefile @@ -6,68 +6,69 @@ # PORTNAME= eclipse -PORTVERSION= 3.1M7 -PORTREVISION= 2 +PORTVERSION= 3.3 CATEGORIES= java devel -MASTER_SITES= ${MASTER_SITE_ECLIPSE} -MASTER_SITE_SUBDIR= S-${PORTVERSION}-200505131415 -DISTNAME= ${PORTNAME}-sourceBuild-srcIncluded-${PORTVERSION} +MASTER_SITES= ${MASTER_SITE_ECLIPSE}/R-${PORTVERSION}-200706251500/:0 \ + ${MASTER_SITE_LOCAL:S|%SUBDIR%|glewis/eclipse|}:1 +DISTFILES= ${PORTNAME}-sourceBuild-srcIncluded-${PORTVERSION}${EXTRACT_SUFX}:0 \ + launchersrc${EXTRACT_SUFX}:1 DIST_SUBDIR= eclipse MAINTAINER= freebsd-eclipse@FreeBSD.org COMMENT= An open extensible IDE for anything and nothing in particular -IGNORE= "Out-of-date, use java/eclipse instead for now" - BUILD_DEPENDS= ant:${PORTSDIR}/devel/apache-ant \ zip:${PORTSDIR}/archivers/zip BUILD_DEPENDS+= ${EXTRACT_DEPENDS} -CONFLICTS= eclipse-3.1* -LATEST_LINK= ${PORTNAME}-devel +ECLIPSE_SUFX= -devel +ECLIPSE= ${PORTNAME}${ECLIPSE_SUFX} -ONLY_FOR_ARCHS= i386 amd64 +ONLY_FOR_ARCHS= i386 USE_GMAKE= yes USE_ZIP= yes -USE_GCC= 3.4 +USE_GCC= 3.4+ +USE_GL= yes + +.if !defined(WITHOUT_MOZILLA) +USE_GECKO= xulrunner firefox mozilla seamonkey +.endif USE_JAVA= yes -JAVA_VERSION= 1.4+ +JAVA_VERSION= 1.6+ JAVA_OS= native NO_WRKSUBDIR= yes -PORTDESTDIR= ${PREFIX}/eclipse +PORTDESTDIR= ${PREFIX}/${ECLIPSE} ECLIPSE_OS= freebsd -.if defined(WITH_MOTIF) -ECLIPSE_WS= motif -USE_ICONV= yes -USE_MOTIF= yes -.else ECLIPSE_WS= gtk -.if defined(WITH_MOZILLA) -BROWSER= ${WITH_MOZILLA} -BUILD_DEPENDS+= ${BROWSER}:${PORTSDIR}/www/${BROWSER} -.else -BUILD_DEPENDS+= mozilla:${PORTSDIR}/www/mozilla -BROWSER= mozilla -.endif -.endif .if defined(WITHOUT_GNOMEVFS) MAKE_GNOME= -USE_GNOME= gtk20 pkgconfig +USE_GNOME= gtk20 pkgconfig desktopfileutils .else MAKE_GNOME= make_gnome -USE_GNOME= gtk20 gnomevfs2 libgnome libgnomeui pkgconfig +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 .endif .include <bsd.port.pre.mk> -.if defined(WITH_MOTIF) -BROKEN= No motif support yet +.if !defined(WITHOUT_MOZILLA) +MAKE_MOZILLA= make_mozilla +BROWSER= ${GECKO} +.else +BROWSER= +MAKE_MOZILLA= .endif .if (${ARCH} == "amd64") @@ -78,54 +79,77 @@ ECLIPSE_ARCH= x86 ECLIPSE_SWT= gtk .endif -.if (!defined(WITH_MOTIF) && ${BROWSER} == "firefox") -BROKEN= Firefox integration doesn\'t work yet -.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} \ - MOTIF_HOME=${X11_HOME} \ - QT_HOME=${X11_HOME} + MAKE_MOZILLA=${MAKE_MOZILLA} \ + MAKE_CAIRO=${MAKE_CAIRO} \ + MACHINE_ARCH=${MACHINE_ARCH} -PLIST_FILES= bin/eclipse +PLIST_FILES= bin/${ECLIPSE} share/applications/${ECLIPSE}.desktop -SWTGTK=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library -SWTMOTIF=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/motif/library +SWTCAIRO=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library +SWTGTK=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI +SWTMOZ=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT Mozilla -# Manually patch some files with spaces in the path post-patch: - @${PATCH} ${PATCH_DIST_ARGS} "${SWTMOTIF}/build.sh" \ - ${FILESDIR}/manualpatch-plugins-swt-motif-build.sh - @${PATCH} ${PATCH_DIST_ARGS} "${SWTMOTIF}/make_freebsd.mak" \ - ${FILESDIR}/manualpatch-plugins-swt-motif-make_freebsd.mak - @${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/make_freebsd.mak" \ - ${FILESDIR}/manualpatch-plugins-swt-gtk-make_freebsd.mak - @${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/build.sh" \ - ${FILESDIR}/manualpatch-plugins-swt-gtk-build.sh - @${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/os_custom.h" \ - ${FILESDIR}/manualpatch-plugins-swt-gtk-os_custom.h + @${PATCH} ${PATCH_DIST_ARGS} "${WRKSRC}/plugins/org.eclipse.core.filesystem/natives/unix/freebsd/Makefile" ${FILESDIR}/post-patch-plugins-org.eclipse.core.filesystem-natives-unix-freebsd-Makefile + @${PATCH} ${PATCH_DIST_ARGS} "${WRKSRC}/plugins/org.eclipse.update.core.freebsd/src/update.c" ${FILESDIR}/post-patch-plugins-org.eclipse.update.core.freebsd-src-update.c + @${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/gtk/library/build.sh" ${FILESDIR}/post-patch-plugins-swt-gtk-build.sh + @${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/gtk/library/build.xml" ${FILESDIR}/post-patch-plugins-swt-PI-gtk-library-build.xml + @${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/gtk/library/make_freebsd.mak" ${FILESDIR}/post-patch-plugins-swt-gtk-make_freebsd.mak + @${PATCH} ${PATCH_DIST_ARGS} "${SWTMOZ}/gtk/org/eclipse/swt/browser/MozillaDelegate.java" ${FILESDIR}/post-patch-plugins-swt-mozilla-gtk-swt-browser-MozillaDelegate.java + @${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/gtk/org/eclipse/swt/internal/gtk/OS.java" ${FILESDIR}/post-patch-plugins-swt-gtk-swt-internal-gtk-OS.java + @${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/gtk/library/os.c" ${FILESDIR}/post-patch-plugins-swt-gtk-library-os.c + + @${REINPLACE_CMD} -e 's|%%GECKO%%|${GECKO}|g' \ + "${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh" \ + "${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_freebsd.mak" + @${RM} ${WRKSRC}/plugins/org.eclipse.platform/launchersrc${EXTRACT_SUFX} + @${CP} ${DISTDIR}/${DIST_SUBDIR}/launchersrc${EXTRACT_SUFX} ${WRKSRC}/plugins/org.eclipse.platform/ + @${RM} ${WRKSRC}/features/org.eclipse.platform/build.xml + @${CP} ${FILESDIR}/org.eclipse.platform-build.xml ${WRKSRC}/features/org.eclipse.platform/build.xml + @${RM} ${WRKSRC}/features/org.eclipse.rcp/build.xml + @${CP} ${FILESDIR}/org.eclipse.rcp-build.xml ${WRKSRC}/features/org.eclipse.rcp/build.xml do-build: @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} \ - ./build -os ${ECLIPSE_OS} -ws ${ECLIPSE_WS} -arch ${ECLIPSE_ARCH} -compilelibs) + ./build -os ${ECLIPSE_OS} -ws ${ECLIPSE_WS} -arch ${ECLIPSE_ARCH} -compilelibs) + @${CP} ${WRKSRC}/launchertmp/library/${ECLIPSE_WS}/eclipse_1017a.so \ + ${WRKSRC}/eclipse/plugins/org.eclipse.equinox.launcher.${ECLIPSE_WS}.${ECLIPSE_OS}.${ECLIPSE_ARCH}_1.0.0.v20070606 do-install: @${MKDIR} ${PORTDESTDIR} - @${TAR} -xvzf ${WRKSRC}/result/*.tar.gz -C ${PREFIX} + @${CP} -R ${WRKSRC}/eclipse/ ${PORTDESTDIR} @${SED} \ -e "s+%%ECLIPSE_HOME%%+${PORTDESTDIR}+g" \ - -e "s+%%JAVA_HOME%%+${JAVA_HOME}+g" \ + -e "s+%%PREFIX%%+${PREFIX}+g" \ -e "s+%%X11BASE%%+${X11BASE}+g" \ + -e "s+%%LOCALBASE%%+${LOCALBASE}+g" \ -e "s+%%BROWSER%%+${BROWSER}+g" \ + -e "s,%%JAVA_VERSION%%,${JAVA_VERSION},g" \ + -e "s+%%JAVA_OS%%+${JAVA_OS}+g" \ ${FILESDIR}/eclipse.in > ${WRKSRC}/eclipse.tmp - ${INSTALL_SCRIPT} ${WRKSRC}/eclipse.tmp ${PREFIX}/bin/eclipse - ${INSTALL_PROGRAM} ${WRKSRC}/launchertmp/eclipse ${PREFIX}/eclipse/eclipse - @(cd ${WRKSRC}/tmp; ${FIND} -s eclipse -not -type d | ${GREP} -v tmp.tar) >> ${TMPPLIST} - @(cd ${WRKSRC}/tmp; ${FIND} -s -d eclipse -type d) \ - | ${SED} -ne 's,^,@dirrm ,p' >> ${TMPPLIST} - + ${INSTALL_SCRIPT} ${WRKSRC}/eclipse.tmp ${PREFIX}/bin/${ECLIPSE} + @${SED} \ + -e "s+%%ECLIPSE_HOME%%+${PORTDESTDIR}+g" \ + -e "s+%%PREFIX%%+${PREFIX}+g" \ + -e "s+/bin/eclipse+/bin/eclipse-europa+g" \ + ${FILESDIR}/eclipse.desktop > ${WRKSRC}/eclipse.desktop.tmp + ${MKDIR} ${PREFIX}/share/applications/ || ${TRUE} + ${INSTALL_DATA} ${WRKSRC}/eclipse.desktop.tmp ${PREFIX}/share/applications/${ECLIPSE}.desktop + ${INSTALL_PROGRAM} ${WRKSRC}/launchertmp/eclipse ${PORTDESTDIR}/eclipse + @-update-desktop-database + @(cd ${WRKSRC}; ${FIND} -s eclipse -not -type d) \ + | ${SED} -e "s+^eclipse+${ECLIPSE}+g" >> ${TMPPLIST} + @echo '@exec ${PREFIX}/bin/update-desktop-database > /dev/null || /usr/bin/true' >> ${TMPPLIST} + @(cd ${WRKSRC}; ${FIND} -s -d eclipse -type d) \ + | ${SED} -e "s+^eclipse+${ECLIPSE}+g" \ + -ne 's,^,@dirrm ,p' >> ${TMPPLIST} + @echo '@unexec ${PREFIX}/bin/update-desktop-database > /dev/null || /usr/bin/true' >> ${TMPPLIST} + +.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk" .include <bsd.port.post.mk> |