144a1ee175
since they always need a C compiler, even when the source code is completely in C++. For some other packages, stated in the comment that a C compiler is really not needed.
50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.13 2006/07/22 04:46:15 rillig Exp $
|
|
|
|
DISTNAME= pearpc-0.4
|
|
PKGREVISION= 1
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pearpc/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= ghen@NetBSD.org
|
|
HOMEPAGE= http://pearpc.sourceforge.net/
|
|
COMMENT= PowerPC emulator
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LANGUAGES= c c++
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
CONF_FILES= ${EGDIR}/ppccfg.example ${PKG_SYSCONFDIR}/ppccfg.conf
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !empty(MACHINE_ARCH:Mi386)
|
|
BUILD_DEPENDS+= nasm-[0-9]*:../../devel/nasm
|
|
CONFIGURE_ARGS+= --enable-cpu=jitc_x86
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --disable-debug
|
|
|
|
INSTALLATION_DIRS= share/${PKGBASE} bin
|
|
|
|
do-install:
|
|
${SED} -e "s,@PREFIX@,${PREFIX}," \
|
|
-e "s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR}," \
|
|
${FILESDIR}/pearpc.sh > ${WRKSRC}/pearpc.sh
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pearpc.sh ${PREFIX}/bin/pearpc
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/ppc ${PREFIX}/share/${PKGBASE}
|
|
${INSTALL_DATA} ${WRKSRC}/video.x ${PREFIX}/share/${PKGBASE}
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/ppccfg.example ${EGDIR}
|
|
|
|
SUBST_CLASSES+= conf
|
|
SUBST_STAGE.conf= post-patch
|
|
SUBST_FILES.conf= ppccfg.example
|
|
SUBST_SED.conf= -e "s|\"nvram\"|\"/tmp/nvram\"|"
|
|
SUBST_MESSAGE.conf= Fixing configuration file.
|
|
|
|
.include "options.mk"
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/x11.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|