2005-11-22 11:33:07 +00:00
|
|
|
# New ports collection makefile for: gngeo
|
|
|
|
# Date created: 17 Aug 2005
|
|
|
|
# Whom: Alejandro Pulver <alejandro@varnet.biz>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gngeo
|
2006-09-05 23:39:31 +00:00
|
|
|
PORTVERSION= 0.7
|
2010-03-28 06:47:48 +00:00
|
|
|
PORTREVISION= 7
|
2005-11-22 11:33:07 +00:00
|
|
|
CATEGORIES= emulators
|
2006-09-05 23:39:31 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_BERLIOS}
|
|
|
|
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
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
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
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2009-11-19 23:41:55 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2006-04-17 20:06:04 +00:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
CPPFLAGS= ${CFLAGS} `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include
|
|
|
|
LDFLAGS= `${SDL_CONFIG} --libs` -L${LOCALBASE}/lib
|
2006-04-17 20:06:04 +00:00
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
2005-11-22 11:33:07 +00:00
|
|
|
|
|
|
|
OPTIONS= GUI "Enable GUI support (experimental)" off \
|
|
|
|
I386ASM "Use i386 optimization" on \
|
|
|
|
RAZE "Use Raze as z80 emulator (only for i386)" on \
|
|
|
|
STAR "Use Starscream as 68k emulator (only for i386)" on
|
|
|
|
|
|
|
|
MAN1= gngeo.1
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-04-17 20:06:04 +00:00
|
|
|
.if !defined(WITHOUT_I386ASM) || !defined(WITHOUT_RAZE) || \
|
|
|
|
!defined(WITHOUT_STAR)
|
2005-11-22 11:33:07 +00:00
|
|
|
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GUI)
|
|
|
|
CONFIGURE_ARGS+= --enable-gui
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gui
|
|
|
|
.endif
|
|
|
|
|
2006-04-17 20:06:04 +00:00
|
|
|
.if !defined(WITHOUT_I386ASM) && ${ARCH} == "i386"
|
2005-11-22 11:33:07 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-i386asm
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-i386asm
|
|
|
|
.endif
|
|
|
|
|
2006-04-17 20:06:04 +00:00
|
|
|
.if !defined(WITHOUT_RAZE) && ${ARCH} == "i386"
|
2005-11-22 11:33:07 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-raze
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-mamez80
|
|
|
|
.endif
|
|
|
|
|
2006-04-17 20:06:04 +00:00
|
|
|
.if !defined(WITHOUT_STAR) && ${ARCH} == "i386"
|
2005-11-22 11:33:07 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-starscream
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-gen68k
|
|
|
|
.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:
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample_gngeorc ${EXAMPLESDIR}/gngeorc
|
|
|
|
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
|
|
|
|
|
2005-11-22 11:33:07 +00:00
|
|
|
.include <bsd.port.post.mk>
|