freebsd-ports/emulators/pearpc/Makefile

62 lines
1.4 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: pearpc
# Date created: 22 May 2004
# Whom: Roman Bogorodskiy
#
# $FreeBSD$
#
PORTNAME= pearpc
PORTVERSION= 0.1.2
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
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
LDFLAGS="-L${X11BASE}/lib"
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.pre.mk>
.if defined(WITH_OPTIMIZED_CFLAGS)
CFLAGS+= -O3 -ffast-math
.else
CONFIGURE_ARGS+= --disable-fpo
.endif
# 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
pre-everything::
.if !defined(WITH_OPTIMIZED_CFLAGS)
@${ECHO_MSG} ""
@${ECHO_MSG} "You can do optimized build defining WITH_OPTIMIZED_CFLAGS=yes."
@${ECHO_MSG} ""
.endif
post-configure:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/src/Makefile
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
.include <bsd.port.post.mk>