freebsd-ports/sysutils/xsysstats/files/patch-Makefile.in
Stefan Eßer af5c72ccd0 Fix build with -fno-common
While here add a license (extracted from the README file).
Redistribution is only allowed free of charge.
2020-09-22 11:56:27 +00:00

25 lines
662 B
Text

--- Makefile.in.orig 2000-05-30 06:07:38 UTC
+++ Makefile.in
@@ -1,6 +1,6 @@
-CC = @CC@
-CFLAGS = @CFLAGS@
-CPPFLAGS = @CPPFLAGS@
+#CC = @CC@
+CFLAGS = @CFLAGS@ -I@x_includes@
+#CPPFLAGS = @CPPFLAGS@
LIBS = @LIBS@
LDFLAGS = @LDFLAGS@
@@ -31,10 +31,8 @@ xysstats.o: xsysstats.c xsysstats.h config.h headers.h
porting.o: xsysstats.c xsysstats.h config.h headers.h
install:
- mkdir -p $(BINDIR)
- $(INSTALL) xsysstats $(BINDIR)/xsysstats
- mkdir -p $(MANDIR)
- $(INSTALL) xsysstats.man $(MANDIR)/xsysstats.1
+ $(INSTALL) xsysstats $(DESTDIR)$(BINDIR)/xsysstats
+ $(INSTALL) xsysstats.man $(DESTDIR)$(MANDIR)/xsysstats.1
clean:
rm -f *.o core xsysstats