mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 04:46:28 -04:00
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
75 lines
2.4 KiB
Makefile
75 lines
2.4 KiB
Makefile
# Created by: gldisater@gldis.ca
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ${PLUGIN}
|
|
PORTVERSION= 6.0.2
|
|
PORTREVISION= 3
|
|
CATEGORIES= java devel
|
|
MASTER_SITES= ECLIPSE/tools/${PLUGIN}/releases/${ECLIPSE_CODENAME}/dist
|
|
PKGNAMEPREFIX= eclipse-
|
|
DISTNAME= ${PLUGIN}-master-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= C/C++ plugin for Eclipse IDE
|
|
|
|
IGNORE= plugin malfunctions, but an upgrade is planned
|
|
|
|
RUN_DEPENDS= eclipse:${PORTSDIR}/java/eclipse
|
|
|
|
USES= zip
|
|
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:
|
|
@(cd ${WRKDIR} && ${COPYTREE_SHARE} "features plugins" ${STAGEDIR}${PREFIX}/lib/eclipse)
|
|
|
|
.include <bsd.port.post.mk>
|