freebsd-ports/astro/phoon/files/patch-Makefile
Emanuel Haupt e4f0c42ffc - Support staging
- Repect CC
- Respect CFLAGS
- Strip binary
2014-02-12 21:42:19 +00:00

32 lines
603 B
Text

--- ./Makefile.orig 2003-01-21 04:04:36.000000000 +0100
+++ ./Makefile 2014-02-12 22:39:19.404018490 +0100
@@ -1,15 +1,15 @@
# Makefile for phoon
-BINDIR = /usr/local/bin
-MANDIR = /usr/local/man/man1
+BINDIR = $(DESTDIR)$(PREFIX)/bin
+MANDIR = $(DESTDIR)$(MANPREFIX)/man/man1
DEFINES = -DOS_BSD
#DEFINES = -DOS_SYSV
-CC = gcc
-CFLAGS = -O $(DEFINES)
+CC ?= gcc
+CFLAGS += $(DEFINES)
-LDFLAGS = -s
+#LDFLAGS = -s
all: phoon
@@ -24,7 +24,7 @@
astro.o: astro.h
install: all
- rm -f $(BINDIR)/phoon
+ strip phoon
cp phoon $(BINDIR)
rm -f $(MANDIR)/phoon.1
cp phoon.1 $(MANDIR)