summaryrefslogtreecommitdiff
path: root/devel/gobo-eiffel/Makefile
blob: 26498a837f12ee1bc74332246e0565ba15cbf02b (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
# $NetBSD: Makefile,v 1.15 2006/03/04 21:29:15 jlam Exp $
#

DISTNAME=	gobo15
PKGNAME=	gobo-eiffel-1.5
PKGREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	http://www.gobosoft.com/download/ \
		http://www.eiffel-forum.org/archive/bezault/ \
		ftp://ftp.eiffel.com/pub/shelf/bezault/
EXTRACT_SUFX=	.zip

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.gobosoft.com/
COMMENT=	Portable Eiffel structure libraries and tools

BUILD_DEPENDS+=	smalleiffel-0.77:../../lang/smalleiffel

EXTRACT_OPTS_ZIP=	-uLa

WRKSRC=		${WRKDIR}
GOBO=		${PREFIX}/share/gobo-eiffel

INSTALLATION_DIRS=	bin

post-extract:
	${RM} -rf ${WRKSRC}/bin

pre-build:
	for file in `${FIND} ${WRKSRC} -name "se.sh" -print`; do \
		${SED} -e "s,compile,smalleiffel compile -verbose -O2," \
			$${file} > $${file}.tmp; \
		${RM} -f $${file}; \
		${MV} -f $${file}.tmp $${file}; \
	done

do-build:
	cd ${WRKSRC}/src/gelex; GOBO=${WRKSRC} ${SH} se.sh
	cd ${WRKSRC}/src/gepp; GOBO=${WRKSRC} ${SH} se.sh
	cd ${WRKSRC}/src/geyacc; GOBO=${WRKSRC} ${SH} se.sh

pre-install:
	for file in `${FIND} ${WRKSRC} -name "loadpath.se" -print`; do \
		${SED} -e "s,\$${GOBO},${GOBO}," $${file} > $${file}.tmp; \
		${RM} -f $${file}; \
		${MV} -f $${file}.tmp $${file}; \
	done

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/gelex/a.out ${PREFIX}/bin/gelex
	${INSTALL_PROGRAM} ${WRKSRC}/src/gepp/a.out ${PREFIX}/bin/gepp
	${INSTALL_PROGRAM} ${WRKSRC}/src/geyacc/a.out ${PREFIX}/bin/geyacc
	${INSTALL_DATA_DIR} ${GOBO}
	cd ${WRKSRC}; ${PAX} -rw library ${GOBO}
	${CHOWN} ${SHAREOWN}:${SHAREGRP} ${GOBO}
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gobo-eiffel
	cd ${WRKSRC}/doc; ${PAX} -rw * ${PREFIX}/share/doc/gobo-eiffel
	${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/gobo-eiffel
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gobo-eiffel
	cd ${WRKSRC}/example; ${PAX} -rw * ${PREFIX}/share/examples/gobo-eiffel
	${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/gobo-eiffel

.include "../../mk/bsd.pkg.mk"