summaryrefslogtreecommitdiff
path: root/devel/gentle/Makefile
blob: 6e0158a5c2c922f5559f8b86299b8e54654cbc00 (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
# $NetBSD: Makefile,v 1.4 2005/10/23 14:11:10 rillig Exp $
#

DISTNAME=		gentle-97
CATEGORIES=		devel
MASTER_SITES=		ftp://ftp.cs.cuhk.hk/pub/Linux/devel/compiler-tools/

MAINTAINER=		MarkoSchuetz@web.de
HOMEPAGE=		http://gentle.compilertools.net/distribution.html
COMMENT=		Gentle Compiler Construction System

USE_LIBTOOL=		yes
INSTALLATION_DIRS=	bin lib

do-build:
	(cd ${WRKSRC}/gentle ; LIBTOOL=${LOCALBASE}/bin/libtool ./build)
	(cd ${WRKSRC}/lib ; LIBTOOL=${LOCALBASE}/bin/libtool ./build)
	(cd ${WRKSRC}/reflex ; LIBTOOL=${LOCALBASE}/bin/libtool ./build)

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/gentle/gentle ${PREFIX}/bin
	${INSTALL_LIB} ${WRKSRC}/gentle/grts.o ${PREFIX}/lib
	${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/lib/libgentle.la ${PREFIX}/lib
	${LIBTOOL} --mode=finish ${PREFIX}/lib
	${INSTALL_PROGRAM} ${WRKSRC}/reflex/reflex ${PREFIX}/bin
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/gentle/html
	(for i in ${WRKSRC}/html/* ; do \
		${INSTALL_DATA} $$i ${PREFIX}/share/doc/html/gentle/html ; \
	done)
	${INSTALL_DATA} ${WRKSRC}/BOOK.html ${PREFIX}/share/doc/html/gentle
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gentle
	${INSTALL_DATA} ${WRKSRC}/BOOK.ps ${PREFIX}/share/doc/gentle
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gentle
	(for i in calc flat micro nested polish virtual ; do \
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gentle/$$i ; \
	for j in ${WRKSRC}/examples/$$i/* ; do \
	${INSTALL_DATA} $$j ${PREFIX}/share/examples/gentle/$$i ; \
	done ; \
	done)
	${INSTALL_DATA} ${WRKSRC}/examples/README ${PREFIX}/share/examples/gentle

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