7f78417fed
CGEN (pronounced seejen) is a framework for developing generators of CPU-related tools such as assemblers, disassemblers and simulators. It specifies a description language for describing the architecture and organization of a CPU without reference to any particular application. Additional applications can be written within the framework. CGEN is written in Scheme and can be run under the GNU Guile interpreter. It is placed under a free software license.
39 lines
1,009 B
Makefile
39 lines
1,009 B
Makefile
# $NetBSD: Makefile,v 1.1 2013/10/12 08:39:02 ryoon Exp $
|
|
|
|
DISTNAME= cgen-20131001
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://sourceware.org/pub/cgen/snapshots/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= ryoon@NetBSD.org
|
|
HOMEPAGE= https://sourceware.org/cgen/
|
|
COMMENT= CGEN, the Cpu tools GENerator
|
|
LICENSE= gnu-gpl-v3 # with Red Hat exception
|
|
|
|
DEPENDS+= guile-[0-9]*:../../lang/guile
|
|
|
|
WRKSRC= ${WRKDIR}/src
|
|
|
|
CONFIGURE_DIRS= cgen
|
|
|
|
USE_TOOLS+= makeinfo pax
|
|
USE_LANGUAGES= c
|
|
|
|
GNU_CONFIGURE= yes
|
|
INFO_FILES= yes
|
|
|
|
BUILD_TARGET= info
|
|
INSTALL_TARGET= install-info
|
|
|
|
CGEN_DIR= share/cgen
|
|
INSTALLATION_DIRS+= ${CGEN_DIR}/cgen ${CGEN_DIR}/cpu
|
|
|
|
post-install:
|
|
cd ${WRKSRC}/${CONFIGURE_DIRS} && \
|
|
${FIND} . -type f \! \( -name '*.orig' -o -name 'Makefile' -o -name 'config*' \) -print | \
|
|
pax -rw ${DESTDIR}${PREFIX}/${CGEN_DIR}/cgen
|
|
cd ${WRKSRC}/cpu && \
|
|
${FIND} . -type f \! \( -name '*.orig' -o -name 'Makefile*' -o -name 'config*' \) -print | \
|
|
pax -rw ${DESTDIR}${PREFIX}/${CGEN_DIR}/cpu
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|