File libjackasyn-install-fix.dif of Package libjackasyn

--- Makefile.in-dist	2003-07-22 20:35:50.000000000 +0200
+++ Makefile.in	2003-07-22 21:00:41.000000000 +0200
@@ -13,6 +13,11 @@
 
 
 prefix = @prefix@
+bindir = @bindir@
+libdir = @libdir@
+exec_prefix = @exec_prefix@
+includedir = @includedir@
+mandir = @mandir@
 
 
 all: static shared
@@ -25,13 +30,17 @@
 	gcc -shared -Wl,-soname=libjackasyn.so.0 -o libjackasyn.so.$(VERSION) *.o $(LIBS)
 
 install:
-	-rm $(prefix)/lib/libjackasyn.so*
-	install -m 644 libjackasyn.a $(prefix)/lib
-	install -m 644 libjackasyn.so.$(VERSION) $(prefix)/lib
-	install -m 644 libjackoss.h $(prefix)/include
-	ln -s libjackasyn.so.$(VERSION) $(prefix)/lib/libjackasyn.so.0
-	ln -s libjackasyn.so.$(VERSION) $(prefix)/lib/libjackasyn.so
-	install -m 755 jacklaunch $(prefix)/bin
+	mkdir -p $(DESTDIR)$(libdir)
+	install -m 644 libjackasyn.a $(DESTDIR)$(libdir)
+	install -m 644 libjackasyn.so.$(VERSION) $(DESTDIR)$(libdir)
+	mkdir -p $(DESTDIR)$(includedir)
+	install -m 644 libjackoss.h $(DESTDIR)$(includedir)
+	ln -s libjackasyn.so.$(VERSION) $(DESTDIR)$(libdir)/libjackasyn.so.0
+	ln -s libjackasyn.so.$(VERSION) $(DESTDIR)$(libdir)/libjackasyn.so
+	mkdir -p $(DESTDIR)$(bindir)
+	install -m 755 jacklaunch $(DESTDIR)$(bindir)
+	mkdir -p $(DESTDIR)$(mandir)/man1
+	install -m 644 jacklaunch.1 $(DESTDIR)$(mandir)/man1
 
 test:
 	gcc -o test test.c libjackasyn.a -ljack -ldl -lm
openSUSE Build Service is sponsored by