View | Details | Raw Unified | Return to bug 161649
Collapse All | Expand All

(-)emulators/osmose/Makefile (-22 / +21 lines)
Lines 6-47 Link Here
6
#
6
#
7
7
8
PORTNAME=	osmose
8
PORTNAME=	osmose
9
PORTVERSION=	0.6.30
9
PORTVERSION=	0.9.96
10
PORTREVISION=	3
11
CATEGORIES=	emulators
10
CATEGORIES=	emulators
12
MASTER_SITES=	${MASTER_SITE_LOCAL}
11
MASTER_SITES=	http://bcz.asterope.fr/osmose/
13
MASTER_SITE_SUBDIR=	pav
12
DISTNAME=	Osmose-${PORTVERSION:S/./-/g}-QT
14
DISTNAME=	${PORTNAME}-final-src
15
13
16
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
17
COMMENT=	Sega Master System emulator
15
COMMENT=	Sega Master System emulator
18
16
19
BUILD_DEPENDS=	nasm:${PORTSDIR}/devel/nasm
17
LICENSE=	GPLv3 # (or later)
18
LICENSE_FILE=	${WRKSRC}/License.txt
20
19
21
ONLY_FOR_ARCHS=	i386
20
BUILD_DEPENDS=	${LOCALBASE}/include/linux/joystick.h:${PORTSDIR}/devel/linux-js
22
ONLY_FOR_ARCHS_REASON=	uses i386 assembly code
21
LIB_DEPENDS=	asound.2:${PORTSDIR}/audio/alsa-lib
23
USE_DOS2UNIX=	yes
22
RUN_DEPENDS=	${LOCALBASE}/include/linux/joystick.h:${PORTSDIR}/devel/linux-js
24
USE_ZIP=	yes
25
USE_GMAKE=	yes
26
USE_SDL=	sdl
27
NO_WRKSUBDIR=	yes
28
23
29
OPTIONS=	OPTIMIZED_CFLAGS "Enable compilation optimizations" on
24
USE_ZIP=	yes
25
USE_QT_VER=	4
26
QT_COMPONENTS=	corelib gui opengl moc_build qmake_build uic_build
27
QMAKEFLAGS+=	TARGET=release
30
28
31
PLIST_FILES=	bin/osmose
29
PORTDOCS=	Readme.txt TODO.txt
32
PORTDOCS=	readme.txt
30
PLIST_FILES=	bin/${PORTNAME}
33
31
34
.include <bsd.port.pre.mk>
32
.include <bsd.port.pre.mk>
35
33
36
.if !defined(WITHOUT_OPTIMIZED_CFLAGS)
34
do-configure:
37
MAKE_ENV+=	OPTIMIZED_CFLAGS=yes
35
	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS})
38
.endif
39
36
40
do-install:
37
do-install:
41
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
38
	${INSTALL_PROGRAM} ${WRKSRC}/${DISTNAME} ${PREFIX}/bin/${PORTNAME}
42
.if !defined(NOPORTDOCS)
39
.if !defined(NOPORTDOCS)
43
	${MKDIR} ${DOCSDIR}
40
	@${MKDIR} ${DOCSDIR}
