Use FAKE_FLAGS instead of patching Makefile_in.

Pointed out by ajacoutot@
This commit is contained in:
landry 2010-05-13 17:41:27 +00:00
parent 439d0e1670
commit 767cb73c10
2 changed files with 5 additions and 17 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/05/13 16:05:05 landry Exp $
# $OpenBSD: Makefile,v 1.2 2010/05/13 17:41:27 landry Exp $
COMMENT= lightweight PDF document viewer with vi bindings
DISTNAME= apvlv-0.0.9.6
PKGNAME= ${DISTNAME}p0
CATEGORIES= print
HOMEPAGE= http://code.google.com/p/apvlv/
@ -23,7 +24,8 @@ WANTLIB += pixman-1 png pthread-stubs stdc++ xcb z
LIB_DEPENDS= gtk-x11-2.0.>=0.14,gdk-x11-2.0.>=0.14,gdk_pixbuf-2.0.>=0.14::x11/gtk+2 \
poppler.>=3,poppler-glib.>=3::print/poppler
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS+=--without-djvu
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS+= --without-djvu
FAKE_FLAGS = sysconfdir=${PREFIX}/share/examples/apvlv
.include <bsd.port.mk>

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2010/05/13 16:05:05 landry Exp $
--- Makefile.in.orig Tue May 4 09:16:21 2010
+++ Makefile.in Tue May 4 09:17:44 2010
@@ -711,8 +711,8 @@ uninstall-man: uninstall-man1
install-exec-local:
- mkdir -p $(DESTDIR)$(sysconfdir)
- $(INSTALL) -m 0644 apvlvrc.example $(DESTDIR)$(sysconfdir)/apvlvrc
+ mkdir -p $(DESTDIR)/${TRUEPREFIX}/share/examples/apvlv
+ $(INSTALL) -m 0644 apvlvrc.example $(DESTDIR)/${TRUEPREFIX}/share/examples/apvlv/apvlvrc
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: