summaryrefslogtreecommitdiff
path: root/x11-toolkits/gtkada-gcc/Makefile
blob: 05b74861b9416659b5615726eedea2de86372de1 (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:   gtkada-gcc
# Date Created:			24 Dec 2006
# Whom:				Petr Holub <hopet@ics.muni.cz>
#
# $FreeBSD$
#

PORTNAME=	gtkada
PORTVERSION=	2.8.1
PORTREVISION=	2
CATEGORIES=	x11-toolkits
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	gnuada
PKGNAMESUFFIX=	-gcc
DISTNAME=	gnat-gcc-gtkada-4.1.1_2.8.1-r6.src
EXTRACT_SUFX=	.rpm

MAINTAINER=	hopet@ics.muni.cz
COMMENT=	Gtk2 binding for lang/gnat-gcc41 port of GNAT Ada compiler

BUILD_DEPENDS=	${LOCALBASE}/bin/gcc41/gcc41:${PORTSDIR}/lang/gnat-gcc41

EXTRACT_DEPENDS=	rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio

WRKSRC=		${WRKDIR}/GtkAda-2_8_1

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

CONFIGURE_ENV+=	PATH=${LOCALBASE}/bin/gcc41:${PATH} CC=${LOCALBASE}/bin/gcc41/gcc41
MAKE_ENV+=	PATH=${LOCALBASE}/bin/gcc41:${PATH} CC=${LOCALBASE}/bin/gcc41/gcc41
CONFIGURE_ARGS=	--with-GL=GL

USE_GL=		gl glu
USE_GNOME=	gnomehack gtk20 libglade2
USE_GMAKE=	yes
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes

#EXAMPLESDIR=	${DATADIR}/examples

do-extract:
	if [ ! -d ${WRKDIR} ]; then \
		${MKDIR} ${WRKDIR}; \
	fi
	( cd ${WRKDIR} && \
	rpm2cpio.pl <${DISTDIR}/gnat-gcc-gtkada-4.1.1_2.8.1-r6.src.rpm | ${CPIO} -i GtkAda-2_8_1.tar.bz2 && \
	tar jxf GtkAda-2_8_1.tar.bz2 )

post-patch:
	@${REINPLACE_CMD} -e 's|lib/pkgconfig|libdata/pkgconfig|' ${WRKSRC}/projects/Makefile

.include <bsd.port.mk>