diff options
Diffstat (limited to 'java/eclipse-cdt/Makefile')
-rw-r--r-- | java/eclipse-cdt/Makefile | 76 |
1 files changed, 43 insertions, 33 deletions
diff --git a/java/eclipse-cdt/Makefile b/java/eclipse-cdt/Makefile index 9c1b29567172..89b14e95cb60 100644 --- a/java/eclipse-cdt/Makefile +++ b/java/eclipse-cdt/Makefile @@ -6,14 +6,15 @@ # PORTNAME= cdt -PORTVERSION= 3.0.2 +PORTVERSION= 3.1.1 CATEGORIES= java devel -MASTER_SITES= http://download.eclipse.org/tools/cdt/releases/eclipse3.1/dist/${PORTVERSION}/ +MASTER_SITES= ${MASTER_SITE_ECLIPSE} +MASTER_SITE_SUBDIR=tools/cdt/releases/callisto/dist/3.1.1 PKGNAMEPREFIX= eclipse- DISTNAME= org.eclipse.cdt.sdk-${PORTVERSION}-linux.x86 DIST_SUBDIR= eclipse -MAINTAINER= freebsd-eclipse@FreeBSD.org +MAINTAINER= girgen@FreeBSD.org COMMENT= C/C++ IDE for Eclipse RUN_DEPENDS= ${LOCALBASE}/eclipse:${PORTSDIR}/java/eclipse @@ -23,6 +24,8 @@ USE_JAVA= yes JAVA_VERSION= 1.4+ JAVA_OS= native USE_GMAKE= yes +USE_UNZIP= yes +PORTVERSION_TS= ${PORTVERSION}.200609270800 .include <bsd.port.pre.mk> @@ -31,51 +34,58 @@ ECLIPSE_OS= freebsd ECLIPSE_ARCH= amd64 .else ECLIPSE_ARCH= x86 -PLIST_FILES+= eclipse/plugins/org.eclipse.cdt.core.freebsd.x86_3.0.2/os/freebsd/x86/libpty.so \ - eclipse/plugins/org.eclipse.cdt.core.freebsd.x86_3.0.2/os/freebsd/x86/libspawner.so +PLIST_FILES+= eclipse/plugins/org.eclipse.cdt.core.freebsd.x86_${PORTVERSION_TS}/os/freebsd/x86/libpty.so \ + eclipse/plugins/org.eclipse.cdt.core.freebsd.x86_${PORTVERSION_TS}/os/freebsd/x86/libspawner.so .endif +SCRIPTS_ENV= PORTVERSION_TS=${PORTVERSION_TS} UNZIP_CMD=${UNZIP_CMD} + MAKE_ENV+= ECLIPSE_ARCH=${ECLIPSE_ARCH} \ ECLIPSE_OS=${ECLIPSE_OS} \ PORTVERSION=${PORTVERSION} \ + PORTVERSION_TS=${PORTVERSION_TS} \ JAVA_HOME=${JAVA_HOME} -PLIST_SUB+= PORTVERSION=${PORTVERSION} +PLIST_SUB+= PORTVERSION_TS=${PORTVERSION_TS} do-build: - @${RM} ${WRKSRC}/eclipse/features/org.eclipse.cdt_${PORTVERSION}/*.orig - @${RM} ${WRKSRC}/eclipse/features/org.eclipse.cdt.source_${PORTVERSION}/*.orig - @${RM} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.core.freebsd.x86_${PORTVERSION}/*.orig - @${RM} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.source.freebsd.gtk.x86_${PORTVERSION}/*.orig - @${RM} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.source.freebsd.gtk.x86_${PORTVERSION}/src/org.eclipse.cdt.core.freebsd_${PORTVERSION}/library/*.orig - @${RM} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.core.freebsd_${PORTVERSION}/*.orig - @${RM} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.core_${PORTVERSION}/*.orig - @${RM} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.managedbuilder.gnu.ui_${PORTVERSION}/*.orig + @${FIND} ${WRKSRC} -name \*.orig -delete .if (${ARCH} == "i386") - @(cd ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.source.freebsd.gtk.x86_${PORTVERSION}/src/org.eclipse.cdt.core.freebsd_${PORTVERSION}/library; \ + @(cd ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.source.freebsd.gtk.x86_${PORTVERSION_TS}/src/org.eclipse.cdt.core.freebsd_${PORTVERSION_TS}/library; \ ${SETENV} ${MAKE_ENV} ${GMAKE}) .endif +.if !defined(INSTALL_AS_USER) +pre-install: + ${SU_CMD} "${CHMOD} -R go-w ${WRKSRC}" + ${SU_CMD} "${CHOWN} -R 0:0 ${WRKSRC}" +.endif + do-install: @${MKDIR} ${PREFIX}/eclipse @${MKDIR} ${PREFIX}/eclipse/features @${MKDIR} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/features/org.eclipse.cdt_${PORTVERSION} ${PREFIX}/eclipse/features - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.core.freebsd.x86_${PORTVERSION} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.core.freebsd_${PORTVERSION} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.core_${PORTVERSION} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.debug.core_${PORTVERSION} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.debug.mi.core_${PORTVERSION} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.debug.mi.ui_${PORTVERSION} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.debug.ui_${PORTVERSION} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.doc.user_${PORTVERSION} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.launch_${PORTVERSION} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.make.core_${PORTVERSION} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.make.ui_${PORTVERSION} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.managedbuilder.core_${PORTVERSION} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.managedbuilder.gnu.ui_${PORTVERSION} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.managedbuilder.ui_${PORTVERSION} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.refactoring_${PORTVERSION} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.ui_${PORTVERSION} ${PREFIX}/eclipse/plugins - @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt_${PORTVERSION} ${PREFIX}/eclipse/plugins + @${CP} -r ${WRKSRC}/eclipse/features/org.eclipse.cdt_${PORTVERSION_TS} ${PREFIX}/eclipse/features + @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.core.freebsd.x86_${PORTVERSION_TS} ${PREFIX}/eclipse/plugins + @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.core.freebsd_${PORTVERSION_TS} ${PREFIX}/eclipse/plugins + @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.core_${PORTVERSION_TS} ${PREFIX}/eclipse/plugins + @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.managedbuilder.gnu.ui_${PORTVERSION_TS} ${PREFIX}/eclipse/plugins + @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.source.freebsd.gtk.x86_${PORTVERSION_TS} ${PREFIX}/eclipse/plugins + @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.source.linux.gtk.x86_${PORTVERSION_TS} ${PREFIX}/eclipse/plugins + @${CP} -r ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.source_${PORTVERSION_TS} ${PREFIX}/eclipse/plugins + @${INSTALL_DATA} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.debug.core_${PORTVERSION_TS}.jar ${PREFIX}/eclipse/plugins + @${INSTALL_DATA} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.debug.mi.core_${PORTVERSION_TS}.jar ${PREFIX}/eclipse/plugins + @${INSTALL_DATA} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.debug.mi.ui_${PORTVERSION_TS}.jar ${PREFIX}/eclipse/plugins + @${INSTALL_DATA} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.debug.ui_${PORTVERSION_TS}.jar ${PREFIX}/eclipse/plugins + @${INSTALL_DATA} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.doc.isv_${PORTVERSION_TS}.jar ${PREFIX}/eclipse/plugins + @${INSTALL_DATA} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.doc.user_${PORTVERSION_TS}.jar ${PREFIX}/eclipse/plugins + @${INSTALL_DATA} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.launch_${PORTVERSION_TS}.jar ${PREFIX}/eclipse/plugins + @${INSTALL_DATA} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.make.core_${PORTVERSION_TS}.jar ${PREFIX}/eclipse/plugins + @${INSTALL_DATA} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.make.ui_${PORTVERSION_TS}.jar ${PREFIX}/eclipse/plugins + @${INSTALL_DATA} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.managedbuilder.core_${PORTVERSION_TS}.jar ${PREFIX}/eclipse/plugins + @${INSTALL_DATA} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.managedbuilder.ui_${PORTVERSION_TS}.jar ${PREFIX}/eclipse/plugins + @${INSTALL_DATA} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.refactoring_${PORTVERSION_TS}.jar ${PREFIX}/eclipse/plugins + @${INSTALL_DATA} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.sdk_${PORTVERSION_TS}.jar ${PREFIX}/eclipse/plugins + @${INSTALL_DATA} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.ui_${PORTVERSION_TS}.jar ${PREFIX}/eclipse/plugins + @${INSTALL_DATA} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt_${PORTVERSION_TS}.jar ${PREFIX}/eclipse/plugins .include <bsd.port.post.mk> |