pkgsrc/emulators/pearpc/Makefile
ryoon 2ffec2b258 Update to 0.5
* Use c++03 to fix build.
* ppc binary is not PaX MPROTECT safe.

Changelog:
version 0.5 (released 13. July 2011):
        - slightly better code for lmw/stmw opcodes
        - use "GNU as" instead of nasm
        - use -mdynamic-no-pic on *darwin
        - fixed some strict-aliasing problems
        - JITC: AMD64 support
        - compiles with gcc 4.3, 4.4, 4.5
2018-03-17 01:27:55 +00:00

51 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.20 2018/03/17 01:27:55 ryoon Exp $
DISTNAME= pearpc-0.5
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pearpc/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://pearpc.sourceforge.net/
COMMENT= PowerPC emulator
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++03
BUILDLINK_TRANSFORM+= rm:-Wall
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} ${EGDIR} bin
NOT_PAX_MPROTECT_SAFE+= share/pearpc/ppc
do-install:
${SED} -e "s,@PREFIX@,${PREFIX}," \
-e "s,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR}," \
${FILESDIR}/pearpc.sh > ${WRKSRC}/pearpc.sh
${INSTALL_SCRIPT} ${WRKSRC}/pearpc.sh ${DESTDIR}${PREFIX}/bin/pearpc
${INSTALL_PROGRAM} ${WRKSRC}/src/ppc ${DESTDIR}${PREFIX}/share/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/video.x ${DESTDIR}${PREFIX}/share/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/ppccfg.example ${DESTDIR}${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/bsd.pkg.mk"