summaryrefslogtreecommitdiff
path: root/multimedia/libflash/patches/patch-af
blob: f81eadddc0114be9ecf49634f124712e848a24d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-af,v 1.2 2004/04/24 22:25:31 wiz Exp $

--- Player/Makefile.orig	2000-06-07 20:19:50.000000000 +0200
+++ Player/Makefile
@@ -1,14 +1,13 @@
-FLASH=../Lib
-CPPFLAGS=-I$(FLASH)
-CFLAGS=-O3
-LIBS = $(FLASH)/libflash.a ../Zlib/libz.a ../Jpeg/libjpeg.a -L/usr/X11R6/lib -lX11 -lXext -lm
-CC=gcc
-LDFLAGS=
+LIBS = -lflash -ljpeg -lz ${LIBOSSAUDIO} -lX11 -lXext -lm $(LIBSTDCPP)
+CFLAGS+= -I${PREFIX}/include/flash
 
-swfplayer: main.o $(FLASH)/libflash.a ../Zlib/libz.a ../Jpeg/libjpeg.a
+all: swfplayer
+
+install: swfplayer
+	${BSD_INSTALL_PROGRAM} swfplayer ${PREFIX}/bin
+
+swfplayer: main.o
 	$(CC) $(LDFLAGS) -o $@ main.o $(LIBS)
 
 clean:
 	rm -f *~ *.o swfplayer core gmon.out
-
-