Update to 20020111
PR: ports/39215 Submitted by: Michael Nottebrock <michaelnottebrock@gmx.net>
This commit is contained in:
+30
-9
@@ -6,24 +6,45 @@
|
||||
#
|
||||
|
||||
PORTNAME= gngb
|
||||
PORTVERSION= 20010318
|
||||
PORTVERSION= 20020111
|
||||
CATEGORIES= emulators
|
||||
MASTER_SITES= http://frogus.multimania.com/
|
||||
DISTNAME= ${PORTNAME}_${PORTVERSION}_src
|
||||
MASTER_SITES= http://membres.lycos.fr/frogus/gngb/download/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
||||
|
||||
MAINTAINER= nakai@FreeBSD.org
|
||||
|
||||
LIB_DEPENDS= SDL-1.1.4:${PORTSDIR}/devel/sdl12
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
USE_XLIB= yes
|
||||
USE_X_PREFIX= yes
|
||||
CONFIGURE_ENV= CFLAGS="-I${X11BASE}/include" \
|
||||
LDFLAGS="-L${X11BASE}/lib"
|
||||
PORT_CFLAGS= -DSDL_YUV -I${LOCALBASE}/include -I${LOCALBASE}/include/SDL11 -I${X11BASE}/include
|
||||
|
||||
post-patch:
|
||||
perl -pi -e 's/<SDL\//<SDL11\//' ${WRKSRC}/*.[ch]
|
||||
pre-everything::
|
||||
.if !defined(WITH_OPTIMIZED_CFLAGS)
|
||||
@${ECHO_MSG} "You can enable additional compilation optimizations"
|
||||
@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
|
||||
.endif
|
||||
.if defined(WITH_GL)
|
||||
CONFIGURE_ARGS= --with-gl
|
||||
PORT_CFLAGS+= -DSDL_GL
|
||||
.else
|
||||
@${ECHO_MSG}
|
||||
@${ECHO_MSG} "You can enable OpenGL support by defining WITH_GL"
|
||||
@${ECHO_MSG}
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/gngb ${PREFIX}/bin
|
||||
pre-configure:
|
||||
@${PERL} -pi -e 's|sdl-config|sdl11-config|g' ${WRKSRC}/configure
|
||||
@${PERL} -pi -e 's|-lSDL|-lSDL-1.1|g' ${WRKSRC}/configure
|
||||
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
||||
|
||||
post-configure:
|
||||
.if !defined(WITH_OPTIMIZED_CFLAGS)
|
||||
@${PERL} -pi -e 's|(CFLAGS =).*|\1 ${PORT_CFLAGS} ${CFLAGS}|' ${WRKSRC}/src/Makefile
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -1 +1 @@
|
||||
MD5 (gngb_20010318_src.tar.gz) = cd7d0c1cd8852f49ae938f0f8c1ba9a5
|
||||
MD5 (gngb-20020111.tar.gz) = 549100377559045cf80d370de6203ba8
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
--- Makefile.orig Sun Apr 22 10:34:08 2001
|
||||
+++ Makefile Sun Apr 22 10:39:35 2001
|
||||
@@ -15,23 +15,23 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
-GL_MODE = 1
|
||||
+#GL_MODE = 1
|
||||
|
||||
CC = gcc
|
||||
INCDIRS = -I. -I/usr/include
|
||||
LIBDIRS = -L/usr/X11R6/lib
|
||||
DEBUG = -g
|
||||
PROFILE = -pg -O3
|
||||
-OPT = -O3 -mpentiumpro -Wno-unused -funroll-loops -fstrength-reduce -ffast-math -malign-functions=2 -malign-jumps=2 -malign-loops=2 -fomit-frame-pointer -Wall -g
|
||||
+OPT = -O3 -mpentiumpro -Wno-unused -funroll-loops -fstrength-reduce -ffast-math -malign-functions=2 -malign-jumps=2 -malign-loops=2 -fomit-frame-pointer -Wall -g -I/usr/local/include/
|
||||
OBJ = memory.o vram.o interrupt.o cpu.o rom.o sound.o serial.o frame_skip.o main.o
|
||||
DOBJ = debuger/memory.o debuger/vram.o debuger/interrupt.o debuger/cpu.o debuger/rom.o debuger/sound.o debuger/serial.o debuger/frame_skip.o debuger/log.o debuger/debuger.o
|
||||
|
||||
ifdef GL_MODE
|
||||
CFLAGS = $(OPT) -D_REENTRANT -DSDL_GL
|
||||
-LIBS = -lSDL -lpthread -lGL
|
||||
+LIBS = -lSDL-1.1 -lpthread -lGL -L/usr/local/lib
|
||||
else
|
||||
CFLAGS = $(OPT) -D_REENTRANT
|
||||
-LIBS = -lSDL -lpthread
|
||||
+LIBS = -lSDL-1.1 -L/usr/local/lib -lc_r
|
||||
endif
|
||||
|
||||
all : gngb
|
||||
Reference in New Issue
Block a user