pkgsrc/textproc/o3read/patches/patch-aa
2009-07-07 20:58:04 +00:00

30 lines
821 B
Text

$NetBSD: patch-aa,v 1.2 2009/07/07 20:58:04 joerg Exp $
--- Makefile.orig 2005-01-07 09:28:47.000000000 +0100
+++ Makefile
@@ -2,11 +2,8 @@
PACKAGE = o3read
VERSION = 0.0.4
-CC = gcc
-CFLAGS = -Wall -ansi -pedantic -O -g
-PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
-MANDIR = $(PREFIX)/man/man1
+MANDIR = $(PREFIX)/$(PKGMANDIR)/man1
DOCS = COPYING INSTALL README TODO ChangeLog filformat.sxw
BINS = o3read o3totxt o3tohtml utf8tolatin1
SRCS = o3read.h main.c o3read.c o3totxt.c o3tohtml.c utf8tolatin1.c
@@ -42,9 +39,9 @@ strip: $(BINS)
strip $(BINS)
install: $(BINS)
- mkdir -p $(BINDIR) $(MANDIR)
- cp $(BINS) $(BINDIR)
- cp $(MANS) $(MANDIR)
+ mkdir -p ${DESTDIR}$(BINDIR) ${DESTDIR}$(MANDIR)
+ cp $(BINS) ${DESTDIR}$(BINDIR)
+ cp $(MANS) ${DESTDIR}$(MANDIR)
uninstall:
cd $(BINDIR) && rm -f $(BINS)