summaryrefslogtreecommitdiff
path: root/devel/gps/Makefile
blob: c390f73b406faadcb9c58bd6176cbe7e3e74f4bd (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
56
57
58
59
60
61
62
63
64
65
# $NetBSD: Makefile,v 1.2 2011/04/22 13:43:19 obache Exp $
#

DISTNAME=	gps-${GPS_VERSION}
PKGREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	http://downloads.dragonlace.net/src/ \
		http://dragonlace.mirrors.ada.cx/src/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	draco@marino.st
HOMEPAGE=	http://www.adacore.com/home/products/gnatpro/toolsuite/gps/
COMMENT=	GNAT Programming Studio - IDE for Ada and many other languages
LICENSE=	gnu-gpl-v2

PKG_DESTDIR_SUPPORT=	user-destdir

GNU_CONFIGURE=		yes
USE_TOOLS+=		gmake sed perl awk

GPS_VERSION=		5.0.0
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
APP=			${PREFIX}/lib/gnat
TPLS=			${PREFIX}/share/gps/templates

.include "options.mk"

# Do to hardcoding on GPS' part, can't get python to work yet
CONFIGURE_ARGS+=	--with-gmp=${PREFIX}
CONFIGURE_ARGS+=	--with-python=no
CONFIGURE_ARGS+=	--enable-shared-python=yes

do-wrapper:
	# Disable problematic wrappers
	@${ECHO} "###  Pkgsrc wrappers disabled  ###"

do-configure:
	cd ${WRKSRC} && ${SETENV} ${MY_CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS}
do-build:
	cd ${WRKSRC} && ${SETENV} ADA_PROJECT_PATH=${APP} gmake default

# "scripts" directory does not exist, tests disable
#do-test:
#	cd ${WRKSRC}/scripts && ./testsuites
#test-clean:
#	cd ${WRKSRC}/scripts && ./testsuites clean

post-install:
	${TOUCH} ${DESTDIR}${PREFIX}/share/doc/gps/pdf/IGNORE.ME
	${TOUCH} ${DESTDIR}${PREFIX}/share/doc/gps/txt/IGNORE.ME
	${TOUCH} ${DESTDIR}${PREFIX}/share/examples/gps/tutorial/matrix_handling/IGNORE.ME
	${TOUCH} ${DESTDIR}${TPLS}/ajis_hello/obj/IGNORE.ME
	${TOUCH} ${DESTDIR}${TPLS}/ajis_hello/bin/IGNORE.ME
	${TOUCH} ${DESTDIR}${TPLS}/ajis_hello/binding/IGNORE.ME
	${TOUCH} ${DESTDIR}${TPLS}/gtkada_minimal/obj/IGNORE.ME
	${TOUCH} ${DESTDIR}${TPLS}/simple_project/obj/IGNORE.ME
	${STRIP} ${DESTDIR}${PREFIX}/bin/gps

.include "../../x11/gtkada/buildlink3.mk"
.include "../../textproc/xmlada/buildlink3.mk"
.include "../../devel/gprbuild-aux/buildlink3.mk"
#.include "../../lang/python26/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"