ports/84195: [NEW PORT] emulators/osmose - Sega Master System emulator

Alejandro Pulver alejandro at varnet.biz
Wed Jul 27 22:40:14 UTC 2005


>Number:         84195
>Category:       ports
>Synopsis:       [NEW PORT] emulators/osmose - Sega Master System emulator
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 27 22:40:11 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Alejandro Pulver
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:





>Description:





>How-To-Repeat:





>Fix:


--- osmose.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	osmose
#	osmose/Makefile
#	osmose/distinfo
#	osmose/pkg-plist
#	osmose/files
#	osmose/files/patch-Makefile
#	osmose/files/patch-zlib-Makefile
#	osmose/files/extra-patch-freebsd4
#	osmose/files/patch-unzip-Makefile
#	osmose/pkg-descr
#
echo c - osmose
mkdir -p osmose > /dev/null 2>&1
echo x - osmose/Makefile
sed 's/^X//' >osmose/Makefile << 'END-of-osmose/Makefile'
X# New ports collection makefile for:	osmose
X# Date created:				27 Jul 2005
X# Whom:					Alejandro Pulver <alejandro at varnet.biz>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	osmose
XPORTVERSION=	0.6.30
XCATEGORIES=	emulators
XMASTER_SITES=	http://bcz.emu-france.com/osmose/
XDISTNAME=	${PORTNAME}-final-src
X
XMAINTAINER=	alejandro at varnet.biz
XCOMMENT=	Sega Master System emulator
X
XONLY_FOR_ARCHS=	i386
X
XUSE_ZIP=	yes
XUSE_GMAKE=	yes
XUSE_SDL=	sdl
XUSE_REINPLACE=	yes
X
XNO_WRKSUBDIR=	yes
X
XOPTIONS=	OPTIMIZED_CFLAGS "Enable compilation optimizations" on
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
X.endif
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 500000
XEXTRA_PATCHES=	${FILESDIR}/extra-patch-freebsd4
X.endif
X
Xpost-patch:
X# Fix Makefile
X	@${REINPLACE_CMD} -e 's|\(-Dlinux\)|${CFLAGS} \1| ; \
X			s|sdl-config|${SDL_CONFIG}|' \
X				${WRKSRC}/${MAKEFILE}
X
X# Fix SDL include statement
X	@${REINPLACE_CMD} -e 's|\(#include.*\)SDL/\(SDL.*\)|\1\2|' \
X				${WRKSRC}/*.h
X
X# Enable/disable compilation optimizations
X.if !defined(WITH_OPTIMIZED_CFLAGS)
X	@${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/${MAKEFILE}
X.endif
X
X.include <bsd.port.post.mk>
END-of-osmose/Makefile
echo x - osmose/distinfo
sed 's/^X//' >osmose/distinfo << 'END-of-osmose/distinfo'
XMD5 (osmose-final-src.zip) = 4607029f0b9332d9e0bc0555f542dc88
XSIZE (osmose-final-src.zip) = 297235
END-of-osmose/distinfo
echo x - osmose/pkg-plist
sed 's/^X//' >osmose/pkg-plist << 'END-of-osmose/pkg-plist'
Xbin/osmose
X%%PORTDOCS%%%%DOCSDIR%%/readme.txt
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-osmose/pkg-plist
echo c - osmose/files
mkdir -p osmose/files > /dev/null 2>&1
echo x - osmose/files/patch-Makefile
sed 's/^X//' >osmose/files/patch-Makefile << 'END-of-osmose/files/patch-Makefile'
X--- Makefile.orig	Mon Apr 25 18:17:08 2005
X+++ Makefile	Tue Jul 26 21:08:26 2005
X@@ -43,11 +43,11 @@
X 
X # Compiler/Linker Flags
X # add -O3 to CFLAGS for speedup -pg on LFLAGS and CFLAGS for gprof
X-CFLAGS =  -Wall -O3
X-LFLAGS =  -lSDL 
X+CFLAGS =  -Dlinux `sdl-config --cflags` -O3
X+LFLAGS =  `sdl-config --libs`
X AFLAGS =  -f elf
X-CC  = g++
X-C_COMP = gcc
X+CC  = ${CXX}
X+C_COMP = ${CC}
X ASM = nasm
X 
X # Our needed rules. $* is current file, without suffix.
X@@ -84,8 +84,8 @@
X 	rm -f *.o core $(OSM_EXE)
X 
X libs: 
X-	cd $(Z_LIB_DIR) && make libz.a
X-	cd $(UNZIP_DIR) && make unzip.a
X+	cd $(Z_LIB_DIR) && $(MAKE) libz.a
X+	cd $(UNZIP_DIR) && $(MAKE) unzip.a
X 
X 	
X 
END-of-osmose/files/patch-Makefile
echo x - osmose/files/patch-zlib-Makefile
sed 's/^X//' >osmose/files/patch-zlib-Makefile << 'END-of-osmose/files/patch-zlib-Makefile'
X--- zlib/Makefile.orig	Fri Dec 17 11:04:40 2004
X+++ zlib/Makefile	Tue Jul 26 21:16:20 2005
X@@ -16,9 +16,7 @@
X # To install in $HOME instead of /usr/local, use:
X #    make install prefix=$HOME
X 
X-CC=cc
X 
X-CFLAGS=-O
X #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
X #CFLAGS=-g -DDEBUG
X #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
END-of-osmose/files/patch-zlib-Makefile
echo x - osmose/files/extra-patch-freebsd4
sed 's/^X//' >osmose/files/extra-patch-freebsd4 << 'END-of-osmose/files/extra-patch-freebsd4'
X--- InputDevice.h.orig	Wed Jul 27 23:08:41 2005
X+++ InputDevice.h	Wed Jul 27 23:09:05 2005
X@@ -17,6 +17,7 @@
X #ifndef INPUT_DEVICE_H
X #define INPUT_DEVICE_H
X 
X+#include <string>
X #include <SDL/SDL.h>
X #include <iostream>
X 
X--- MemoryMapper.h.orig	Wed Jul 27 22:13:37 2005
X+++ MemoryMapper.h	Wed Jul 27 22:16:37 2005
X@@ -14,6 +14,8 @@
X *****************************************************************************/
X #ifndef MEMORY_MAPPER_H
X #define MEMORY_MAPPER_H
X+#include <stdlib.h>
X+#include <string>
X #include <iostream>
X #include <fstream>
X #include <iomanip>
X--- Options.h.orig	Wed Jul 27 22:33:50 2005
X+++ Options.h	Wed Jul 27 22:34:08 2005
X@@ -14,6 +14,7 @@
X #ifndef OPTIONS_H
X #define OPTIONS_H
X 
X+#include <string.h>
X #include <iostream>
X #include <iomanip>
X #include "Bits.h"
X--- OsmoseConfiguration.h.orig	Wed Jul 27 22:41:39 2005
X+++ OsmoseConfiguration.h	Wed Jul 27 22:44:16 2005
X@@ -15,6 +15,7 @@
X #ifndef OSMOSE_CONFIGURATION_H
X #define OSMOSE_CONFIGURATION_H
X 
X+#include <string>
X #include <SDL/SDL.h>
X #include <iostream>
X #include <iomanip>
X--- OsmoseCore.cpp.orig	Wed Jul 27 03:33:44 2005
X+++ OsmoseCore.cpp	Wed Jul 27 03:34:13 2005
X@@ -12,6 +12,7 @@
X *
X * URL: http://bcz.emu-france.com/
X *****************************************************************************/
X+#include <string>
X #include "OsmoseCore.h"
X 
X #define TIME_LIMITE 7*60
X--- SN76489.h.orig	Wed Jul 27 22:26:47 2005
X+++ SN76489.h	Wed Jul 27 22:31:08 2005
X@@ -13,6 +13,7 @@
X *****************************************************************************/
X #ifndef SN76489_H
X #define SN76489_H
X+#include <string.h>
X #include <iomanip>
X #include <iostream>
X #include <SDL/SDL.h>
X--- TextWriter.h.orig	Wed Jul 27 23:06:45 2005
X+++ TextWriter.h	Wed Jul 27 23:06:53 2005
X@@ -15,6 +15,7 @@
X #ifndef TEXT_WRITER_H
X #define TEXT_WRITER_H
X 
X+#include <string>
X #include <iomanip>
X #include <SDL/SDL.h>
X 
X--- VDP.h.orig	Wed Jul 27 21:55:01 2005
X+++ VDP.h	Wed Jul 27 21:55:33 2005
X@@ -13,6 +13,7 @@
X *****************************************************************************/
X #ifndef VDP_H
X #define VDP_H
X+#include <string.h>
X #include <SDL/SDL.h>
X #include <iomanip>
X #include <iostream>
X--- VideoFilter.h.orig	Wed Jul 27 23:04:17 2005
X+++ VideoFilter.h	Wed Jul 27 23:04:36 2005
X@@ -35,6 +35,7 @@
X #ifndef VIDEO_FILTER_H
X #define VIDEO_FILTER_H
X 
X+#include <string>
X #include <SDL/SDL.h>
X #include <iostream>
X 
X--- main.cpp.orig	Sun May 22 19:43:10 2005
X+++ main.cpp	Wed Jul 27 03:20:22 2005
X@@ -31,6 +31,7 @@
X * URL: http://bcz.emu-france.com/
X *****************************************************************************/
X 
X+#include <string>
X #include <iostream>
X #include <iomanip>
X #include "OsmoseCore.h"
X@@ -155,7 +156,7 @@
X 	    // If actual argument nbr < argument number eg is there any args ?
X 	    if (i < a-1)
X 	    {
X-                opt.acceleration = atof( rv[i+1]);
X+		opt.acceleration = strtod(rv[i+1], (char **)NULL);
X 		if (opt.acceleration == 0)
X 		{
X 	        cerr << "No valid acceleration parameter was given. Using default " << (float)DEFAULT_ACCELERATION << " value." << endl;
END-of-osmose/files/extra-patch-freebsd4
echo x - osmose/files/patch-unzip-Makefile
sed 's/^X//' >osmose/files/patch-unzip-Makefile << 'END-of-osmose/files/patch-unzip-Makefile'
X--- unzip/Makefile.orig	Fri Dec 17 13:21:30 2004
X+++ unzip/Makefile	Tue Jul 26 21:15:04 2005
X@@ -1,5 +1,3 @@
X-CC=cc
X-CFLAGS=-O 
X 
X UNZ_OBJS = unzip.o ioapi.o 
X 
END-of-osmose/files/patch-unzip-Makefile
echo x - osmose/pkg-descr
sed 's/^X//' >osmose/pkg-descr << 'END-of-osmose/pkg-descr'
XOsmose is another Sega Master System emulator. The emulator is released as
Xopen source project, under GPL license.
X
XThe emulator relies on SDL library, zlib, and uses Alessandro Scotti z80 cpu
Xcore. Alessandro, is the author of the nice multi machine emulator 'Tickle'.
XRom decompression relies on Zlib and Gilles Vollant unzip package. Scale2x
Xvideo Filter is based on Andrea Mazzoleni's algorithm.
X
XWWW: http://bcz.emu-france.com/
X
X- Alejandro Pulver
Xalejandro at varnet.biz
END-of-osmose/pkg-descr
exit

--- osmose.shar ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list