pkgsrc/devel/dumpet/patches/patch-Makefile
nonaka 5c5f76add9 PR/51445: Import dumpet 2.1 as devel/dumpet.
dumpet is a tool to dump information about bootable CDs and other similar.
2016-08-27 11:53:39 +00:00

26 lines
861 B
Text

$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