- respect CC/CXX

- use ${CXX} as linker
- fetch prototype for sqrt(); fixes compilation with gcc3
This commit is contained in:
naddy 2002-09-28 22:19:40 +00:00
parent 1903c5ce93
commit defe4e7f19
3 changed files with 16 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.4 2002/03/21 20:57:08 espie Exp $
# $OpenBSD: Makefile,v 1.5 2002/09/28 22:19:40 naddy Exp $
COMMENT= "open source standalone flash(tm) player"
@ -18,6 +18,7 @@ PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}
MAKE_ENV= CC="${CC}" CXX="${CXX}"
FAKE_FLAGS= PREFIX="${WRKINST}${PREFIX}"
USE_X11= Yes

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-Lib_shape_cc,v 1.1 2002/09/28 22:19:40 naddy Exp $
--- Lib/shape.cc.orig Sun Sep 29 00:12:12 2002
+++ Lib/shape.cc Sun Sep 29 00:12:24 2002
@@ -21,6 +21,7 @@
//
#include "swf.h"
+#include <math.h>
#ifdef RCSID
static char *rcsid = "$Id: patch-Lib_shape_cc,v 1.1 2002/09/28 22:19:40 naddy Exp $";

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-Makefile,v 1.2 2001/03/17 12:36:16 wilfried Exp $
$OpenBSD: patch-Makefile,v 1.3 2002/09/28 22:19:40 naddy Exp $
--- Makefile.orig Mon Jun 12 10:19:14 2000
+++ Makefile Sat Mar 17 13:34:46 2001
+++ Makefile Sun Sep 29 00:20:10 2002
@@ -1,7 +1,36 @@
-SUBDIRS= Jpeg Zlib Lib Player Plugin Kflash
+CFLAGS+=-fno-rtti -DXP_UNIX
@ -37,7 +37,7 @@ $OpenBSD: patch-Makefile,v 1.2 2001/03/17 12:36:16 wilfried Exp $
+all: swfplayer
+
+swfplayer: $(PLAYEROBJS) $(OBJS)
+ $(CC) -o $@ main.o $(OBJS) -L/usr/X11R6/lib -lossaudio -lXext -lX11 -lm
+ $(CXX) -o $@ main.o $(OBJS) -L/usr/X11R6/lib -lossaudio -lXext -lX11 -lm
clean:
- for subdir in $(SUBDIRS); do (cd $$subdir; $(MAKE) clean); done