freebsd-ports/java/eclipse-cdt/Makefile
Edwin Groothuis 257d466435 [patch] update java/eclipse-cdt to version 3.0.1
This patch updates java/eclipse-cdt to the latest version
	3.0.1. It also installs the native shared libraries that
	were previously missing. In order to do this the distfile
	of the cdt-sdk had to be used instead. A static pkg-plist
	is also used to help people searching through the ports
	files.

PR:		ports/89893
Submitted by:	Panagiotis Astithas <past@ebs.gr>
Approved by:	maintainer timeout
2006-01-03 03:28:05 +00:00

73 lines
3.5 KiB
Makefile

# New ports collection makefile for: eclipse-cdt
# Date created: March 1, 2004
# Whom: gldisater@gldis.ca
#
# $FreeBSD$
#
PORTNAME= cdt
PORTVERSION= 3.0.1
CATEGORIES= java devel
MASTER_SITES= http://download.eclipse.org/tools/cdt/releases/eclipse3.1/dist/${PORTVERSION}/
PKGNAMEPREFIX= eclipse-
DISTNAME= org.eclipse.cdt.sdk-${PORTVERSION}-linux.${ECLIPSE_ARCH}
DIST_SUBDIR= eclipse
MAINTAINER= freebsd-eclipse@FreeBSD.org
COMMENT= C/C++ IDE for Eclipse
RUN_DEPENDS= ${LOCALBASE}/eclipse:${PORTSDIR}/java/eclipse
NO_WRKSUBDIR= yes
USE_JAVA= yes
JAVA_VERSION= 1.4+
JAVA_OS= native
USE_GMAKE= yes
.include <bsd.port.pre.mk>
ECLIPSE_OS= freebsd
.if (${ARCH} == "amd64")
ECLIPSE_ARCH= amd64
.else
ECLIPSE_ARCH= x86
.endif
MAKE_ENV+= ECLIPSE_ARCH=${ECLIPSE_ARCH} \
ECLIPSE_OS=${ECLIPSE_OS} \
PORTVERSION=${PORTVERSION} \
JAVA_HOME=${JAVA_HOME}
do-build:
@${RM} ${WRKSRC}/eclipse/features/org.eclipse.cdt_${PORTVERSION}/*.orig
@${RM} ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.core.freebsd.x86_${PORTVERSION}/*.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
@(cd ${WRKSRC}/eclipse/plugins/org.eclipse.cdt.source.freebsd.gtk.x86_${PORTVERSION}/src/org.eclipse.cdt.core.freebsd_${PORTVERSION}/library; \
${SETENV} ${MAKE_ENV} ${GMAKE})
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
.include <bsd.port.post.mk>