diff options
Diffstat (limited to 'audio/aylet/files/patch-Makefile')
-rw-r--r-- | audio/aylet/files/patch-Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/audio/aylet/files/patch-Makefile b/audio/aylet/files/patch-Makefile new file mode 100644 index 000000000000..bbb4aead136b --- /dev/null +++ b/audio/aylet/files/patch-Makefile @@ -0,0 +1,38 @@ +--- Makefile.orig 2005-12-18 03:05:08 UTC ++++ Makefile +@@ -2,7 +2,7 @@ + + # You need an ANSI C compiler. gcc is probably best. + # +-CC=gcc ++CC?=gcc + + # Compiler options (and sound driver) to use. This one is for Linux, + # and other OSS-using systems. +@@ -19,10 +19,10 @@ CURSES_LIB=-lncurses + + # dest for make install + # +-PREFIX=/usr/local +-BINDIR=$(PREFIX)/bin ++PREFIX?=/usr/local ++BINDIR=$(DESTDIR)$(PREFIX)/bin + XBINDIR=$(BINDIR) +-MANDIR=$(PREFIX)/man/man1 ++MANDIR=$(DESTDIR)$(PREFIX)/man/man1 + + # if you want the X version to be installed in the usual X executables + # directory, uncomment this (altering if necessary): +@@ -52,10 +52,9 @@ installdirs: + /bin/sh ./mkinstalldirs $(BINDIR) $(XBINDIR) $(MANDIR) + + install: installdirs +- if [ -f aylet ]; then install -m 755 aylet $(BINDIR); fi +- if [ -f xaylet ]; then install -m 755 xaylet $(XBINDIR); fi ++ if [ -f aylet ]; then strip aylet; install -m 755 aylet $(BINDIR); fi ++ if [ -f xaylet ]; then strip xaylet; install -m 755 xaylet $(XBINDIR); fi + install -m 644 aylet.1 $(MANDIR) +- ln -sf $(MANDIR)/aylet.1 $(MANDIR)/xaylet.1 + + uninstall: + $(RM) $(BINDIR)/aylet $(XBINDIR)/xaylet |