sysutils/mcelog: Fix DF build by respecting CFLAGS and USE+=alias

PR:		194825
Submitted by:	ftigeot
Approved by:	maintainer (Jeremy Chadwick)
This commit is contained in:
John Marino 2014-11-05 23:47:04 +00:00
parent 8ed1b2cd62
commit 0e5aee2375
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=372212
2 changed files with 8 additions and 8 deletions

View File

@ -21,7 +21,7 @@ ONLY_FOR_ARCHS= amd64 i386 ia64
PATCH_STRIP= -p1
USES= gmake
USES= alias gmake
MAKE_ENV+= FREEBSD=1
LDFLAGS= -lkvm

View File

@ -1,13 +1,13 @@
--- Makefile.orig 2010-01-20 18:36:52.000000000 -0800
+++ Makefile 2012-09-22 01:50:21.019688386 -0700
@@ -1,5 +1,5 @@
CFLAGS := -g -Os
--- Makefile.orig 2010-01-21 02:36:52 UTC
+++ Makefile
@@ -1,5 +1,4 @@
-CFLAGS := -g -Os
-prefix := /usr
+prefix := /usr/local
etcprefix :=
# Define appropiately for your distribution
# DOCDIR := /usr/share/doc/packages/mcelog
@@ -28,11 +28,18 @@
@@ -28,11 +27,18 @@ all: mcelog
.PHONY: install clean depend
@ -29,7 +29,7 @@
DISKDB_OBJ := diskdb.o dimm.o db.o
CLEAN := mcelog dmi tsc dbquery .depend .depend.X dbquery.o ${DISKDB_OBJ}
DOC := mce.pdf
@@ -48,7 +55,7 @@
@@ -48,7 +54,7 @@ endif
SRC := $(OBJ:.o=.c)
@ -38,7 +38,7 @@
# dbquery intentionally not installed by default
install: mcelog
@@ -82,8 +89,6 @@
@@ -82,8 +88,6 @@ depend: .depend
.depend: ${SRC}
${CC} -MM -I. ${SRC} > .depend.X && mv .depend.X .depend