2010-02-11 20:53:03 +01:00
|
|
|
$NetBSD: patch-ab,v 1.2 2010/02/11 20:01:50 joerg Exp $
|
2004-01-26 14:34:45 +01:00
|
|
|
|
|
|
|
--- 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
|
2010-02-11 20:53:03 +01:00
|
|
|
+ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libflash.la ${DESTDIR}${PREFIX}/lib
|
|
|
|
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/flash
|
2004-01-26 14:34:45 +01:00
|
|
|
+ for file in ${INCLUDES}; do \
|
2010-02-11 20:53:03 +01:00
|
|
|
+ ${BSD_INSTALL_DATA} $$file ${DESTDIR}${PREFIX}/include/flash; \
|
2004-01-26 14:34:45 +01:00
|
|
|
+ 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)
|