View | Details | Raw Unified | Return to bug 79039
Collapse All | Expand All

(-)Makefile (-3 / +2 lines)
Lines 19-32 Link Here
19
19
20
USE_BZIP2=	yes
20
USE_BZIP2=	yes
21
USE_REINPLACE=	yes
21
USE_REINPLACE=	yes
22
USE_GETOPT_LONG=yes
23
MAKE_ENV+=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
22
24
23
DOCS=	AUTHORS CHANGELOG README
25
DOCS=	AUTHORS CHANGELOG README
24
26
25
MAN8=		biosdecode.8 dmidecode.8 ownership.8 vpddecode.8
27
MAN8=		biosdecode.8 dmidecode.8 ownership.8 vpddecode.8
26
28
27
post-patch:
28
	${REINPLACE_CMD} -e "s@^(CC|PREFIX).*@@" ${WRKSRC}/Makefile
29
30
.if !defined(NOPORTDOCS)
29
.if !defined(NOPORTDOCS)
31
post-install:
30
post-install:
32
	${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}
31
	${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}
(-)files/patch-Makefile (+27 lines)
Added Link Here
1
--- Makefile-	Sun Mar 20 13:48:58 2005
2
+++ Makefile	Sun Mar 20 13:49:09 2005
3
@@ -8,9 +8,9 @@
4
 #	Licensed under the GNU Public License.
5
 #
6
 
7
-CC      = gcc
8
+CC      ?= gcc
9
 CFLAGS  = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
10
-          -Wcast-align -Wwrite-strings -Wmissing-prototypes
11
+          -Wcast-align -Wwrite-strings -Wmissing-prototypes ${CPPFLAGS}
12
 #CFLAGS += -DBIGENDIAN
13
 #CFLAGS += -DALIGNMENT_WORKAROUND
14
 
15
@@ -19,10 +19,10 @@
16
 #CFLAGS += -g
17
 
18
 # Pass linker flags here
19
-LDFLAGS =
20
+LDFLAGS ?=
21
 
22
 DESTDIR =
23
-prefix  = /usr/local
24
+prefix  = ${PREFIX}
25
 sbindir = $(prefix)/sbin
26
 mandir  = $(prefix)/man
27
 man8dir = $(mandir)/man8

Return to bug 79039