2013-04-28 21:20:28 +00:00
|
|
|
# Created by: Alejandro Pulver <alejandro@varnet.biz>
|
2005-11-22 11:33:07 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gngeo
|
2014-04-06 03:25:39 +00:00
|
|
|
PORTVERSION= 0.8
|
2005-11-22 11:33:07 +00:00
|
|
|
CATEGORIES= emulators
|
2014-04-06 03:25:39 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
2006-09-05 23:39:31 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2005-11-22 11:33:07 +00:00
|
|
|
|
2006-07-23 02:45:24 +00:00
|
|
|
MAINTAINER= acm@FreeBSD.org
|
2005-11-22 11:33:07 +00:00
|
|
|
COMMENT= NeoGeo emulator
|
|
|
|
|
2014-04-06 03:25:39 +00:00
|
|
|
USES= gmake
|
2005-11-22 11:33:07 +00:00
|
|
|
USE_SDL= image sdl
|
|
|
|
USE_GL= yes
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2006-04-17 20:06:04 +00:00
|
|
|
CONFIGURE_ARGS= --program-transform-name="" --disable-gp2x
|
2009-11-19 23:41:55 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2006-04-17 20:06:04 +00:00
|
|
|
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= ${CFLAGS} `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= `${SDL_CONFIG} --libs` -L${LOCALBASE}/lib
|
2013-07-31 14:39:37 +00:00
|
|
|
USE_CSTD= gnu89
|
|
|
|
MAKE_ARGS+= CC_FOR_BUILD=${CC}
|
2006-04-17 20:06:04 +00:00
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
2005-11-22 11:33:07 +00:00
|
|
|
|
2013-04-28 21:20:28 +00:00
|
|
|
OPTIONS_DEFINE_i386= ASM RAZE STAR
|
|
|
|
OPTIONS_DEFAULT_i386= ASM RAZE STAR
|
|
|
|
RAZE_DESC= Use Raze as z80 emulator
|
|
|
|
STAR_DESC= Use Starscream as 68k emulator
|
2005-11-22 11:33:07 +00:00
|
|
|
|
|
|
|
MAN1= gngeo.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-04-28 21:20:28 +00:00
|
|
|
.if ${PORT_OPTIONS:MI386ASM} || ${PORT_OPTIONS:MRAZE} || \
|
|
|
|
${PORT_OPTIONS:MSTAR}
|
2005-11-22 11:33:07 +00:00
|
|
|
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 21:20:28 +00:00
|
|
|
.if ${PORT_OPTIONS:MI386ASM}
|
2005-11-22 11:33:07 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-i386asm
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-i386asm
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 21:20:28 +00:00
|
|
|
.if ${PORT_OPTIONS:MRAZE}
|
2014-04-06 03:25:39 +00:00
|
|
|
CONFIGURE_ARGS+= --with-z80core=raze
|
2005-11-22 11:33:07 +00:00
|
|
|
.else
|
2014-04-06 03:25:39 +00:00
|
|
|
CONFIGURE_ARGS+= --with-z80core=mamez80
|
2005-11-22 11:33:07 +00:00
|
|
|
.endif
|
|
|
|
|
2013-04-28 21:20:28 +00:00
|
|
|
.if ${PORT_OPTIONS:MSTAR}
|
2014-04-06 03:25:39 +00:00
|
|
|
CONFIGURE_ARGS+= --with-m68kcore=starscream
|
2005-11-22 11:33:07 +00:00
|
|
|
.else
|
2014-04-06 03:25:39 +00:00
|
|
|
CONFIGURE_ARGS+= --with-m68kcore=gen68k
|
2005-11-22 11:33:07 +00:00
|
|
|
.endif
|
|
|
|
|
2006-04-17 20:06:04 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' \
|
2006-04-24 21:18:57 +00:00
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} \
|
|
|
|
${WRKSRC}/src/generator68k/Makefile.in
|
2006-04-17 20:06:04 +00:00
|
|
|
|
|
|
|
post-install:
|
2014-04-06 03:25:39 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample_gngeorc ${STAGEDIR}${EXAMPLESDIR}/gngeorc
|
2006-04-17 20:06:04 +00:00
|
|
|
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
|
|
|
|
|
2005-11-22 11:33:07 +00:00
|
|
|
.include <bsd.port.post.mk>
|