1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

- Update to 0.7SP8

- Bump PORTREVISION. It's the same version but it has some improvements
- Clean up
- Take maintainership

Approved by:	tlp (maintainer via irc)
This commit is contained in:
Jose Alonso Cardenas Marquez 2007-10-09 07:35:36 +00:00
parent 31424eae3f
commit f10920752d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=201144
7 changed files with 60 additions and 136 deletions

View File

@ -5,59 +5,23 @@
# $FreeBSD$
#
PORTNAME= mupen64
PORTVERSION= 0.7
PORTREVISION= 3
CATEGORIES+= emulators
MASTER_SITES= http://mupen64.emulation64.com/files/0.4/
PORTREVISION= 4
PKGNAMESUFFIX= -glide
DISTNAME= glide64_0_7_ME
MAINTAINER?= tlp@LiquidX.org
COMMENT= Glide64 graphics plugin for Mupen64
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
USE_BZIP2= yes
USE_GMAKE= yes
USE_SDL= sdl
USE_GNOME= gtk12
USE_XLIB= yes
USE_GL= yes
USE_GCC= 3.4
ONLY_FOR_ARCHS= i386
FIXFILES= #
PLUGIN_NAME= Glide64
PLIST_FILES= share/mupen64/plugins/${PLUGIN_NAME}.so
PLIST_FILES+= share/mupen64/plugins/${PLUGIN_NAME}.ini
PLIST_DIRS= share/mupen64/plugins
PLIST_DIRS+= share/mupen64
FIXME2= wrapper/main.cpp
MASTERDIR= ${.CURDIR}/../mupen64-base
do-configure:
.for i in ${FIXME2}
${REINPLACE_CMD} -e 's|SDL/SDL.h|SDL.h|' ${WRKSRC}/${i}
.endfor
OPTIONS= #
do-install:
@${MKDIR} ${PREFIX}/share/mupen64/plugins
${INSTALL_SCRIPT} ${WRKSRC}/${PLUGIN_NAME}.so \
${PREFIX}/share/mupen64/plugins/
${INSTALL_DATA} ${WRKSRC}/${PLUGIN_NAME}.ini \
${PREFIX}/share/mupen64/plugins/
.include <bsd.port.pre.mk>
CFLAGS+= -Iwrapper/ `${SDL_CONFIG} --cflags`
CFLAGS+= -DUSE_GTK `${GTK_CONFIG} --cflags` -fPIC
CFLAGS+= -O3 -fomit-frame-pointer -funroll-loops -ffast-math -Wall -pipe
CFLAGS+= -DX86 -mcpu=athlon
LDFLAGS+= -lGL -lGLU -L${X11BASE}/lib `${SDL_CONFIG} --libs` -lc
MAKE_ARGS+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" LD="${CXX}"
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
.include "${MASTERDIR}/Makefile"

View File

@ -1,3 +1,3 @@
MD5 (glide64_0_7_ME.tar.bz2) = 3078c5c3f960728f99af825ab0af69e0
SHA256 (glide64_0_7_ME.tar.bz2) = 33c4805d01669b2342a2f8e6daf983c5fd0ddb56d233a0d8eb685afe6b01194a
SIZE (glide64_0_7_ME.tar.bz2) = 231051
MD5 (mupen64/glide64-0.7.SP8.tar.bz2) = feae89e1880309d9cdee2e925a1700cf
SHA256 (mupen64/glide64-0.7.SP8.tar.bz2) = bdf260a3317a229622f5e84ce5af924246f174356fe6ab1fba45c1e17b6374b3
SIZE (mupen64/glide64-0.7.SP8.tar.bz2) = 255222

View File

