freebsd-ports/sysutils/phantom/files/patch-Makefile
Dmitry Marakasov 27d39a7ce0 - Fix binary installation
- Switch to USES=tar

Approved by:	portmgr blanket
2015-06-05 16:30:00 +00:00

22 lines
497 B
Text

--- Makefile.orig 2005-07-08 09:30:27 UTC
+++ Makefile
@@ -1,8 +1,8 @@
VERSION=1.2
DEBUG=#-g
-LDFLAGS=$(DEBUG)
-CFLAGS=-O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG)
+LDFLAGS+=$(DEBUG)
+CFLAGS+=-DVERSION=\"$(VERSION)\" -DMADV_SEQUENTIAL $(DEBUG)
OBJS=phantom.o
@@ -12,7 +12,7 @@ phantom: $(OBJS)
$(CC) -Wall -W $(OBJS) $(LDFLAGS) -o phantom
install: phantom
- cp phantom $(DESTDIR)/usr/bin
+ ${BSD_INSTALL_PROGRAM} phantom $(DESTDIR)${PREFIX}/bin
clean:
rm -f $(OBJS) core phantom