summaryrefslogtreecommitdiff
path: root/lang/jgnat/Makefile
blob: 4fa172d05093472a9e3f11e3d876c0e5741307ae (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
# New ports collection makefile for:	jgnat
# Date created:         8 Apr 2000
# Whom:                 Samuel Tardieu <sam@inf.enst.fr>
#
# $FreeBSD$
#

PORTNAME=	jgnat
PORTVERSION=	1.1.p
PORTREVISION=	1
CATEGORIES=	lang java
MASTER_SITES=	ftp://cs.nyu.edu/pub/gnat/jgnat/jgnat-1.1p/split-1.1p/ \
		ftp://ftp.cdrom.com/pub/languages/ada/compiler/gnat/jgnat/jgnat-1.1p/split-1.1p/ \
		ftp://wuarchive.wustl.edu/languages/ada/compiler/gnat/jgnat/jgnat-1.1p/split-1.1p/ \
		ftp://ftp.cs.kuleuven.ac.be/pub/Ada-Belgium/mirrors/cs.nyu.edu/pub/gnat/jgnat/jgnat-1.1p/split-1.1p/ \
		ftp://ftp.cs.tu-berlin.de/pub/gnat/jgnat/jgnat-1.1p/split-1.1p/ \
		ftp://ftp.informatik.rwth-aachen.de/pub/mirror/cs.nyu.edu/pub/gnat/jgnat/jgnat-1.1p/split-1.1p/ \
		ftp://ftp.lip6.fr/pub/gnat/jgnat/jgnat-1.1p/split-1.1p/ \
		ftp://ftp.cnam.fr/pub/Ada/PAL/compiler/gnat/jgnat/jgnat-1.1p/split-1.1p/ \
		ftp://ftp.fsz.bme.hu/pub/ada/gnat/jgnat/jgnat-1.1p/split-1.1p/
DISTNAME=	${PORTNAME}-${PORTVERSION:C/\.([^\.]+)$/\1/}-src
EXTRACT_SUFX=	.tgz

MAINTAINER=	jmcoopr@webmail.bmi.net

BUILD_DEPENDS=	${LOCALBASE}/bin/adagcc:${PORTSDIR}/lang/gnat \
		${LOCALBASE}/jdk1.2.2/bin/javac:${PORTSDIR}/java/jdk12

USE_GMAKE=	yes

WRKSRC=		${WRKDIR}/${DISTNAME:C@-([^\-]+)$@/\1@}

.include <bsd.port.pre.mk>

LIBDIR=		${PREFIX}/lib/jgnat
ADAINCDIR=	${LIBDIR}/adainclude
ADALIBDIR=	${LIBDIR}/adalib
JARDIR=		${PREFIX}/share/java/classes

do-install:
.for dir in ${LIBDIR} ${ADAINCDIR} ${ADALIBDIR} ${JARDIR}
	@${MKDIR} ${dir}
.endfor
	@${INSTALL_PROGRAM} ${WRKSRC}/../bin/* ${PREFIX}/bin
	@${INSTALL_DATA} ${WRKSRC}/../lib/jgnat.jar ${JARDIR}
	@${INSTALL_DATA} ${WRKSRC}/../lib/jgnat/adainclude/* ${ADAINCDIR}
	@${INSTALL_DATA} ${WRKSRC}/../lib/jgnat/adalib/* ${ADALIBDIR}
	@${CHMOD} a-r ${ADALIBDIR}/*.ali

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>