@ -1,19 +1,57 @@
--- Makefile.orig Sat Jul 3 23:07:06 2004
+++ Makefile Thu Aug 12 17:06:38 2004
@@ -1,11 +1,11 @@
--- Makefile.orig 2005-08-26 13:53:25.000000000 -0500
+++ Makefile 2007-10-09 01:54:33.000000000 -0500
@@ -1,22 +1,18 @@
ifneq ("$(shell grep GTK2 config.h)","\#define GTK2_SUPPORT 1")
-GTK_FLAGS = `gtk-config --cflags`
-GTK_LIBS = `gtk-config --libs`
+GTK_FLAGS = `${GTK_CONFIG} --cflags`
+GTK_LIBS = `${GTK_CONFIG} --libs`
else
GTK_FLAGS = `pkg-config gtk+-2.0 --cflags` -D_GTK2
GTK_LIBS = `pkg-config gtk+-2.0 --libs`
endif
-CC = gcc
+#CC = gcc
#CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -Iwrapper/ -g -mmmx -msse
#CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -Iwrapper/ -O3 -mcpu=athlon -ffast-math -funroll-loops -fomit-frame-pointer -msse -mmmx
-CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -Iwrapper/ -O3 -mcpu=athlon -ffast-math -funroll-loops -fomit-frame-pointer -msse -mmmx
-#CFLAGS = -DUSE_GTK `sdl-config --cflags` $(GTK_FLAGS) -Iwrapper/ -g -mmmx -msse
-#CFLAGS = -DUSE_GTK `sdl-config --cflags` $(GTK_FLAGS) -Iwrapper/ -O3 -mcpu=athlon -ffast-math -funroll-loops -fomit-frame-pointer -msse -mmmx
-#CFLAGS = -DUSE_GTK `sdl-config --cflags` $(GTK_FLAGS) -Iwrapper/ -O3 -mcpu=athlon -ffast-math -funroll-loops -fomit-frame-pointer -msse -mmmx
-#CFLAGS = -DUSE_GTK `sdl-config --cflags` $(GTK_FLAGS) -Iwrapper/ -g -Wall
-#CFLAGS = -DUSE_GTK `sdl-config --cflags` $(GTK_FLAGS) -Iwrapper/ -O3 -mcpu=athlon -ffast-math -funroll-loops -fomit-frame-pointer
-CFLAGS = -DUSE_GTK `sdl-config --cflags` $(GTK_FLAGS) -Iwrapper/ -O3 -mcpu=athlon -ffast-math -funroll-loops -fomit-frame-pointer
-CXX = g++
+#CFLAGS = -DUSE_GTK `sdl-config --cflags` `gtk-config --cflags` -Iwrapper/ -O3 -mcpu=athlon -ffast-math -funroll-loops -fomit-frame-pointer -msse -mmmx
+#CXX = g++
+CC ?= gcc
+CXX ?= g++
+
+CFLAGS = -DUSE_GTK `${SDL_CONFIG} --cflags` $(GTK_FLAGS) -Iwrapper/ -ffast-math -funroll-loops -fomit-frame-pointer
CPPFLAGS = $(CFLAGS)
-LD = g++
-LDFLAGS = -lGL -lGLU -L/usr/X11R6/lib -lSDL
+#LD = g++
+#LDFLAGS = -lGL -lGLU -L/usr/X11R6/lib -lSDL
-LDFLAGS = -lGL -lGLU -L/usr/X11R6/lib `sdl-config --libs`
+LD = ${CXX}
+LDFLAGS = -lGL -lGLU `${SDL_CONFIG} --libs`
OBJECTS = Main.o \
rdp.o \
@@ -41,11 +37,11 @@
wrapper/hq4x.o \
Config.o
-all: Glide64.so instruction
+all: plugins/Glide64.so instruction
-Glide64.so: font.h cursor.h $(OBJECTS)
+plugins/Glide64.so: font.h cursor.h $(OBJECTS)
+ mkdir -p plugins
$(LD) -shared -Wl,-Bsymbolic $(GTK_LIBS) $(LDFLAGS) -o $@ $(OBJECTS)
- strip --strip-all $@
font.h: compiletex
./compiletex font.tex font.h font
@@ -60,7 +56,7 @@
nasm -f elf $<
instruction:
- $(warning please copy Glide64.so AND Glide64.ini in the plugins/ folder of the emulator)
+ $(warning please copy plugins/Glide64.so AND Glide64.ini in the plugins/ folder of the emulator)
clean:
rm -rf $(OBJECTS) $(ALL) compiletex compiletex.o font.h cursor.h

