summaryrefslogtreecommitdiff
path: root/lang/oo2c/Makefile
blob: a7629c7abd82fe12ef7332de89125e266aa11e7c (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
# $NetBSD: Makefile,v 1.5 2003/06/02 01:18:58 jschauma Exp $

DISTNAME=		oo2c_${BITS}-2.0.9
PKGNAME=		oo2c-2.0.9
PKGREVISION=		1
CATEGORIES=		lang
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=ooc/}
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		tech-pkg@netbsd.org
HOMEPAGE=		http://ooc.sourceforge.net
COMMENT=		Optimizing Oberon-2 Compiler

DEPENDS+=		libtool-base-[0-9]*:../../devel/libtool
DEPENDS+=		libxslt-[0-9]*:../../textproc/libxslt

.if ${MACHINE_ARCH} == alpha || ${MACHINE_ARCH} == sparc64
BITS=64
.else
BITS=32
.endif

USE_BUILDLINK2=		yes
GNU_CONFIGURE=		yes
USE_GMAKE=		yes
USE_LIBTOOL=		yes

EVAL_PREFIX+=		LIBTOOL_PREFIX=libtool-base
LIBTOOL_PREFIX_DEFAULT=	${LOCALBASE}

pre-install:
	for f in ${WRKSRC}/rsrc/OOC/oo2crc.xml; do			\
		${SED} -e 's,${BUILDLINK_DIR},${LIBTOOL_PREFIX},g'	\
		$$f > $$f.tmp && ${MV} $$f.tmp $$f;			\
	done

post-install:
	cd ${PREFIX}/share/doc/html && ${LN} -sf ${PREFIX}/lib/oo2c/oocdoc/html oo2c
	${INSTALL_DATA_DIR} ${PREFIX}/share/emacs/site-lisp
	cd ${PREFIX}/share/emacs/site-lisp && ${LN} -sf ${PREFIX}/lib/oo2c/emacs oo2c

.include "../../devel/boehm-gc/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"