diff options
Diffstat (limited to 'graphics/libflash/patches/patch-ab')
-rw-r--r-- | graphics/libflash/patches/patch-ab | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/graphics/libflash/patches/patch-ab b/graphics/libflash/patches/patch-ab index 56850510f28..ae59091c17f 100644 --- a/graphics/libflash/patches/patch-ab +++ b/graphics/libflash/patches/patch-ab @@ -1,35 +1,34 @@ -$NetBSD: patch-ab,v 1.3 2002/07/11 14:24:00 abs Exp $ +$NetBSD: patch-ab,v 1.4 2003/01/30 12:22:48 jlam Exp $ ---- Lib/Makefile.orig Sun Jun 4 10:49:23 2000 +--- Lib/Makefile.orig Sun Jun 4 02:49:23 2000 +++ Lib/Makefile -@@ -1,6 +1,6 @@ +@@ -1,6 +1,5 @@ -CPPFLAGS=-I../Jpeg -I../Zlib -+CPPFLAGS=-I${LOCALBASE}/include # Comment out the following line if you use egcs : -CXXFLAGS=-O3 -Wall -fno-rtti -fno-exceptions -+CXXFLAGS=-O3 -Wall -fno-rtti -fno-exceptions ${CFLAGS} ++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,10 +34,20 @@ SWFOBJS=\ +@@ -34,7 +33,20 @@ SWFOBJS=\ # bitstream.o # dump.o +-all: libflash.a +.cc.o: -+ ${LIBTOOL} --mode=compile ${CXX} -c ${CPPFLAGS} ${CXXFLAGS} ${.IMPSRC} ++ ${LIBTOOL} --mode=compile ${CXX} -c ${CPPFLAGS} ${CXXFLAGS} $< + - all: libflash.a - -+install: ++all: libflash.la ++ ++install: libflash.la + ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libflash.la ${PREFIX}/lib + ${BSD_INSTALL_DATA_DIR} ${PREFIX}/include/flash -+.for file in ${INCLUDES} -+ ${BSD_INSTALL_DATA} ${file} ${PREFIX}/include/flash -+.endfor ++ for file in ${INCLUDES}; do \ ++ ${BSD_INSTALL_DATA} $$file ${PREFIX}/include/flash; \ ++ done + - libflash.a: $(SWFOBJS) -- ar rcs $@ $(SWFOBJS) -+ ${LIBTOOL} --mode=link ${CC} -o ${.TARGET:.a=.la} ${SWFOBJS:.o=.lo} -rpath ${PREFIX}/lib -L${PREFIX}/lib -Wl,-R${PREFIX}/lib -ljpeg -version-info 0:4 - - $(SWFOBJS): $(INCLUDES) ++libflash.la: $(SWFOBJS) ++ ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o $@ ${SWFOBJS:.o=.lo} -rpath ${PREFIX}/lib -ljpeg -lz ${LIBOSSAUDIO} -version-info 0:4 + libflash.a: $(SWFOBJS) + ar rcs $@ $(SWFOBJS) |