View File

@ -1,41 +0,0 @@
--- wrapper/main.cpp.orig Fri Jul 2 21:57:48 2004
+++ wrapper/main.cpp Fri Aug 13 21:21:15 2004
@@ -3,7 +3,7 @@
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
-#include <SDL/SDL.h>
+#include <SDL.h>
#endif // _WIN32
#include "glide.h"
#include <stdlib.h>
@@ -20,9 +20,13 @@
#endif // _WIN32
+#ifndef __FreeBSD__
PFNGLACTIVETEXTUREARBPROC glActiveTextureARB;
+#endif
PFNGLBLENDFUNCSEPARATEEXTPROC glBlendFuncSeparateEXT;
+#ifndef __FreeBSD__
PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2fARB;
+#endif
PFNGLFOGCOORDFPROC glFogCoordfEXT;
#ifdef _WIN32
PFNWGLGETEXTENSIONSSTRINGARBPROC wglGetExtensionsStringARB;
@@ -501,6 +505,7 @@
if (isExtensionSupported("GL_ARB_texture_mirrored_repeat") == FALSE)
display_warning((unsigned char*)"Your video card doesn't support GL_ARB_texture_mirrored_repeat extension");
+#ifndef __FreeBSD__
#ifdef _WIN32
glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC)wglGetProcAddress("glActiveTextureARB");
glMultiTexCoord2fARB = (PFNGLMULTITEXCOORD2FARBPROC)wglGetProcAddress("glMultiTexCoord2fARB");
@@ -508,6 +513,7 @@
glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC)SDL_GL_GetProcAddress("glActiveTextureARB");
glMultiTexCoord2fARB = (PFNGLMULTITEXCOORD2FARBPROC)SDL_GL_GetProcAddress("glMultiTexCoord2fARB");
#endif // _WIN32
+#endif
glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &nbTextureUnits);
if (nbTextureUnits == 1) display_warning((unsigned char*)"You need a video card that has at least 2 texture units");

View File

@ -1,13 +0,0 @@
--- wrapper/main.h.orig Sun Jun 20 21:08:48 2004
+++ wrapper/main.h Fri Aug 13 21:17:22 2004
@@ -16,8 +16,10 @@
void updateCombinera(int i);
//#ifdef _WIN32
+#ifndef __FreeBSD__
extern PFNGLACTIVETEXTUREARBPROC glActiveTextureARB;
extern PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2fARB;
+#endif
extern PFNGLBLENDFUNCSEPARATEEXTPROC glBlendFuncSeparateEXT;
extern PFNGLFOGCOORDFPROC glFogCoordfEXT;
//#endif // _WIN32

View File

@ -1,15 +0,0 @@
Glide64 graphics plugin for Mupen64
-
Mupen64 is a highly portable Nintendo 64 emulator. It has been developed
on/for Linux originally but has already been ported successfully to other
operating systems. The program can easily be ported to all operating systems
supported by the SDL library.
In its current state, the emulator is highly compatible and uses a plugin
system. With the correct plugins ("correct" can be computer dependent), it
can achieve nearly perfect graphics and sound in many games.
WWW: http://mupen64.emulation64.com/
- Travis Poppe
tlp@liquidx.org

View File

@ -1,9 +0,0 @@
-------------------------------------------------------------------------------
If you have installed/upgraded any new plugins or are upgrading from a previous
version of Mupen64, please note that in order for these changes to take effect,
you -must- backup and then remove ~/.mupen64 first. After you have removed the
directory, run 'mupen64' to re-create it. Then, manually copy back your save
files/other data you need from the backup if necessary.
Enjoy!
-------------------------------------------------------------------------------