aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/gtkada/Makefile
blob: c0b1a17b66e3aaf22cb7368d3c37a34373255ba5 (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
59
# Created by: John Marino <marino@FreeBSD.org>

PORTNAME=	gtkada
PORTVERSION=	2.24.4.0
PORTREVISION=	6
CATEGORIES=	x11-toolkits
MASTER_SITES=	http://downloads.dragonlace.net/src/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
		gtkada-rm-${PORTVERSION}${EXTRACT_SUFX}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Ada graphical toolkit based on Gtk2+

LICENSE=	GPLv2

USES=		ada gmake gnome perl5 pkgconfig tar:bzip2
USE_PERL5=	build
USE_GNOME=	gtk20
GNU_CONFIGURE=	yes
ALL_TARGET=	src
NO_MTREE=	yes
PORTEXAMPLES=	*

MAKE_ENV+=	PROCESSORS=${MAKE_JOBS_NUMBER}

CONFLICTS_INSTALL=	gtkada3-*

PORTSCOUT=		ignore:1

OPTIONS_DEFINE=		NLS EXAMPLES

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+=	--enable-nls
USES+=			gettext
.else
CONFIGURE_ARGS+=	--disable-nls
.endif

.if ${PORT_OPTIONS:MEXAMPLES}
ALL_TARGET+= tests
.endif

post-patch:
	# fix for gcc-5
	@${REINPLACE_CMD} -e 's|inline gint roundint|gint roundint|' \
		${WRKSRC}/src/gtkextra/gtkplot*

do-build:
#	This target is recreated because -j cannot be set, but
#	MAKE_JOBS_SAFE=yes is needed for PROCESSORS value
	cd ${WRKSRC} && \
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET}

post-install:
	${RM} -r ${STAGEDIR}${PREFIX}/share/doc/gtkada/gtkada_ug/_sources

.include <bsd.port.mk>