mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
0d2725682b
structure (i.e. include/SDL for includes and sdl-config for configuration binary) - Update graphics/sdl_ttf to version 2.0.8 - Update graphics/sdl_image to version 1.2.5 - Update audio/sdl_mixer to version 1.2.7 - Update net/sdl_net to version 1.2.6 - Update Mk/bsd.sdl.mk accordingly - Fix dependent ports to fit the new directory structure and avoid several API breakages - Bump up portrevisions for all dependent ports to allow them to be upgraded by portupgrade/portmaster etc tools Approved by: kris (portmgr), sem (mentor)
86 lines
2.0 KiB
Makefile
86 lines
2.0 KiB
Makefile
# New ports collection makefile for: gngeo
|
|
# Date created: 17 Aug 2005
|
|
# Whom: Alejandro Pulver <alejandro@varnet.biz>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gngeo
|
|
PORTVERSION= 0.7
|
|
PORTREVISION= 1
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= ${MASTER_SITE_BERLIOS}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
COMMENT= NeoGeo emulator
|
|
|
|
USE_GETOPT_LONG=yes
|
|
USE_GMAKE= yes
|
|
USE_SDL= image sdl
|
|
USE_GL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --program-transform-name="" --disable-gp2x
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
CPPFLAGS= ${CFLAGS} `${SDL_CONFIG} --cflags` -I${X11BASE}/include
|
|
LDFLAGS= `${SDL_CONFIG} --libs` -L${X11BASE}/lib
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
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>
|
|
|
|
.if ${OSVERSION} < 500000
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src__emu.h
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_I386ASM) || !defined(WITHOUT_RAZE) || \
|
|
!defined(WITHOUT_STAR)
|
|
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
|
|
.endif
|
|
|
|
.if defined(WITH_GUI)
|
|
CONFIGURE_ARGS+= --enable-gui
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-gui
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_I386ASM) && ${ARCH} == "i386"
|
|
CONFIGURE_ARGS+= --enable-i386asm
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-i386asm
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_RAZE) && ${ARCH} == "i386"
|
|
CONFIGURE_ARGS+= --enable-raze
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-mamez80
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_STAR) && ${ARCH} == "i386"
|
|
CONFIGURE_ARGS+= --enable-starscream
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-gen68k
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' \
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} \
|
|
${WRKSRC}/src/generator68k/Makefile.in
|
|
|
|
post-install:
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/sample_gngeorc ${EXAMPLESDIR}/gngeorc
|
|
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
|
|
|
|
.include <bsd.port.post.mk>
|