aboutsummaryrefslogtreecommitdiffstats
path: root/java/eclipse-cdt/Makefile
blob: cdacb793c7f27dee645b2ccf4a8e1841fca3456b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# New ports collection makefile for:    eclipse-cdt
# Date created:                         March 1, 2004
# Whom:                                 gldisater@gldis.ca
#
# $FreeBSD$
#

PORTNAME=   ${PLUGIN}
PORTVERSION=    6.0.2
PORTREVISION=   1
CATEGORIES= java devel
MASTER_SITES=   ${MASTER_SITE_ECLIPSE}
MASTER_SITE_SUBDIR=tools/${PLUGIN}/releases/${ECLIPSE_CODENAME}/dist
DISTNAME=   ${PLUGIN}-master-${PORTVERSION}
PKGNAMEPREFIX=  eclipse-

MAINTAINER= graudeejs@gmail.com
COMMENT=    C/C++ plugin for Eclipse IDE

RUN_DEPENDS=    eclipse:${PORTSDIR}/java/eclipse

USE_ZIP=    YES
USE_JAVA=   YES
JAVA_OS=    native
JAVA_RUN=   YES
JAVA_VERSION=   1.6

NO_BUILD=   YES
NO_WRKSUBDIR=   YES

ECLIPSE_CODENAME=galileo
PLUGIN=     cdt
RM_VERSION= 5.1.0.201002161416
RM_NAME=    org.eclipse.cdt.core

RM_XLC= features/org.eclipse.cdt.xlc.feature_6.0.0.201002161416.jar \
    features/org.eclipse.cdt.xlc.sdk_6.0.0.201002161416.jar \
    features/org.eclipse.cdt.xlc.source_6.0.0.201002161416.jar \
    plugins/org.eclipse.cdt.core.lrparser.xlc.source_5.1.0.201002161416.jar \
    plugins/org.eclipse.cdt.core.lrparser.xlc_5.1.0.201002161416.jar \
    plugins/org.eclipse.cdt.errorparsers.xlc.source_5.0.100.201002161416.jar \
    plugins/org.eclipse.cdt.errorparsers.xlc_5.0.100.201002161416.jar \
    plugins/org.eclipse.cdt.make.xlc.core.source_5.0.0.201002161416.jar \
    plugins/org.eclipse.cdt.make.xlc.core_5.0.0.201002161416.jar \
    plugins/org.eclipse.cdt.managedbuilder.xlc.core.source_5.0.0.201002161416.jar \
    plugins/org.eclipse.cdt.managedbuilder.xlc.core_5.0.0.201002161416.jar \
    plugins/org.eclipse.cdt.managedbuilder.xlc.ui.source_6.0.0.201002161416.jar \
    plugins/org.eclipse.cdt.managedbuilder.xlc.ui_6.0.0.201002161416.jar \
    plugins/org.eclipse.cdt.managedbuilder.xlupc.ui.source_1.0.0.201002161416.jar \
    plugins/org.eclipse.cdt.managedbuilder.xlupc.ui_1.0.0.201002161416.jar

.include <bsd.port.pre.mk>

.if ${ARCH} == "i386"
RM_PLATFORM=    win32 solaris qnx macosx aix linux.ppc linux.ia64 linux.x86_64
PLIST_SUB+= RM_I386=""
PLIST_SUB+= RM_AMD64="@comment "
.endif
.if ${ARCH} == "amd64"
RM_PLATFORM=    win32 solaris qnx macosx aix linux.ppc linux.ia64 linux.x86
PLIST_SUB+= RM_I386="@comment "
PLIST_SUB+= RM_AMD64=""
.endif

do-patch:
# remove unneeded files
.for i in ${RM_PLATFORM}
    @${RM} ${WRKDIR}/plugins/${RM_NAME}.${i}.source_${RM_VERSION}.jar
    @${RM} ${WRKDIR}/plugins/${RM_NAME}.${i}_${RM_VERSION}.jar
.endfor
.for i in ${RM_XLC}
    @${RM} ${WRKDIR}/${i}
.endfor

do-install:
.for i in features plugins
    @(cd ${WRKDIR}/${i} && ${COPYTREE_SHARE} \* ${PREFIX}/lib/eclipse/${i}/)
.endfor

.include <bsd.port.post.mk>