summaryrefslogtreecommitdiff
path: root/devel/gentle/Makefile
blob: 7c7fc46d377f41f21dab4d8a8ab36afd68b13bd6 (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
# $NetBSD: Makefile,v 1.8 2010/02/19 22:27:24 joerg Exp $
#

DISTNAME=		gentle-97
PKGREVISION=		1
CATEGORIES=		devel
MASTER_SITES=		http://gentle.compilertools.net/

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

PKG_DESTDIR_SUPPORT=	user-destdir
NOT_FOR_PLATFORM=	${LP64PLATFORMS}

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

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