opnsense-ports/audio/rexima/files/patch-Makefile
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

33 lines
859 B
Text

--- 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