1 # $NetBSD: Makefile,v 1.26 2012/10/03 21:56:19 wiz Exp $
3 DISTNAME
= oo2c_
${BITS}-2.0.11
7 MASTER_SITES
= ${MASTER_SITE_SOURCEFORGE
:=ooc
/}
10 MAINTAINER
= pkgsrc-users@NetBSD.org
11 HOMEPAGE
= http
://ooc.sourceforge.net
/
12 COMMENT
= Optimizing Oberon-2 Compiler
14 DEPENDS
+= libtool-base-
[0-9]*:..
/..
/devel
/libtool-base
15 DEPENDS
+= libxslt-
[0-9]*:..
/..
/textproc
/libxslt
17 .if
${MACHINE_ARCH} == alpha ||
${MACHINE_ARCH} == sparc64 \
18 ||
${MACHINE_ARCH} == x86_64
25 USE_TOOLS
+= gmake perl
:run
28 EVAL_PREFIX
+= LIBTOOL_PREFIX
=libtool-base
29 LIBTOOL_PREFIX_DEFAULT
= ${LOCALBASE}
33 INSTALLATION_DIRS
= share
/doc
/html share
/emacs
/site-lisp
35 SUBST_CLASSES
+= destdir
36 SUBST_STAGE.destdir
= pre-install
37 SUBST_FILES.destdir
= oo2crc-install.xml
38 SUBST_SED.destdir
= -e
's,>${PREFIX}/lib<,>${DESTDIR}${PREFIX}/lib<,g'
39 SUBST_SED.destdir
+= -e
's,>${PREFIX}/lib/oo2c<,>${DESTDIR}${PREFIX}/lib/oo2c<,g'
40 SUBST_SED.destdir
+= -e
's,>${PREFIX}/bin<,>${DESTDIR}${PREFIX}/bin<,g'
42 SUBST_CLASSES
+= pkg-unwrap
43 SUBST_STAGE.pkg-unwrap
= post-install
44 SUBST_FILES.pkg-unwrap
= ${DESTDIR}${PREFIX}/lib
/oo2c
/oo2crc.xml
45 SUBST_SED.pkg-unwrap
= -e
's,${WRAPPER_DIR},${LIBTOOL_PREFIX},g'
48 ${LN} -sf
${PREFIX}/lib
/oo2c
/oocdoc
/html
${DESTDIR}${PREFIX}/share
/doc
/html
/oo2c
49 ${LN} -sf
${PREFIX}/lib
/oo2c
/emacs
${DESTDIR}${PREFIX}/share
/emacs
/site-lisp
/oo2c
51 .
include "../../devel/boehm-gc/buildlink3.mk"
52 .
include "../../mk/bsd.pkg.mk"