aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/gtkada-gps/Makefile
blob: 681911b7e9c54d26046fc4e96cf03b5fe97f01fc (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
54
55
56
57
58
# New ports collection makefile for: gtkada-gps
# Date created:		31 Dec 2006
# Whom:			John Merryweather Cooper
#
# $FreeBSD$
#

PORTNAME=	gtkada-gps
PORTVERSION=	3.1.3
CATEGORIES=	x11-toolkits
MASTER_SITES=	http://libre.adacore.com/
EXTRACT_SUFX=	-src.tgz

MAINTAINER=	john_m_cooper@yahoo.com
COMMENT=	GNOME Gtk2 Ada Binding

BUILD_DEPENDS=	gnatmake:${PORTSDIR}/lang/gnat

CONFLICTS=	gtkada-[0-9]* gtkada-devel-[0-9]* gtkada-gcc-[0-9]*

USE_GNOME=	gtk20 libglade2
USE_GMAKE=	yes

.include <bsd.port.pre.mk>

USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes

# Check for GNAT sources.
.if !exists(${DISTDIR}/${DISTFILE}) && !defined(PACKAGE_BUILDING)
ECHO_MSG=	${PRINTF}
IGNORE=Because of licensing and registration restrictions, you must fetch\n \
	the source distribution manually.  Please access\n \
	http://libre.adacore.com/\ with a web browser, register\n \
	(It's free!) and log in.  Download the source files:\n\n \
	\t${DISTFILE}\n\n \
	and place them in ${DISTDIR}\n
	${ECHO_MSG} ${IGNORE}
.endif

WRKSRC=		${WRKDIR}/GtkAda-2.4.2
DOCSDIR=	${PREFIX}/share/doc/gtkada
EXAMPLESDIR=	${PREFIX}/share/examples/gtkada
MAKE_ENV=	"MAKE=${GMAKE}"

# This explicit call avoids some permission problems that seem insolveable
# any other way
do-install:
	@(cd ${WRKSRC} && \
		${SETENV} ${MAKE_ENV} ${GMAKE} -C ${WRKSRC} \
		${MAKE_ARGS} install)
.if !defined(NOPORTDOCS)
	@(cd ${WRKSRC} && \
		${SETENV} ${MAKE_ENV} ${GMAKE} -C ${WRKSRC} \
		${MAKE_ARGS} install-doc)
.endif

.include <bsd.port.post.mk>