- respect CC/CXX
- use ${CXX} as linker - fetch prototype for sqrt(); fixes compilation with gcc3
This commit is contained in:
parent
1903c5ce93
commit
defe4e7f19
@ -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"
|
COMMENT= "open source standalone flash(tm) player"
|
||||||
|
|
||||||
@ -18,6 +18,7 @@ PERMIT_DISTFILES_FTP= Yes
|
|||||||
|
|
||||||
MASTER_SITES= ${HOMEPAGE}
|
MASTER_SITES= ${HOMEPAGE}
|
||||||
|
|
||||||
|
MAKE_ENV= CC="${CC}" CXX="${CXX}"
|
||||||
FAKE_FLAGS= PREFIX="${WRKINST}${PREFIX}"
|
FAKE_FLAGS= PREFIX="${WRKINST}${PREFIX}"
|
||||||
|
|
||||||
USE_X11= Yes
|
USE_X11= Yes
|
||||||
|
11
graphics/flash/patches/patch-Lib_shape_cc
Normal file
11
graphics/flash/patches/patch-Lib_shape_cc
Normal 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 $";
|
@ -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.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 @@
|
@@ -1,7 +1,36 @@
|
||||||
-SUBDIRS= Jpeg Zlib Lib Player Plugin Kflash
|
-SUBDIRS= Jpeg Zlib Lib Player Plugin Kflash
|
||||||
+CFLAGS+=-fno-rtti -DXP_UNIX
|
+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
|
+all: swfplayer
|
||||||
+
|
+
|
||||||
+swfplayer: $(PLAYEROBJS) $(OBJS)
|
+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:
|
clean:
|
||||||
- for subdir in $(SUBDIRS); do (cd $$subdir; $(MAKE) clean); done
|
- for subdir in $(SUBDIRS); do (cd $$subdir; $(MAKE) clean); done
|
||||||
|
Loading…
Reference in New Issue
Block a user