nixpkgs-overlay/playgsf/no-bundled-libresample.patch

31 lines
1.0 KiB
Diff

diff a/Makefile.in b/Makefile.in
--- a/Makefile.in
+++ b/Makefile.in
@@ -8,15 +8,9 @@
OBJS=gsf.o VBA/GBA.o VBA/Globals.o VBA/Sound.o VBA/Util.o VBA/bios.o VBA/memgzio.o VBA/snd_interp.o VBA/unzip.o linuxmain.o VBA/psftag.o
-all: libresample-0.1.3/libresample.a $(OBJS)
+all: $(OBJS)
$(LD) $(LDFLAGS) $(OBJS) -lresample -o playgsf
-libresample-0.1.3/libresample.a: libresample-0.1.3/Makefile
- $(MAKE) -C libresample-0.1.3
-
-libresample-0.1.3/Makefile:
- cd libresample-0.1.3 ; ./configure ; cd ..
-
%.o: %.c %.h
$(CC) $(CFLAGS) -c $< -o $@
@@ -30,7 +24,7 @@
$(CPP) $(CFLAGS) -c $< -o $@
clean:
- rm -rf *.o VBA/*.o playgsf autom4te.cache libresample-0.1.3/Makefile libresample-0.1.3/config.log libresample-0.1.3/config.status libresample-0.1.3/src/*.o
+ rm -rf *.o VBA/*.o playgsf autom4te.cache
distclean:
- rm -f *.o VBA/*.o playgsf config.cache config.status Makefile config.h config.log libresample-0.1.3/src/*.o
+ rm -f *.o VBA/*.o playgsf config.cache config.status Makefile config.h config.log