$NetBSD: patch-aa,v 1.6 2006/04/07 03:01:36 minskim Exp $

--- Makefile.orig	2005-11-08 21:18:37.000000000 +0100
+++ Makefile
@@ -3,13 +3,13 @@
 # Id: Makefile,v 2.0 96/02/19 23:54:15 gvr Exp 
 
 # You will almost certainly want to change these
-BASEDIR=/usr/TeX
-DESTDIR=${BASEDIR}/bin
+BASEDIR=${PREFIX}/share
+DESTDIR=${PREFIX}/bin
 #DEFSFILE=/home/mike/LGrind/lgrindef
-DEFSFILE=${BASEDIR}/texmf/tex/latex/lgrind/lgrindef
-TEXINPUTS=${BASEDIR}/texmf/tex/latex/lgrind
-DOC=${BASEDIR}/texmf/doc/latex/lgrind
-MAN=${BASEDIR}/man
+DEFSFILE=${PKG_LOCALTEXMFPREFIX}/tex/latex/lgrind/lgrindef
+TEXINPUTS=${PKG_LOCALTEXMFPREFIX}/tex/latex/lgrind
+DOC=${PKG_LOCALTEXMFPREFIX}/doc/latex/lgrind
+MAN=${PREFIX}/man
 
 CC=gcc
 INSTALL=install
