summaryrefslogtreecommitdiff
path: root/devel/dumpet/patches/patch-Makefile
blob: 71014a87dfe30e38d16bce7d750a75779047d7fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-Makefile,v 1.1 2016/08/27 11:53:39 nonaka Exp $

--- Makefile.orig	2010-08-25 16:54:11.000000000 +0000
+++ Makefile	2016-08-27 11:42:25.542635771 +0000
@@ -2,9 +2,7 @@
 VERSION=2.1
 GITVERSION=$(shell [ -d .git ] && git rev-list  --abbrev-commit  -n 1 HEAD  |cut -b 1-8)
 
-CFLAGS:=-g3 -O2 -Wall -Werror
-LFLAGS:=
-CC:=gcc
+CFLAGS += -Wall
 
 CFLAGS += $(shell pkg-config --cflags libxml-2.0)
 LFLAGS += -lpopt $(shell pkg-config --libs libxml-2.0)
@@ -21,8 +19,8 @@ clean : 
 	@rm -vf *.o dumpet
 
 install : all
-	install -D -m 0755 dumpet ${DESTDIR}/usr/bin/dumpet
-	install -D -m 0644 dumpet.1 ${DESTDIR}/usr/share/man/man1/dumpet.1
+	${BSD_INSTALL_PROGRAM} dumpet ${DESTDIR}${PREFIX}/bin/dumpet
+	${BSD_INSTALL_MAN} dumpet.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/dumpet.1
 
 test-archive: clean all dumpet-$(VERSION)-$(GITVERSION).tar.bz2