summaryrefslogtreecommitdiff
path: root/print/tr2latex
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2000-11-22 15:04:55 +0000
committerKevin Lo <kevlo@FreeBSD.org>2000-11-22 15:04:55 +0000
commitf2ac9e546d364c2add3bb06ff1d2e501e453725a (patch)
treecf81695f54fae361d8a95fc187520f934aa03159 /print/tr2latex
parentAdd OpenMCU - a H323 Multipoint Control Unit. (diff)
- Support CC properly
- Support install macros PR: 22993 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=35343
Diffstat (limited to 'print/tr2latex')
-rw-r--r--print/tr2latex/Makefile15
-rw-r--r--print/tr2latex/files/patch-aa44
2 files changed, 10 insertions, 49 deletions
diff --git a/print/tr2latex/Makefile b/print/tr2latex/Makefile
index 58f3bf9a72ac..d8832b45d5b3 100644
--- a/print/tr2latex/Makefile
+++ b/print/tr2latex/Makefile
@@ -16,12 +16,17 @@ MAINTAINER= ports@FreeBSD.org
IGNOREFILES= ${DISTNAME}${EXTRACT_SUFX}
+MAKEFILE= Makefile.unix
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
+ALL_TARGET= tr2latex
MAN1= tr2latex.1
-post-extract:
- ${CP} ${WRKSRC}/Makefile.unix ${WRKSRC}/Makefile
-
-pre-install:
- ${MKDIR} ${PREFIX}/share/texmf/tex/latex/misc
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/tr2latex ${PREFIX}/bin/tr2latex
+ ${INSTALL_MAN} ${WRKSRC}/tr2latex.man ${MANPREFIX}/man/man1/tr2latex.1
+ @${MKDIR} ${PREFIX}/share/texmf/tex/latex/misc
+.for file in troffman.sty troffms.sty
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/texmf/tex/latex/misc
+.endfor
.include <bsd.port.mk>
diff --git a/print/tr2latex/files/patch-aa b/print/tr2latex/files/patch-aa
deleted file mode 100644
index 104ca42bd11d..000000000000
--- a/print/tr2latex/files/patch-aa
+++ /dev/null
@@ -1,44 +0,0 @@
---- Makefile.orig Tue Jan 6 09:45:40 1998
-+++ Makefile Tue Jan 6 09:50:35 1998
-@@ -14,7 +14,7 @@
- # (recommended by David Osborne, cczdao@mips.ccc.nottingham.ac.uk).
- # Add -Dtops20 to CFLAGS if you're running it under tops20.
- # Add -DDEBUG for some additional debugging code.
--CFLAGS = -O -DDEBUG
-+#CFLAGS = -O -DDEBUG
-
- LINTFLAGS = -abchnpux
- CFILES = tr2latex.c tr.c subs.c version.c
-@@ -28,10 +28,10 @@
-
- # BINDIR gives the path where the executable should be placed after
- # installation.
--BINDIR = /sys/tex/bin
-+BINDIR = ${PREFIX}/bin
-
- # TEXDIR gives the path where the tex library resides (fonts, macros ...)
--TEXDIR = /sys/tex/lib
-+TEXDIR = ${PREFIX}/share/texmf/tex/latex/misc
-
- # MANSECTION gives the section number of the online manual pages where to
- # place the tr2latex manual page.
-@@ -41,8 +41,9 @@
- # place the manual page into the local section by giving MANSECTION as
- # l (``ell'') and setting MANDIR to /usr/man
- MANSECTION = 1
--MANDIR = /sys/tex/man
-+MANDIR = ${PREFIX}/man
-
-+all: tr2latex
-
- tr2latex: tr2latex.o tr.o subs.o version.o
- $(CC) $(CFLAGS) tr2latex.o tr.o subs.o version.o -o tr2latex
-@@ -60,7 +61,7 @@
- install -c -m 0755 tr2latex $(BINDIR)/tr2latex
- install -c -m 0444 tr2latex.man \
- $(MANDIR)/man$(MANSECTION)/tr2latex.$(MANSECTION)
-- install -c -m 0444 troffman.sty troffms.sty $(TEXDIR)/macros
-+ install -c -m 0444 troffman.sty troffms.sty $(TEXDIR)
-
- clean:
- \rm -f *.o core *junk* tr2latex lint.lst *~ TAGS tags