summaryrefslogtreecommitdiff
path: root/multimedia/libflash/patches/patch-ab
blob: 2f0518e009d97922d24e7662c36d6f253ffc8c05 (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
28
29
30
31
32
33
34
$NetBSD: patch-ab,v 1.2 2010/02/11 20:01:50 joerg Exp $

--- Lib/Makefile.orig	Sun Jun  4 02:49:23 2000
+++ Lib/Makefile
@@ -1,6 +1,5 @@
-CPPFLAGS=-I../Jpeg -I../Zlib
 # Comment out the following line if you use egcs :
-CXXFLAGS=-O3 -Wall -fno-rtti -fno-exceptions
+CXXFLAGS+=-Wall -fno-rtti -fno-exceptions
 
 INCLUDES= adpcm.h        cxform.h       graphic.h      script.h       sqrt.h\
 	bitmap.h       displaylist.h  matrix.h       shape.h        swf.h\
@@ -34,7 +33,20 @@
 #	bitstream.o
 #	dump.o
 
-all: libflash.a
+.cc.o:
+	${LIBTOOL} --mode=compile ${CXX} -c ${CPPFLAGS} ${CXXFLAGS} $<
+
+all: libflash.la
+
+install: libflash.la
+	${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libflash.la ${DESTDIR}${PREFIX}/lib
+	${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/flash
+	for file in ${INCLUDES}; do \
+		${BSD_INSTALL_DATA} $$file ${DESTDIR}${PREFIX}/include/flash; \
+	done
+
+libflash.la: $(SWFOBJS)
+	${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o $@ ${SWFOBJS:.o=.lo} -rpath ${PREFIX}/lib -ljpeg -lz ${LIBSTDCPP} ${LIBOSSAUDIO} -version-info 0:4
 
 libflash.a: $(SWFOBJS) 
 	ar rcs $@ $(SWFOBJS)