2011-09-30 05:10:18 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.15 2011/09/30 09:10:18 jasper Exp $
|
2010-04-09 18:23:26 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT= IntelliJ Java IDE
|
|
|
|
|
2010-11-22 09:07:54 -05:00
|
|
|
V= 9.0.4
|
2010-04-09 18:23:26 -04:00
|
|
|
DISTNAME= ideaIC-${V}
|
2010-07-24 18:12:53 -04:00
|
|
|
PKGNAME= intellij-${V}
|
2011-08-30 13:16:35 -04:00
|
|
|
CATEGORIES= devel
|
2010-04-09 18:23:26 -04:00
|
|
|
|
2011-09-16 05:24:48 -04:00
|
|
|
REVISION= 2
|
2011-06-02 09:41:36 -04:00
|
|
|
|
2010-04-09 18:23:26 -04:00
|
|
|
HOMEPAGE= http://www.jetbrains.com/idea/
|
|
|
|
|
|
|
|
MAINTAINER= Daniel Dickman <didickman@gmail.com>
|
|
|
|
|
|
|
|
# Apache v2.0
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= http://download.jetbrains.com/idea/
|
|
|
|
|
|
|
|
MODULES= java
|
|
|
|
MODJAVA_VER= 1.6
|
|
|
|
|
2010-04-18 15:22:44 -04:00
|
|
|
BUILD_DEPENDS= ${MODJAVA_RUN_DEPENDS}
|
2010-04-09 18:23:26 -04:00
|
|
|
|
2010-11-15 14:45:56 -05:00
|
|
|
RUN_DEPENDS= devel/desktop-file-utils
|
2010-05-02 12:56:19 -04:00
|
|
|
|
2010-04-09 18:23:26 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2011-09-30 05:10:18 -04:00
|
|
|
SUBST_VARS+= JAVA_HOME
|
|
|
|
|
2010-11-22 09:07:54 -05:00
|
|
|
WRKDIST= ${WRKDIR}/idea-IC-95.627
|
2010-04-09 18:23:26 -04:00
|
|
|
IJ= ${PREFIX}/intellij
|
|
|
|
|
2010-04-30 15:02:17 -04:00
|
|
|
# If NO_BUILD is set, JAVA_HOME doesn't get defined. So do
|
|
|
|
# a no-op for do-build.
|
|
|
|
do-build:
|
|
|
|
@true
|
|
|
|
|
2010-04-09 18:23:26 -04:00
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${IJ}
|
|
|
|
@tar -czf - -C ${WRKDIST} . | tar xzf - -C ${IJ}
|
2010-07-24 18:12:53 -04:00
|
|
|
@${SUBST_CMD} -o ${BINOWN} -g ${BINGRP} -c \
|
|
|
|
${FILESDIR}/idea \
|
2010-04-09 18:23:26 -04:00
|
|
|
${PREFIX}/bin/idea
|
|
|
|
@chmod ${BINMODE} ${PREFIX}/bin/idea
|
|
|
|
@ln -s ${TRUEPREFIX}/bin/idea ${PREFIX}/bin/intellij
|
|
|
|
${INSTALL_MAN} ${FILESDIR}/idea.1 ${PREFIX}/man/man1
|
2010-07-24 18:12:53 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
|
2010-04-30 15:02:17 -04:00
|
|
|
cd ${WRKDIST}/lib && ${JAVA_HOME}/bin/jar xf icons.jar
|
2010-05-02 12:56:19 -04:00
|
|
|
${INSTALL_DATA} ${WRKDIST}/lib/icon.png ${IJ}/idea.png
|
2010-07-24 18:12:53 -04:00
|
|
|
@${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c \
|
|
|
|
${FILESDIR}/intellij.desktop \
|
2010-04-09 18:23:26 -04:00
|
|
|
${PREFIX}/share/applications/intellij.desktop
|
2010-05-02 12:56:19 -04:00
|
|
|
@chmod ${SHAREMODE} \
|
|
|
|
${PREFIX}/share/applications/intellij.desktop
|
2010-04-09 18:23:26 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|