44
	${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
41
.for doc in ${PORTDOCS}
42
	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
43
.endfor
45
.endif
44
.endif
46
45
47
.include <bsd.port.post.mk>
46
.include <bsd.port.post.mk>
(-)emulators/osmose/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (osmose-final-src.zip) = 1e0b0efe772fe10a3648e6878e7e495c8b9466fab1f8bf6864e80b7fb9b6d112
1
SHA256 (Osmose-0-9-96-QT.zip) = aca1d1b6b01d1e0efefd7e42eca9bc332d043869a934863321d3925267ca8d79
2
SIZE (osmose-final-src.zip) = 297235
2
SIZE (Osmose-0-9-96-QT.zip) = 194671
(-)emulators/osmose/files/patch-Makefile (-54 lines)
Lines 1-54 Link Here
1
--- Makefile.orig	Sat Apr  7 20:42:59 2007
2
+++ Makefile	Sat Apr  7 20:44:04 2007
3
@@ -43,21 +43,25 @@
4
 
5
 # Compiler/Linker Flags
6
 # add -O3 to CFLAGS for speedup -pg on LFLAGS and CFLAGS for gprof
7
-CFLAGS =  -Wall -O3
8
-LFLAGS =  -lSDL 
9
+CFLAGS +=  -Dlinux `sdl-config --cflags`
10
+
11
+ifdef OPTIMIZED_CFLAGS
12
+CFLAGS += -O3
13
+endif
14
+
15
+LFLAGS =  $(LDFLAGS) `sdl-config --libs`
16
 AFLAGS =  -f elf
17
-CC  = g++
18
-C_COMP = gcc
19
+CXX ?= g++
20
 ASM = nasm
21
 
22
 # Our needed rules. $* is current file, without suffix.
23
 .SUFFIXES: .cxx .o
24
 .cxx.o:
25
-	$(CC) $(CFLAGS) -c $*.cxx -o $*.o
26
+	$(CXX) $(CFLAGS) -c $*.cxx -o $*.o
27
 
28
 .SUFFIXES: .cpp .o
29
 .cpp.o:
30
-	$(CC) $(CFLAGS) -c $*.cpp -o $*.o
31
+	$(CXX) $(CFLAGS) -c $*.cpp -o $*.o
32
 
33
 .SUFFIXES: .asm .o
34
 .asm.o:
35
@@ -66,7 +70,7 @@
36
 all: disasm z80_lib libs osmose
37
 
38
 osmose: $(z80_lib) $(OSM_OBJS) $(OPT_OBJS) 
39
-	$(CC)  $(CFLAGS) $(OSM_OBJS) $(Z80_LIB) $(OPT_OBJS) $(UNZIP_LIB) $(Z_LIB) -o $(OSM_EXE) $(LFLAGS)
40
+	$(CXX)  $(CFLAGS) $(OSM_OBJS) $(Z80_LIB) $(OPT_OBJS) $(UNZIP_LIB) $(Z_LIB) -o $(OSM_EXE) $(LFLAGS)
41
 
42
 z80_lib: $(Z80_OBJS)
43
 	ar -rv $(Z80_LIB) $(Z80_DIR)/*.o
44
@@ -84,8 +88,8 @@
45
 	rm -f *.o core $(OSM_EXE)
46
 
47
 libs: 
48
-	cd $(Z_LIB_DIR) && make libz.a
49
-	cd $(UNZIP_DIR) && make unzip.a
50
+	cd $(Z_LIB_DIR) && ${MAKE} libz.a
51
+	cd $(UNZIP_DIR) && ${MAKE} unzip.a
52
 
53
 	
54
 
(-)emulators/osmose/files/patch-PrecisionTimer.h (-10 lines)
Lines 1-10 Link Here
1
--- ./PrecisionTimer.h.orig	Sat Apr  7 19:48:42 2007
2
+++ ./PrecisionTimer.h	Sat Apr  7 19:49:31 2007
3
@@ -81,6 +81,6 @@
4
         unsigned long long tick_per_second;                  // Self explanatory.
5
         unsigned long long T0;                               // Self explanatory.
6
         unsigned long long T1;                               // Self explanatory.
7
-        double PrecisionTimer::getOneShotDuration();
8
+        double getOneShotDuration();
9
 };
10
 #endif
(-)emulators/osmose/files/patch-TvVideoFilter.h (-11 lines)
Lines 1-11 Link Here
1
--- ./TvVideoFilter.h.orig	Sat Apr  7 19:48:42 2007
2
+++ ./TvVideoFilter.h	Sat Apr  7 19:49:43 2007
3
@@ -19,7 +19,7 @@
4
 
5
 class TvVideoFilter : public VideoFilter {
6
 public:    
7
-    TvVideoFilter::TvVideoFilter();
8
+    TvVideoFilter();
9
     int getFinalOutputWidth();
10
     int getFinalOutputHeight();
11
     void Filter(SDL_Surface *s, SDL_Surface *d);
(-)emulators/osmose/files/patch-unzip-Makefile (-8 lines)
Lines 1-8 Link Here
1
--- unzip/Makefile.orig	Fri Dec 17 13:21:30 2004
2
+++ unzip/Makefile	Tue Jul 26 21:15:04 2005
3
@@ -1,5 +1,3 @@
4
-CC=cc
5
-CFLAGS=-O 
6
 
7
 UNZ_OBJS = unzip.o ioapi.o 
8
 
(-)emulators/osmose/files/patch-zlib-Makefile (-12 lines)
Lines 1-12 Link Here
1
--- zlib/Makefile.orig	Fri Dec 17 11:04:40 2004
2
+++ zlib/Makefile	Tue Jul 26 21:16:20 2005
3
@@ -16,9 +16,7 @@
4
 # To install in $HOME instead of /usr/local, use:
5
 #    make install prefix=$HOME
6
 
7
-CC=cc
8
 
9
-CFLAGS=-O
10
 #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
11
 #CFLAGS=-g -DDEBUG
12
 #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
(-)emulators/osmose/pkg-descr (-5 / +2 lines)
Lines 1-12 Link Here
1
Osmose is another Sega Master System emulator. The emulator is released as
1
Osmose is another Sega Master System emulator. The emulator is released as
2
open source project, under GPL license.
2
open source project, under GPL license.
3
3
4
The emulator relies on SDL library, zlib, and uses Alessandro Scotti z80 cpu
4
The emulator relies on Qt library, zlib, and uses Alessandro Scotti z80 cpu
5
core. Alessandro, is the author of the nice multi machine emulator 'Tickle'.
5
core. Alessandro, is the author of the nice multi machine emulator 'Tickle'.
6
Rom decompression relies on Zlib and Gilles Vollant unzip package. Scale2x
6
Rom decompression relies on Zlib and Gilles Vollant unzip package. Scale2x
7
video Filter is based on Andrea Mazzoleni's algorithm.
7
video Filter is based on Andrea Mazzoleni's algorithm.
8
8
9
WWW: http://bcz.emu-france.com/
9
WWW: http://bcz.asterope.fr/osmose.htm
10
11
- Alejandro Pulver
12
alejandro@varnet.biz

Return to bug 161649