SOURCES: libresample-shared.patch (NEW) - build shared library

qboosh qboosh at pld-linux.org
Thu Dec 28 18:12:01 CET 2006


Author: qboosh                       Date: Thu Dec 28 17:12:01 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- build shared library

---- Files affected:
SOURCES:
   libresample-shared.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/libresample-shared.patch
diff -u /dev/null SOURCES/libresample-shared.patch:1.1
--- /dev/null	Thu Dec 28 18:12:01 2006
+++ SOURCES/libresample-shared.patch	Thu Dec 28 18:11:55 2006
@@ -0,0 +1,86 @@
+--- libresample-0.1.3/Makefile.in.orig	2003-10-12 09:05:59.000000000 +0200
++++ libresample-0.1.3/Makefile.in	2006-12-28 17:03:15.120320327 +0100
+@@ -5,41 +5,48 @@
+ 
+ CC = @CC@
+ CFLAGS = @CFLAGS@ -Wall
++LDFLAGS = @LDFLAGS@
++LIBTOOL = libtool
+ 
+ LIBS = @LIBS@ -lm
+ 
+ AR = @AR@
+ RANLIB = @RANLIB@
++DESTDIR=
+ srcdir=@srcdir@
++libdir=@libdir@
++includedir=@includedir@
++bindir=@bindir@
+ 
+ OBJS = \
+-	src/resample.c.o \
+-	src/resamplesubs.c.o \
+-	src/filterkit.c.o
++	src/resample.lo \
++	src/resamplesubs.lo \
++	src/filterkit.lo
+ 
+ TARGETS = @TARGETS@
+ DIRS=tests
+ 
+ all: $(TARGETS)
+ 
+-libresample.a: $(OBJS) Makefile
+-	$(AR) ruv libresample.a $(OBJS)
+-	ranlib libresample.a
++libresample.a: libresample.la
+ 
+-tests/testresample: libresample.a $(srcdir)/tests/testresample.c $(DIRS)
+-	$(CC) -o tests/testresample \
++libresample.la: $(OBJS) Makefile
++	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) -rpath $(libdir)
++
++tests/testresample: libresample.la $(srcdir)/tests/testresample.c $(DIRS)
++	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o tests/testresample \
+ 		$(CFLAGS) $(srcdir)/tests/testresample.c \
+-		libresample.a $(LIBS)
++		libresample.la $(LIBS)
+ 
+-tests/compareresample: libresample.a $(srcdir)/tests/compareresample.c $(DIRS)
+-	$(CC) -o tests/compareresample \
++tests/compareresample: libresample.la $(srcdir)/tests/compareresample.c $(DIRS)
++	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o tests/compareresample \
+ 		$(CFLAGS) $(srcdir)/tests/compareresample.c \
+-		libresample.a -lsamplerate $(LIBS)
++		libresample.la -lsamplerate $(LIBS)
+ 
+-tests/resample-sndfile: libresample.a $(srcdir)/tests/resample-sndfile.c $(DIRS)
+-	$(CC) -o tests/resample-sndfile \
++tests/resample-sndfile: libresample.la $(srcdir)/tests/resample-sndfile.c $(DIRS)
++	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o tests/resample-sndfile \
+ 		$(CFLAGS) $(srcdir)/tests/resample-sndfile.c \
+-		libresample.a -lsndfile $(LIBS)
++		libresample.la -lsndfile $(LIBS)
+ 
+ $(DIRS):
+ 	mkdir $(DIRS)
+@@ -47,11 +54,17 @@
+ clean:
+ 	rm -f $(TARGETS) $(OBJS)
+ 
++install: $(TARGETS)
++	install -d $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
++	install -m644 include/libresample.h $(DESTDIR)$(includedir)
++	$(LIBTOOL) --mode=install install libresample.la $(DESTDIR)$(libdir)
++	$(LIBTOOL) --mode=install install tests/resample-sndfile $(DESTDIR)$(bindir)
++
+ dist: clean
+ 	rm -f Makefile
+ 	rm -f config.status config.cache config.log src/config.h
+ 	rm -f *~ src/*~ tests/*~ include/*~
+ 
+-$(OBJS): %.c.o: $(srcdir)/%.c Makefile $(srcdir)/include/libresample.h \
++$(OBJS): %.lo: $(srcdir)/%.c Makefile $(srcdir)/include/libresample.h \
+ 	$(srcdir)/src/resample_defs.h $(srcdir)/src/filterkit.h $(srcdir)/src/config.h
+-	$(CC) -c $(CFLAGS) $< -o $@
++	$(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $< -o $@
================================================================


More information about the pld-cvs-commit mailing list