$NetBSD: patch-aa,v 1.3 2012/04/09 01:29:16 silasdb Exp $

--- Makefile.orig	2006-09-10 00:25:16.000000000 +0000
+++ Makefile
@@ -7,14 +7,14 @@ export RELEASE=beta2
 #altere a linha abaixo se o seu tetex não puder se detetado
 #pelo comando kpsewich, na dúvida faça um "make test"
 #TEXDIR= /tmp/test
-export TEXDIR= ${shell kpsewhich --expand-path='$$TEXMFMAIN'}
+export TEXDIR=${DESTDIR}/${PREFIX}/share/texmf-dist
 
-export USRLOCAL=/usr/local/bin
+export USRLOCAL=${DESTDIR}/${PREFIX}/bin
 
 #Do "man lyx":
 #The system directory is determined by  searching  for  the
 #       file  "chkconfig.ltx".
-export LYXDIR=${dir ${shell  find /usr/share/lyx -name chkconfig.ltx}}
+export LYXDIR=
 
 #diretório corrente onde se expandiu o cvs do abntex
 export ABNTEXDIR=$(notdir $(shell pwd))
@@ -33,11 +33,11 @@ export HPDIR =pagina
 export SUBMITTER=$(shell logname)@$(shell hostname)
 
 #opções para comandos comuns:
-export OPS = --symbolic
-export OPSF= --symbolic --force
-export OPVR= --verbose --recursive
-export OPRF= --recursive --force
-export OPVF= --verbose --force
+export OPS = -s
+export OPSF= -s -f
+export OPVR= -v -R
+export OPRF= -R -f
+export OPVF= -v -f
 #opções comuns para tar
 export OPTAR= --owner=0 --group=0 -zchv
 
@@ -86,7 +86,8 @@ export TEMPDIR=/tmp
 #diretório para geração de pacotes
 export PACKDIR=abntex-${VERSION}
 
-all: doc
+all:
+	true
 
 doc: doc-all
 
@@ -119,7 +120,8 @@ linux-doc-tgz: doc
 
 #install e uninstall específico para tetex localizado em ${TEXDIR}
 install-tex:
-	cp ${OPVR} --preserve texmf/* ${TEXDIR}
+	mkdir -p ${TEXDIR}
+	cp ${OPVR} texmf/* ${TEXDIR}
 
 install-lyx:
 ifneq (${LYXDIR},)
@@ -127,7 +129,8 @@ ifneq (${LYXDIR},)
 endif
 
 install-bin:
-	cp ${OPVR} --preserve bin/* ${USRLOCAL}
+	mkdir -p ${USRLOCAL}
+	cp ${OPVR} bin/* ${USRLOCAL}
 
 post-install:
 	texhash
