openbsd-ports/x11/podbrowser/patches/patch-Makefile
landry 34993535fd Import podbrowser 0.12 :
PodBrowser is a graphical documentation browser for Perl. You can view the
documentation for Perl's builtin functions, its "perldoc" pages, pragmatic
modules and the default and user-installed modules.
2009-09-05 08:44:15 +00:00

35 lines
1.1 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.1.1.1 2009/09/05 08:44:15 landry Exp $
--- Makefile.orig Mon Sep 17 19:36:17 2007
+++ Makefile Fri Sep 4 04:04:45 2009
@@ -1,10 +1,10 @@
# $Id: patch-Makefile,v 1.1.1.1 2009/09/05 08:44:15 landry Exp $
NAME=podbrowser
-PREFIX=/usr/local
+PREFIX?=/usr/local
BINDIR=$(PREFIX)/bin
DATADIR=$(PREFIX)/share
ICONDIR=$(DATADIR)/icons/hicolor/48x48/apps
-MANDIR=$(DATADIR)/man/man1
+MANDIR=$(PREFIX)/man/man1
all: podbrowser
@@ -12,7 +12,7 @@ podbrowser:
@mkdir -p build
perl -ne 's!\@PREFIX\@!$(PREFIX)!g ; s!\@LIBDIR\@!$(LIBDIR)!g ; print' < $(NAME).pl > build/$(NAME)
- pod2man $(NAME).pl | gzip -c > build/$(NAME).1.gz
+ pod2man $(NAME).pl > build/$(NAME).1
install:
mkdir -p $(BINDIR) \
@@ -23,7 +23,7 @@ install:
install -m 0644 $(NAME).glade $(DATADIR)/$(NAME)/
install -m 0644 $(NAME).png $(ICONDIR)/
install -m 0644 $(NAME).desktop $(DATADIR)/applications/
- install -m 0644 build/$(NAME).1.gz $(MANDIR)/
+ install -m 0644 build/$(NAME).1 $(MANDIR)/
install -m 0755 build/$(NAME) $(BINDIR)/$(NAME)
install -m 0755 html2ps-$(NAME) $(BINDIR)/html2ps-$(NAME)