summaryrefslogtreecommitdiff
path: root/devel/florist/Makefile
blob: da11e427859528705b46ffe528629ae9635cd306 (plain)
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
# $NetBSD: Makefile,v 1.1.1.1 2004/06/03 10:07:27 shannonjr Exp $
#

DISTNAME=		florist-3.15p-src
PKGNAME=		florist-3.15p
CATEGORIES=		devel
MASTER_SITES=		ftp://ftp.cs.nyu.edu/pub/gnat/3.15p/
EXTRACT_SUFX=		.tgz

MAINTAINER=		shannonjr@NetBSD.org
HOMEPAGE=		ftp://ftp.cs.nyu.edu/pub/gnat/3.15p/
COMMENT=		FSU implementation of POSIX.5 (Ada binding)

USE_BUILDLINK3=		yes
USE_PKGLOCALEDIR=	yes
GNU_CONFIGURE=		yes
USE_AUTOCONF=		yes
AUTOCONF_REQD=		2.12
USE_GNU_TOOLS+=		make

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

# This package requires an Ada compiler. Two are available:
# 1) gcc-3.4-ada and 2) gcc-3.4 built with Ada option
# If USE_GCC_34=YES this package will use gcc-3.4. Otherwise,
# it will use gcc-3.4-ada
BUILD_DEFS=	USE_GCC_34
USE_GCC_34?=	NO

post-extract:
	${CP} ${FILESDIR}/pconfig.NetBSD ${WRKSRC}/configs

pre-configure:
.if !empty(USE_GCC_34:M[Yy][Ee][Ss])
.  include "../../lang/gcc-3.4/preconfigure.mk"
.else
.  include "../../lang/gcc-3.4-ada/preconfigure.mk"
.endif
	cd ${WRKSRC}; ${AUTOCONF}

do-install:
	@${MKDIR} ${PREFIX}/lib/florist
	@${INSTALL_DATA} ${WRKSRC}/floristlib/*.ad[sb] \
		${WRKSRC}/floristlib/*.ali \
		${PREFIX}/lib/florist
	@${INSTALL_DATA} ${WRKSRC}/floristlib/libflorist.a ${PREFIX}/lib

.if !empty(USE_GCC_34:M[Yy][Ee][Ss])
.  include "../../lang/gcc-3.4/buildlink3.mk"
.else
.  include "../../lang/gcc-3.4-ada/buildlink3.mk"
.endif
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/autoconf.mk"
.include "../../mk/bsd.pkg.mk"