2010-06-14 08:17:21 +02:00
|
|
|
# New ports collection makefile for: PearPC
|
2004-05-23 23:28:46 +02:00
|
|
|
# Date created: 22 May 2004
|
2010-06-14 08:17:21 +02:00
|
|
|
# Whom: Roman Bogorodskiy <novel@FreeBSD.org>
|
2004-05-23 23:28:46 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pearpc
|
2005-12-22 13:07:37 +01:00
|
|
|
PORTVERSION= 0.4
|
2008-03-25 00:21:25 +01:00
|
|
|
PORTREVISION= 4
|
2004-05-23 23:28:46 +02:00
|
|
|
CATEGORIES= emulators
|
2009-08-22 02:20:34 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}.0
|
2004-05-23 23:28:46 +02:00
|
|
|
|
2005-03-08 08:38:35 +01:00
|
|
|
MAINTAINER= novel@FreeBSD.org
|
2010-06-14 08:17:21 +02:00
|
|
|
COMMENT= PowerPC architecture emulator
|
2004-05-23 23:28:46 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2008-03-25 00:21:25 +01:00
|
|
|
USE_XORG= x11
|
2004-06-26 19:15:03 +02:00
|
|
|
MAN1= ppc.1
|
2010-06-14 08:17:21 +02:00
|
|
|
SUB_FILES= pkg-message
|
2004-06-26 19:15:03 +02:00
|
|
|
|
2004-08-19 21:52:57 +02:00
|
|
|
PLIST_FILES= bin/ppc etc/ppccfg.example %%DATADIR%%/video.x
|
|
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
|
2010-06-14 08:17:21 +02:00
|
|
|
OPTIONS= SDL "Use SDL for user interface" off \
|
|
|
|
OPTIMIZED_CFLAGS "Make an optimized build" off \
|
|
|
|
DEBUG "Make debug+profiled build" off \
|
|
|
|
JITC "Enable JITC support (x86 only)" off
|
2004-05-25 01:41:57 +02:00
|
|
|
|
2010-06-14 08:17:21 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2010-01-21 19:44:32 +01:00
|
|
|
|
2010-06-14 08:17:21 +02:00
|
|
|
.if ${ARCH} == "ia64"
|
|
|
|
BROKEN= Internal compiler error on ia64
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# GTK and QT interfaces are broken in this version
|
2004-08-19 21:52:57 +02:00
|
|
|
#
|
|
|
|
#.if defined(WITH_QT)
|
|
|
|
#CONFIGURE_ARGS+= --enable-ui=qt
|
|
|
|
#USE_QT_VER= 3
|
2007-02-13 01:16:29 +01:00
|
|
|
#QTDIR?= ${QT_PREFIX}
|
2004-08-19 21:52:57 +02:00
|
|
|
#CONFIGURE_ENV+= QTDIR="${QTDIR}"
|
|
|
|
#.else
|
|
|
|
#CONFIGURE_ARGS+= --enable-ui=nogui
|
|
|
|
#.endif
|
2004-05-25 17:43:14 +02:00
|
|
|
|
2004-10-13 02:09:07 +02:00
|
|
|
.if defined(WITH_SDL)
|
|
|
|
CONFIGURE_ARGS+= --enable-ui=sdl
|
|
|
|
USE_SDL= sdl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-ui=x11
|
|
|
|
.endif
|
|
|
|
|
2010-06-14 08:17:21 +02:00
|
|
|
.if defined(WITH_OPTIMIZED_CFLAGS)
|
|
|
|
CFLAGS+= -O3 -ffast-math
|
2005-10-29 05:44:42 +02:00
|
|
|
.else
|
2010-06-14 08:17:21 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-fpo
|
2005-10-29 05:44:42 +02:00
|
|
|
.endif
|
|
|
|
|
2010-06-14 08:17:21 +02:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --enable-profiling # implies --enable-debug
|
2005-10-28 08:18:06 +02:00
|
|
|
.endif
|
|
|
|
|
2010-06-14 08:17:21 +02:00
|
|
|
.if defined(WITH_JITC) && ${ARCH} == "i386"
|
|
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
2004-05-25 01:41:57 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-cpu=jitc_x86
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-cpu=generic
|
|
|
|
.endif
|
|
|
|
|
2005-11-17 14:22:30 +01:00
|
|
|
post-extract:
|
|
|
|
@${REINPLACE_CMD} -e 's|-g -O2||;s|-O2||' ${WRKSRC}/configure
|
2010-06-14 08:17:21 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|PROCESS_CPUTIME|THREAD_CPUTIME|' \
|
|
|
|
${WRKSRC}/src/system/osapi/posix/systimer.cc
|
|
|
|
@${REINPLACE_CMD} -e 's|video\.x"|${DATADIR}/&|' \
|
|
|
|
${WRKSRC}/ppccfg.example
|
2004-05-23 23:28:46 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${DATADIR}
|
2010-06-14 08:17:21 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/video.x ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ppccfg.example ${PREFIX}/etc
|
|
|
|
@${ECHO_CMD}
|
2004-05-23 23:28:46 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2010-06-14 08:17:21 +02:00
|
|
|
@${ECHO_CMD}
|
2004-05-23 23:28:46 +02:00
|
|
|
|
2004-05-25 01:41:57 +02:00
|
|
|
.include <bsd.port.post.mk>
|