pkgsrc-wip/scrc/Makefile
Makoto Fujiwara 32ce9c3a46 SpecC Reference Compiler from UC Irvine to simulate
Hardware Description in C-based language of SpecC.
(scrc-2.1 for now)
2010-08-31 11:53:59 +00:00

54 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2010/08/31 11:53:59 makoto Exp $
#
DISTNAME= scrc-2.1
CATEGORIES= cad
MASTER_SITES= ftp://ftp.cecs.uci.edu/pub/specc/reference/
MAINTAINER= makoto@ki.nu
HOMEPAGE= http://www.cecs.uci.edu/~specc/reference/
COMMENT= SpecC Reference Compiler
USE_LANGUAGES+= c++
USE_LANGUAGES+= c
PKG_DESTDIR_SUPPORT= user-destdir
# mkdir etc is hardcoded, not so easy to make it.
USE_TOOLS+= gmake gtar
DEPENDS+= bison>=1.35:../../devel/bison
DEPENDS+= unix2dos:../../converters/unix2dos
#ONLY_FOR_PLATFORM= NetBSD-*-i386
#ONLY_FOR_PLATFORM+= Linux-*-i[3-6]86
PLIST_SUBST+= SCRCPREF=${DISTNAME}
CHECK_SHLIBS= NO
#SPECIAL_PERMS=
.include "../../mk/bsd.prefs.mk"
do-build:
cd ${WRKSRC} && ${GMAKE} all
do-install:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${INSTALL_ENV} ${GMAKE} install
# post-install:
# (cd ${WRKSRC}; ${GMAKE} install)
# echo test
pre-configure:
${ECHO} \*\*\* pre-configure is running
(cd ${WRKSRC} ; \
for i in Makefile.macros src/Compiler/Makefile; do \
mv $$i $$i.bak ;\
sed -e 's|@@SPECC@@|${WRKSRC}|g' \
-e 's|@@PREFIX@@|${PREFIX}|g' \
-e 's|@@PKGNAME@@|${PKGNAME}|g' \
${WRKSRC}/$${i}.bak \
> ${WRKSRC}/$${i}; \
done; )
.include "../../mk/bsd.pkg.mk"