Group :: Som
RPM: stk
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: stk-01_makefile.patch
Download
Download
diff -ruN stk-4.2.0-old/Makefile stk-4.2.0/Makefile
--- stk-4.2.0-old/Makefile 1970-01-01 01:00:00.000000000 +0100
+++ stk-4.2.0/Makefile 2005-09-15 09:10:51.000000000 +0200
@@ -0,0 +1,9 @@
+
+
+all:
+ make -C src
+ make -C projects/demo
+
+install:
+ make -C src install
+# make -C projects/demo install
diff -ruN stk-4.2.0-old/src/Makefile.in stk-4.2.0/src/Makefile.in
--- stk-4.2.0-old/src/Makefile.in 2004-09-21 21:12:29.000000000 +0200
+++ stk-4.2.0/src/Makefile.in 2005-09-15 09:11:21.000000000 +0200
@@ -66,3 +66,25 @@
clean :
-rm $(OBJECT_PATH)/*.o
-rm $(LIBRARY)
+
+SHLIB = libstk.so
+MAJ = 0
+MIN = 4.1.3
+
+shlibs: $(LIBRARY)
+ g++ -fPIC -shared -Wl,-soname=$(SHLIB).$(MAJ) -o libstk.so.$(MAJ).$(MIN) Release/*.o -lc -lasound -ljack
+ -ln -s $(SHLIB).$(MAJ).$(MIN) $(SHLIB).$(MAJ)
+ -ln -s $(SHLIB).$(MAJ).$(MIN) $(SHLIB)
+
+install-headers:
+ install -d $(DESTDIR)/usr/include/stk
+ cp -r ../include/*.h $(DESTDIR)/usr/include/stk
+
+install: shlibs install-headers
+ install -d $(DESTDIR)/usr/share/stk
+ install -d $(DESTDIR)/usr/lib
+ install -m 644 $(LIBRARY) $(DESTDIR)/usr/lib
+ install -m 644 $(SHLIB).$(MAJ).$(MIN) $(DESTDIR)/usr/lib
+ ln -s $(SHLIB).$(MAJ).$(MIN) $(DESTDIR)/usr/lib/$(SHLIB).$(MAJ)
+ ln -s $(SHLIB).$(MAJ).$(MIN) $(DESTDIR)/usr/lib/$(SHLIB)
+