mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Add osmose 0.6.30, sega Master System emulator.
PR: ports/84195 Submitted by: Alejandro Pulver <alejandro@varnet.biz>
This commit is contained in:
parent
5e3cc60a87
commit
b8330a16cf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=140303
@ -85,6 +85,7 @@
|
||||
SUBDIR += mupen64-sound
|
||||
SUBDIR += o2em
|
||||
SUBDIR += osf1_base
|
||||
SUBDIR += osmose
|
||||
SUBDIR += p-interp
|
||||
SUBDIR += pcemu
|
||||
SUBDIR += pearpc
|
||||
|
63
emulators/osmose/Makefile
Normal file
63
emulators/osmose/Makefile
Normal file
@ -0,0 +1,63 @@
|
||||
# New ports collection makefile for: osmose
|
||||
# Date created: 27 Jul 2005
|
||||
# Whom: Alejandro Pulver <alejandro@varnet.biz>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= osmose
|
||||
PORTVERSION= 0.6.30
|
||||
CATEGORIES= emulators
|
||||
MASTER_SITES= http://bcz.emu-france.com/osmose/
|
||||
DISTNAME= ${PORTNAME}-final-src
|
||||
|
||||
MAINTAINER= alejandro@varnet.biz
|
||||
COMMENT= Sega Master System emulator
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
|
||||
USE_ZIP= yes
|
||||
USE_GMAKE= yes
|
||||
USE_SDL= sdl
|
||||
USE_REINPLACE= yes
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
OPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on
|
||||
|
||||
PLIST_FILES= bin/osmose
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
PLIST_FILES+= %%DOCSDIR%%/readme.txt
|
||||
PLIST_DIRS= %%DOCSDIR%%
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 500000
|
||||
EXTRA_PATCHES= ${FILESDIR}/extra-patch-freebsd4
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
# Fix Makefile
|
||||
@${REINPLACE_CMD} -e 's|\(-Dlinux\)|${CFLAGS} \1| ; \
|
||||
s|sdl-config|${SDL_CONFIG}|' \
|
||||
${WRKSRC}/${MAKEFILE}
|
||||
|
||||
# Fix SDL include statement
|
||||
@${REINPLACE_CMD} -e 's|\(#include.*\)SDL/\(SDL.*\)|\1\2|' \
|
||||
${WRKSRC}/*.h
|
||||
|
||||
# Enable/disable compilation optimizations
|
||||
.if defined(WITHOUT_OPTIMIZED_CFLAGS)
|
||||
@${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/${MAKEFILE}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
emulators/osmose/distinfo
Normal file
2
emulators/osmose/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (osmose-final-src.zip) = 4607029f0b9332d9e0bc0555f542dc88
|
||||
SIZE (osmose-final-src.zip) = 297235
|
110
emulators/osmose/files/extra-patch-freebsd4
Normal file
110
emulators/osmose/files/extra-patch-freebsd4
Normal file
@ -0,0 +1,110 @@
|
||||
--- InputDevice.h.orig Wed Jul 27 23:08:41 2005
|
||||
+++ InputDevice.h Wed Jul 27 23:09:05 2005
|
||||
@@ -17,6 +17,7 @@
|
||||
#ifndef INPUT_DEVICE_H
|
||||
#define INPUT_DEVICE_H
|
||||
|
||||
+#include <string>
|
||||
#include <SDL/SDL.h>
|
||||
#include <iostream>
|
||||
|
||||
--- Options.h.orig Wed Jul 27 22:33:50 2005
|
||||
+++ Options.h Wed Jul 27 22:34:08 2005
|
||||
@@ -14,6 +14,7 @@
|
||||
#ifndef OPTIONS_H
|
||||
#define OPTIONS_H
|
||||
|
||||
+#include <string.h>
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include "Bits.h"
|
||||
--- OsmoseCore.cpp.orig Wed Jul 27 03:33:44 2005
|
||||
+++ OsmoseCore.cpp Wed Jul 27 03:34:13 2005
|
||||
@@ -12,6 +12,7 @@
|
||||
*
|
||||
* URL: http://bcz.emu-france.com/
|
||||
*****************************************************************************/
|
||||
+#include <string>
|
||||
#include "OsmoseCore.h"
|
||||
|
||||
#define TIME_LIMITE 7*60
|
||||
--- SN76489.h.orig Wed Jul 27 22:26:47 2005
|
||||
+++ SN76489.h Wed Jul 27 22:31:08 2005
|
||||
@@ -13,6 +13,7 @@
|
||||
*****************************************************************************/
|
||||
#ifndef SN76489_H
|
||||
#define SN76489_H
|
||||
+#include <string.h>
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
#include <SDL/SDL.h>
|
||||
--- TextWriter.h.orig Wed Jul 27 23:06:45 2005
|
||||
+++ TextWriter.h Wed Jul 27 23:06:53 2005
|
||||
@@ -15,6 +15,7 @@
|
||||
#ifndef TEXT_WRITER_H
|
||||
#define TEXT_WRITER_H
|
||||
|
||||
+#include <string>
|
||||
#include <iomanip>
|
||||
#include <SDL/SDL.h>
|
||||
|
||||
--- VDP.h.orig Wed Jul 27 21:55:01 2005
|
||||
+++ VDP.h Wed Jul 27 21:55:33 2005
|
||||
@@ -13,6 +13,7 @@
|
||||
*****************************************************************************/
|
||||
#ifndef VDP_H
|
||||
#define VDP_H
|
||||
+#include <string.h>
|
||||
#include <SDL/SDL.h>
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
--- VideoFilter.h.orig Wed Jul 27 23:04:17 2005
|
||||
+++ VideoFilter.h Wed Jul 27 23:04:36 2005
|
||||
@@ -35,6 +35,7 @@
|
||||
#ifndef VIDEO_FILTER_H
|
||||
#define VIDEO_FILTER_H
|
||||
|
||||
+#include <string>
|
||||
#include <SDL/SDL.h>
|
||||
#include <iostream>
|
||||
|
||||
--- main.cpp.orig Sun May 22 19:43:10 2005
|
||||
+++ main.cpp Wed Jul 27 03:20:22 2005
|
||||
@@ -31,6 +31,7 @@
|
||||
* URL: http://bcz.emu-france.com/
|
||||
*****************************************************************************/
|
||||
|
||||
+#include <string>
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include "OsmoseCore.h"
|
||||
@@ -155,7 +156,7 @@
|
||||
// If actual argument nbr < argument number eg is there any args ?
|
||||
if (i < a-1)
|
||||
{
|
||||
- opt.acceleration = atof( rv[i+1]);
|
||||
+ opt.acceleration = strtod(rv[i+1], (char **)NULL);
|
||||
if (opt.acceleration == 0)
|
||||
{
|
||||
cerr << "No valid acceleration parameter was given. Using default " << (float)DEFAULT_ACCELERATION << " value." << endl;
|
||||
--- MemoryMapper.h.orig Mon Apr 11 20:07:36 2005
|
||||
+++ MemoryMapper.h Thu Jul 28 07:57:32 2005
|
||||
@@ -14,6 +14,8 @@
|
||||
*****************************************************************************/
|
||||
#ifndef MEMORY_MAPPER_H
|
||||
#define MEMORY_MAPPER_H
|
||||
+#include <stdlib.h>
|
||||
+#include <string>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <iomanip>
|
||||
--- OsmoseConfiguration.h.orig Mon Jan 24 11:28:46 2005
|
||||
+++ OsmoseConfiguration.h Thu Jul 28 07:59:39 2005
|
||||
@@ -15,6 +15,7 @@
|
||||
#ifndef OSMOSE_CONFIGURATION_H
|
||||
#define OSMOSE_CONFIGURATION_H
|
||||
|
||||
+#include <string>
|
||||
#include <SDL/SDL.h>
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
29
emulators/osmose/files/patch-Makefile
Normal file
29
emulators/osmose/files/patch-Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
--- Makefile.orig Thu Jul 28 07:51:45 2005
|
||||
+++ Makefile Thu Jul 28 07:53:34 2005
|
||||
@@ -43,11 +43,11 @@
|
||||
|
||||
# Compiler/Linker Flags
|
||||
# add -O3 to CFLAGS for speedup -pg on LFLAGS and CFLAGS for gprof
|
||||
-CFLAGS = -Wall -O3
|
||||
-LFLAGS = -lSDL
|
||||
+CFLAGS = -Dlinux `sdl-config --cflags` -O3
|
||||
+LFLAGS = `sdl-config --libs`
|
||||
AFLAGS = -f elf
|
||||
-CC = g++
|
||||
-C_COMP = gcc
|
||||
+CC = ${CXX}
|
||||
+C_COMP = ${CC}
|
||||
ASM = nasm
|
||||
|
||||
# Our needed rules. $* is current file, without suffix.
|
||||
@@ -84,8 +84,8 @@
|
||||
rm -f *.o core $(OSM_EXE)
|
||||
|
||||
libs:
|
||||
- cd $(Z_LIB_DIR) && make libz.a
|
||||
- cd $(UNZIP_DIR) && make unzip.a
|
||||
+ cd $(Z_LIB_DIR) && ${MAKE} libz.a
|
||||
+ cd $(UNZIP_DIR) && ${MAKE} unzip.a
|
||||
|
||||
|
||||
|
8
emulators/osmose/files/patch-unzip-Makefile
Normal file
8
emulators/osmose/files/patch-unzip-Makefile
Normal file
@ -0,0 +1,8 @@
|
||||
--- unzip/Makefile.orig Fri Dec 17 13:21:30 2004
|
||||
+++ unzip/Makefile Tue Jul 26 21:15:04 2005
|
||||
@@ -1,5 +1,3 @@
|
||||
-CC=cc
|
||||
-CFLAGS=-O
|
||||
|
||||
UNZ_OBJS = unzip.o ioapi.o
|
||||
|
12
emulators/osmose/files/patch-zlib-Makefile
Normal file
12
emulators/osmose/files/patch-zlib-Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
--- zlib/Makefile.orig Fri Dec 17 11:04:40 2004
|
||||
+++ zlib/Makefile Tue Jul 26 21:16:20 2005
|
||||
@@ -16,9 +16,7 @@
|
||||
# To install in $HOME instead of /usr/local, use:
|
||||
# make install prefix=$HOME
|
||||
|
||||
-CC=cc
|
||||
|
||||
-CFLAGS=-O
|
||||
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
|
||||
#CFLAGS=-g -DDEBUG
|
||||
#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
|
12
emulators/osmose/pkg-descr
Normal file
12
emulators/osmose/pkg-descr
Normal file
@ -0,0 +1,12 @@
|
||||
Osmose is another Sega Master System emulator. The emulator is released as
|
||||
open source project, under GPL license.
|
||||
|
||||
The emulator relies on SDL library, zlib, and uses Alessandro Scotti z80 cpu
|
||||
core. Alessandro, is the author of the nice multi machine emulator 'Tickle'.
|
||||
Rom decompression relies on Zlib and Gilles Vollant unzip package. Scale2x
|
||||
video Filter is based on Andrea Mazzoleni's algorithm.
|
||||
|
||||
WWW: http://bcz.emu-france.com/
|
||||
|
||||
- Alejandro Pulver
|
||||
alejandro@varnet.biz
|
Loading…
Reference in New Issue
Block a user