mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 10:06:40 -04:00
Rename them to follow the make makepatch naming, and regenerate them. With hat: portmgr Sponsored by: Absolight
43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
--- Makefile.orig 2015-05-21 00:10:33 UTC
|
|
+++ Makefile
|
|
@@ -39,8 +39,8 @@ INCLUDES = $(SRCDIR)/crc32.h \
|
|
SLIBS= -pthread -lpcap
|
|
BINDIR=./bin
|
|
PROGRAM= $(BINDIR)/$(NAME)
|
|
-CFLAGS += -I/usr/local/include
|
|
-LDFLAGS += -L/usr/local/lib
|
|
+CFLAGS += -I$(LOCALBASE)/include
|
|
+LDFLAGS += -L$(LOCALBASE)/lib
|
|
INSTALL= install
|
|
|
|
|
|
@@ -48,11 +48,11 @@ INSTALL= install
|
|
# If, for some reason, you don't want debugging info to bewww
|
|
# logged, then comment the following line.
|
|
#
|
|
-CFLAGS+= -DDEBUG
|
|
+#CFLAGS+= -DDEBUG
|
|
|
|
# If you want the program with support for debuggers
|
|
# (gdb, etc), then uncomment the following line
|
|
-CFLAGS+= -g
|
|
+#CFLAGS+= -g
|
|
|
|
# turn on optimisation
|
|
CFLAGS += -O2
|
|
@@ -79,13 +79,10 @@ clean:
|
|
rm -f $(PROGRAM) *.o $(SRCDIR)/*.o *~
|
|
|
|
install:
|
|
- @if test "`id -u`" != "0" ; then \
|
|
- echo "You must be root to install" && exit 1 ; \
|
|
- fi ;
|
|
@echo "Installing spp binary"
|
|
- $(INSTALL) -c -m 755 $(PROGRAM) /usr/local/bin/
|
|
+ $(BSD_INSTALL_PROGRAM) $(PROGRAM) $(DESTDIR)$(PREFIX)/bin/
|
|
@echo "Installing manual page"
|
|
- $(INSTALL) -c -m 644 doc/spp.1 /usr/local/man/man1/
|
|
+ $(BSD_INSTALL_MAN) doc/spp.1 $(DESTDIR)$(PREFIX)/man/man1/
|
|
|
|
# target 'distro'
|
|
#
|