2004-05-23 23:28:46 +02:00
|
|
|
# New ports collection makefile for: pearpc
|
|
|
|
# Date created: 22 May 2004
|
|
|
|
# Whom: Roman Bogorodskiy
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pearpc
|
2004-06-17 07:54:45 +02:00
|
|
|
PORTVERSION= 0.2.0
|
2004-05-23 23:28:46 +02:00
|
|
|
CATEGORIES= emulators
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= bogorodskiy@inbox.ru
|
|
|
|
COMMENT= PowerPC emulator
|
|
|
|
|
|
|
|
USE_XLIB= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2004-06-17 07:54:45 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-05-23 23:28:46 +02:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
2004-06-26 19:15:03 +02:00
|
|
|
MAN1= ppc.1
|
|
|
|
|
2004-05-25 01:41:57 +02:00
|
|
|
.if defined(WITH_OPTIMIZED_CFLAGS)
|
|
|
|
CFLAGS+= -O3 -ffast-math
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-fpo
|
|
|
|
.endif
|
|
|
|
|
2004-05-25 17:43:14 +02:00
|
|
|
.if defined(WITH_QT)
|
|
|
|
CONFIGURE_ARGS+= --enable-gui=qt
|
|
|
|
USE_QT_VER= 3
|
2004-06-01 00:14:37 +02:00
|
|
|
QTDIR?= ${X11BASE}
|
|
|
|
CONFIGURE_ENV+= QTDIR="${QTDIR}"
|
2004-05-25 17:43:14 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-gui=nogui
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-05-25 01:41:57 +02:00
|
|
|
# jitc_x86 is avaible only on x86
|
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
.if !defined(WITH_JITC)
|
|
|
|
CONFIGURE_ARGS+= --enable-cpu=generic
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-cpu=jitc_x86
|
|
|
|
.endif # WITH_JITC
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-cpu=generic
|
|
|
|
.endif
|
|
|
|
|
2004-05-31 16:02:28 +02:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
USE_GCC= 3.3
|
|
|
|
CFLAGS+= -DFREEBSD_MB_SUPPORT
|
|
|
|
.endif
|
|
|
|
|
2004-05-25 01:41:57 +02:00
|
|
|
pre-everything::
|
|
|
|
.if !defined(WITH_OPTIMIZED_CFLAGS)
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "You can do optimized build defining WITH_OPTIMIZED_CFLAGS=yes."
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.endif
|
|
|
|
|
2004-07-01 10:04:54 +02:00
|
|
|
post-patch:
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
@${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' ${WRKSRC}/src/system/posix/types.h
|
|
|
|
.endif
|
|
|
|
|
2004-05-23 23:28:46 +02:00
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/src/Makefile
|
2004-05-31 16:02:28 +02:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
@${CP} ${FILESDIR}/wcrtomb.c ${FILESDIR}/mbrtowc.c \
|
|
|
|
${WRKSRC}/
|
|
|
|
.endif
|
2004-05-23 23:28:46 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/video.x ${DATADIR}/video.x
|
|
|
|
@${SED} -e 's,PREFIX,${PREFIX},g' ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/ppccfg.example ${PREFIX}/etc/ppccfg.example
|
|
|
|
|
2004-05-25 01:41:57 +02:00
|
|
|
.include <bsd.port.post.mk>
|