2014-05-30 01:35:13 +02:00
|
|
|
# $NetBSD: Makefile,v 1.31 2014/05/29 23:36:43 wiz Exp $
|
2003-05-03 01:32:39 +02:00
|
|
|
|
2003-08-30 23:00:08 +02:00
|
|
|
DISTNAME= oo2c_${BITS}-2.0.11
|
|
|
|
PKGNAME= oo2c-2.0.11
|
2014-05-30 01:35:13 +02:00
|
|
|
PKGREVISION= 13
|
2003-05-03 01:32:39 +02:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ooc/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2003-08-30 23:00:08 +02:00
|
|
|
HOMEPAGE= http://ooc.sourceforge.net/
|
2003-05-03 01:32:39 +02:00
|
|
|
COMMENT= Optimizing Oberon-2 Compiler
|
|
|
|
|
2004-10-14 20:43:19 +02:00
|
|
|
DEPENDS+= libtool-base-[0-9]*:../../devel/libtool-base
|
2003-05-03 01:32:39 +02:00
|
|
|
DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
|
|
|
|
|
2004-03-13 17:41:04 +01:00
|
|
|
.if ${MACHINE_ARCH} == alpha || ${MACHINE_ARCH} == sparc64 \
|
|
|
|
|| ${MACHINE_ARCH} == x86_64
|
2003-05-17 23:00:11 +02:00
|
|
|
BITS=64
|
|
|
|
.else
|
|
|
|
BITS=32
|
|
|
|
.endif
|
|
|
|
|
2003-05-03 01:32:39 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2006-11-12 02:43:21 +01:00
|
|
|
USE_TOOLS+= gmake perl:run
|
2003-05-03 01:32:39 +02:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
|
2003-05-03 22:44:41 +02:00
|
|
|
EVAL_PREFIX+= LIBTOOL_PREFIX=libtool-base
|
|
|
|
LIBTOOL_PREFIX_DEFAULT= ${LOCALBASE}
|
|
|
|
|
2013-02-17 17:05:27 +01:00
|
|
|
TEST_TARGET= test
|
|
|
|
|
2007-03-24 20:21:18 +01:00
|
|
|
INSTALLATION_DIRS= share/doc/html share/emacs/site-lisp
|
|
|
|
|
2011-05-27 15:16:04 +02:00
|
|
|
SUBST_CLASSES+= destdir
|
|
|
|
SUBST_STAGE.destdir= pre-install
|
|
|
|
SUBST_FILES.destdir= oo2crc-install.xml
|
|
|
|
SUBST_SED.destdir= -e 's,>${PREFIX}/lib<,>${DESTDIR}${PREFIX}/lib<,g'
|
|
|
|
SUBST_SED.destdir+= -e 's,>${PREFIX}/lib/oo2c<,>${DESTDIR}${PREFIX}/lib/oo2c<,g'
|
|
|
|
SUBST_SED.destdir+= -e 's,>${PREFIX}/bin<,>${DESTDIR}${PREFIX}/bin<,g'
|
|
|
|
|
|
|
|
SUBST_CLASSES+= pkg-unwrap
|
|
|
|
SUBST_STAGE.pkg-unwrap= post-install
|
|
|
|
SUBST_FILES.pkg-unwrap= ${DESTDIR}${PREFIX}/lib/oo2c/oo2crc.xml
|
|
|
|
SUBST_SED.pkg-unwrap= -e 's,${WRAPPER_DIR},${LIBTOOL_PREFIX},g'
|
2003-05-03 22:44:41 +02:00
|
|
|
|
2003-05-03 01:32:39 +02:00
|
|
|
post-install:
|
2011-05-27 15:16:04 +02:00
|
|
|
${LN} -sf ${PREFIX}/lib/oo2c/oocdoc/html ${DESTDIR}${PREFIX}/share/doc/html/oo2c
|
|
|
|
${LN} -sf ${PREFIX}/lib/oo2c/emacs ${DESTDIR}${PREFIX}/share/emacs/site-lisp/oo2c
|
2003-05-03 01:32:39 +02:00
|
|
|
|
2004-04-28 07:06:28 +02:00
|
|
|
.include "../../devel/boehm-gc/buildlink3.mk"
|
2003-05-03 01:32:39 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|