1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/audio/rexima/files/patch-Makefile
Emanuel Haupt f5a8888a1e - Support staging
- Add LICENSE
2014-02-16 11:03:11 +00:00

34 lines
859 B
Plaintext

--- Makefile.orig 2003-06-30 14:45:27.000000000 +0200
+++ Makefile 2014-02-16 12:01:21.454847187 +0100
@@ -1,13 +1,12 @@
# Makefile - makefile for rexima
-CC=gcc
-CFLAGS=-O -Wall
+CC?=cc
+CFLAGS?=-O -pipe
# Set BINDIR to directory for binary,
# MANDIR to directory for man page.
# Usually it will be simpler to just set PREFIX.
#
-PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/man/man1
@@ -20,11 +19,11 @@
$(CC) $(CFLAGS) -o rexima rexima.o -lncurses
installdirs:
- /bin/sh ./mkinstalldirs $(BINDIR) $(MANDIR)
+ /bin/sh ./mkinstalldirs $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)
install: rexima installdirs
- install -s -m 755 rexima $(BINDIR)
- install -m 644 rexima.1 $(MANDIR)
+ install -s -m 755 rexima $(DESTDIR)$(BINDIR)
+ install -m 644 rexima.1 $(DESTDIR)$(MANDIR)
uninstall:
$(RM) $(BINDIR)/rexima $(MANDIR)/rexima.1