head	1.6;
access;
symbols
	pkgsrc-2019Q2:1.5.0.10
	pkgsrc-2019Q2-base:1.5
	pkgsrc-2019Q1:1.5.0.8
	pkgsrc-2019Q1-base:1.5
	pkgsrc-2018Q4:1.5.0.6
	pkgsrc-2018Q4-base:1.5
	pkgsrc-2018Q3:1.5.0.4
	pkgsrc-2018Q3-base:1.5
	pkgsrc-2018Q2:1.5.0.2
	pkgsrc-2018Q2-base:1.5
	pkgsrc-2018Q1:1.4.0.22
	pkgsrc-2018Q1-base:1.4
	pkgsrc-2017Q4:1.4.0.20
	pkgsrc-2017Q4-base:1.4
	pkgsrc-2017Q3:1.4.0.18
	pkgsrc-2017Q3-base:1.4
	pkgsrc-2017Q2:1.4.0.14
	pkgsrc-2017Q2-base:1.4
	pkgsrc-2017Q1:1.4.0.12
	pkgsrc-2017Q1-base:1.4
	pkgsrc-2016Q4:1.4.0.10
	pkgsrc-2016Q4-base:1.4
	pkgsrc-2016Q3:1.4.0.8
	pkgsrc-2016Q3-base:1.4
	pkgsrc-2016Q2:1.4.0.6
	pkgsrc-2016Q2-base:1.4
	pkgsrc-2016Q1:1.4.0.4
	pkgsrc-2016Q1-base:1.4
	pkgsrc-2015Q4:1.4.0.2
	pkgsrc-2015Q4-base:1.4
	pkgsrc-2015Q3:1.3.0.2
	pkgsrc-2015Q3-base:1.3
	pkgsrc-2015Q2:1.2.0.10
	pkgsrc-2015Q2-base:1.2
	pkgsrc-2015Q1:1.2.0.8
	pkgsrc-2015Q1-base:1.2
	pkgsrc-2014Q4:1.2.0.6
	pkgsrc-2014Q4-base:1.2
	pkgsrc-2014Q3:1.2.0.4
	pkgsrc-2014Q3-base:1.2
	pkgsrc-2014Q2:1.2.0.2
	pkgsrc-2014Q2-base:1.2
	pkgsrc-2014Q1:1.1.0.4
	pkgsrc-2014Q1-base:1.1
	pkgsrc-2013Q4:1.1.0.2
	pkgsrc-2013Q4-base:1.1;
locks; strict;
comment	@# @;


1.6
date	2019.07.25.16.47.22;	author ryoon;	state dead;
branches;
next	1.5;
commitid	Jqa9eRdkwgxXGrwB;

1.5
date	2018.06.09.20.34.56;	author fhajny;	state Exp;
branches;
next	1.4;
commitid	hDbxZdPHrvc2bEFA;

1.4
date	2015.11.25.12.49.46;	author jperkin;	state Exp;
branches;
next	1.3;
commitid	4xNrBQ23oOj3ptKy;

1.3
date	2015.09.17.17.13.33;	author joerg;	state Exp;
branches;
next	1.2;
commitid	wnEhI7Aq2mO45DBy;

1.2
date	2014.04.24.16.19.40;	author ryoon;	state Exp;
branches;
next	1.1;
commitid	UWxaPCQ25MpUcXxx;

1.1
date	2013.11.24.10.44.34;	author ryoon;	state Exp;
branches;
next	;
commitid	RxUsr5wIBcGXcwex;


desc
@@


1.6
log
@Removw intellij-idea-ce

Superseded by intellij-ce-bin.
@
text
@# $NetBSD: Makefile,v 1.5 2018/06/09 20:34:56 fhajny Exp $

