summaryrefslogtreecommitdiff
path: root/x11/gtkada/Makefile
blob: 8351d7e3a8462504dee4149208be5a360cf849f6 (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
# $NetBSD: Makefile,v 1.7 2012/03/03 00:12:29 wiz Exp $
#

DISTNAME=	gtkada-${GTKADA_VERSION}
PKGREVISION=	4
CATEGORIES=	x11
MASTER_SITES=	http://downloads.dragonlace.net/src/ \
		http://dragonlace.mirrors.ada.cx/src/
EXTRACT_SUFX=	.tar.bz2
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
DISTFILES+=	gtkada-rm-${GTKADA_VERSION}${EXTRACT_SUFX}

MAINTAINER=	draco@marino.st
HOMEPAGE=	http://libre.adacore.com/libre/tools/gtkada/
COMMENT=	Ada graphical toolkit based on Gtk+
LICENSE=	gnu-gpl-v2

PKG_DESTDIR_SUPPORT=	user-destdir

GNU_CONFIGURE=		yes
USE_TOOLS+=		gmake pkg-config perl makeinfo
MAKE_JOBS_SAFE=		no

GTKADA_VERSION=		2.22
FULL_PATH=		/sbin:/bin:/usr/sbin:/usr/bin:${PREFIX}/sbin:${PREFIX}/bin:${PREFIX}/lib/pkgconfig
MY_CONFIGURE_ENV=	PATH=${FULL_PATH}
MY_CONFIGURE_ENV+=	CC=gnatgcc
CONFIGURE_ARGS+=	--disable-nls
PKGCONFIG_OVERRIDE+=	projects/gtkada.pc.in

post-wrapper:
	# We disable at least the wrapper binaries on all GNAT AUX ports to
	# avoid linkage and build problems.  In this case we need the wrappers
	# for the sed transformation script.
	${RM} ${WRKDIR}/.wrapper/bin/*

do-configure:
	# OpenGL, Gnome, and glade are normally detected automatically, but
	# at least with OpenGL, there is an installation bug.  Rather than
	# test everything, patch-ad just disables support for these features.
	cd ${WRKSRC} && ${SETENV} ${MY_CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS}

post-install:
	${TOUCH} ${DESTDIR}${PREFIX}/lib/gnat/gtkada/IGNORE.ME

# gtk2 includes atk, glib and pango among others
.include "../../x11/gtk2/buildlink3.mk"
.include "../../lang/gnat-aux/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"