aliki (0.1.0-1) 01-makefile.patch

Summary

 source/Makefile |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

    
download this patch

Patch contents

Description:  Set prefix properly and fix install commands.
 Removed -march=native cpp flag
Author: Jaromír Mikeš <mira.mikes@seznam.cz>
Forwarded: no

Index: aliki/source/Makefile
===================================================================
--- aliki.orig/source/Makefile	2011-07-26 23:42:14.000000000 +0200
+++ aliki/source/Makefile	2011-07-27 00:02:12.149674852 +0200
@@ -21,13 +21,15 @@
 
 # Modify as required.
 #
-PREFIX = /usr/local
+
+DESTDIR=
+PREFIX = /usr
 SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
 LIBDIR = lib$(SUFFIX)
 VERSION = 0.1.0
 DISTDIR = aliki-$(VERSION)
 CPPFLAGS += -O3 -Wall -MMD -MP -DVERSION=\"$(VERSION)\" -DPREFIX=\"$(PREFIX)\" -I/usr/include/freetype2
-CPPFLAGS += -march=native
+#CPPFLAGS += -march=native
 
 # Uncomment if you use a libsndfile version without support for setting/getting the Ambisonic flags.
 #
@@ -60,8 +62,9 @@
 
 
 install:	aliki aliki-rt
-	install -m 755 aliki    $(DESTDIR)$(PREFIX)/bin
-	install -m 755 aliki-rt $(DESTDIR)$(PREFIX)/bin
+	/usr/bin/install -d              $(DESTDIR)$(PREFIX)/bin
+	/usr/bin/install -m 755 aliki    $(DESTDIR)$(PREFIX)/bin
+	/usr/bin/install -m 755 aliki-rt $(DESTDIR)$(PREFIX)/bin
 
 clean:
 	/bin/rm -f *~ *.o *.a *.d *.so