VERSION=	13.1.2
DISTNAME=	ideaIC-${VERSION:S/.0.0//}-src
PKGNAME=	intellij-idea-ce-${VERSION}
PKGREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	http://download.jetbrains.com/idea/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	ryoon@@NetBSD.org
HOMEPAGE=	http://www.jetbrains.org/
COMMENT=	JetBrain's Java IDE
LICENSE=	apache-2.0

WRKSRC=		${WRKDIR}/ideaIC-135.690
USE_LANGUAGES=	c c++
USE_JAVA=	yes
USE_JAVA2=	7

USE_TOOLS+=	pax tar

DEPENDS+=	snappy-java>=1.0.5<1.1:../../devel/snappy-java10
BUILD_DEPENDS+=	apache-ant-[0-9]*:../../devel/apache-ant

SUBST_CLASSES+=		dos_eol
SUBST_MESSAGE.dos_eol=	Removing DOS line-ends
SUBST_STAGE.dos_eol=	post-extract
SUBST_FILES.dos_eol=	native/fsNotifier/linux/*
SUBST_FILTER_CMD.dos_eol=	${TR} -d '\r'

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD"
.include "../../devel/libinotify/buildlink3.mk"
LIBINOTIFYFLAG=		-linotify
MNTENTCFILE=		mntent_compat.c
.endif

INSTALLATION_DIRS=	intellij-idea-ce-${VERSION}

EXTDIR=			idea-IC-135.SNAPSHOT

do-build:
# Build Java part
	cd ${WRKSRC} \
		&& env ${MAKE_ENV} \
		${LOCALBASE}/bin/ant
# Build fsnotifier native binary
	cd ${WRKSRC}/native/fsNotifier/linux && \
		${CC} -Wall -std=c99 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 \
		-D_NETBSD_SOURCE \
		-o fsnotifier \
		main.c inotify.c util.c \
		${MNTENTCFILE} \
		-I${BUILDLINK_PREFIX.libinotify}/include \
		${LIBINOTIFYFLAG} \
		-L${BUILDLINK_PREFIX.libinotify}/lib \
		${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libinotify}/lib
# Build libbreakgen native library
	cd ${WRKSRC}/native/breakgen && \
	${CC} -shared -fPIC -o libbreakgen.so AppMain.c \
	-I ${PKG_JAVA_HOME}/include/

do-install:
	cd ${WRKDIR} && \
	zcat ${WRKSRC}/out/artifacts/ideaIC-135.SNAPSHOT.tar.gz | tar xf -
	cd ${WRKDIR} && rm ${EXTDIR}/bin/fsnotifier*
	cd ${WRKDIR} && rm ${EXTDIR}/bin/libbreakgen.so
	cd ${WRKDIR} && rm ${EXTDIR}/bin/libbreakgen64.so
	cd ${WRKDIR} && rm -rf ${EXTDIR}/lib/libpty
	cd ${WRKDIR} && ${CP} ${WRKSRC}/native/fsNotifier/linux/fsnotifier \
		${EXTDIR}/bin
	cd ${WRKDIR} && ${CP} ${WRKSRC}/native/breakgen/libbreakgen.so \
		${EXTDIR}/bin
	cd ${WRKDIR}/${EXTDIR} && ${FIND} * -print | \
		pax -rw -pmp ${DESTDIR}${PREFIX}/${PKGNAME}
	cd ${DESTDIR}${PREFIX}/${PKGNAME_NOREV}/lib && \
	${RM} -f snappy-java-1.0.5.jar && \
	${LN} -sf ${PREFIX}/lib/java/snappy-java/snappy-java.jar .

.include "../../mk/java-env.mk"
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"
@


1.5
log
@devel/intellij-idea-ce: Fix snappy-java10 dependency after changes to said.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2015/11/25 12:49:46 jperkin Exp $
@


1.4
log
@Remove mk/find-prefix.mk usage from the devel category.

The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2015/09/17 17:13:33 joerg Exp $
d6 1
d23 1
a23 1
DEPENDS+=	snappy-java10-[0-9]*:../../devel/snappy-java10
d80 1
a80 1
	${LN} -sf ${PREFIX}/lib/java/snappy-java/snappy-java-1.0.5.jar .
@


1.3
log
@Don't hard-code JDK position.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2014/04/24 16:19:40 ryoon Exp $
a24 3
FIND_PREFIX:=	ANTDIR=apache-ant
.include "../../mk/find-prefix.mk"

d47 1
a47 1
		${ANTDIR}/bin/ant
@


1.2
log
@Update to 13.1.2

* There is "Unable to load JNA library" runtime error...

Changelog:
enhancement and bugfixes
See http://confluence.jetbrains.com/display/IDEADEV/IntelliJ+IDEA+13.1.2+Release+Notes
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2013/11/24 10:44:34 ryoon Exp $
d65 1
a65 1
	-I ${BUILDLINK_PREFIX.openjdk7}/java/openjdk7/include/
@


1.1
log
@Import intellij-idea-ce-12.1.2 as devel/intellij-idea-ce.

IntelliJ IDEA Community Edition is the open source version of IntelliJ
IDEA, a premier IDE (Integrated Development Environment) for Java,
Groovy and other programming languages such as Scala or Clojure.

The Community Edition includes:

    An Intelligent code editor that has all the smarts for
    understanding Java, XML and Groovy code

    Refactorings, code inspections and intentions, super-fast
    navigation and search

    Testing frameworks integration: JUnit and TestNG

    Build tools support: Ant and Maven

    Popular version control systems integration: CVS, Subversion
    and Git

    Swing UI designer
@
text
@d1 1
a1 1
# $NetBSD$
d3 2
a4 2
VERSION=	12.1.2
DISTNAME=	ideaIC-${VERSION}-src
d15 1
a15 1
WRKSRC=		${WRKDIR}/ideaIC-129.354
d22 1
d44 1
a44 1
EXTDIR=			idea-IC-129.SNAPSHOT
d69 1
a69 1
	zcat ${WRKSRC}/out/artifacts/ideaIC-129.SNAPSHOT.tar.gz | tar xf -
d73 1
d80 3
@

