View | Details | Raw Unified | Return to bug 22993
Collapse All | Expand All

(-)print/tr2latex/Makefile (-5 / +10 lines)
Lines 16-27 Link Here
16
16
17
IGNOREFILES=	${DISTNAME}${EXTRACT_SUFX}
17
IGNOREFILES=	${DISTNAME}${EXTRACT_SUFX}
18
18
19
MAKEFILE=	Makefile.unix
20
MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}"
21
ALL_TARGET=	tr2latex
19
MAN1=		tr2latex.1
22
MAN1=		tr2latex.1
20
23
21
post-extract:
24
do-install:
22
	${CP} ${WRKSRC}/Makefile.unix ${WRKSRC}/Makefile
25
	${INSTALL_PROGRAM} ${WRKSRC}/tr2latex ${PREFIX}/bin/tr2latex
23
26
	${INSTALL_MAN} ${WRKSRC}/tr2latex.man ${MANPREFIX}/man/man1/tr2latex.1
24
pre-install:
27
	@${MKDIR} ${PREFIX}/share/texmf/tex/latex/misc
25
	${MKDIR} ${PREFIX}/share/texmf/tex/latex/misc
28
.for file in troffman.sty troffms.sty
29
	${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/texmf/tex/latex/misc
30
.endfor
26
31
27
.include <bsd.port.mk>
32
.include <bsd.port.mk>
(-)print/tr2latex/files/patch-aa (-44 lines)
Lines 1-44 Link Here
1
--- Makefile.orig	Tue Jan  6 09:45:40 1998
2
+++ Makefile	Tue Jan  6 09:50:35 1998
3
@@ -14,7 +14,7 @@
4
 #     (recommended by David Osborne, cczdao@mips.ccc.nottingham.ac.uk).
5
 # Add -Dtops20 to CFLAGS if you're running it under tops20.
6
 # Add -DDEBUG for some additional debugging code.
7
-CFLAGS = -O -DDEBUG
8
+#CFLAGS = -O -DDEBUG
9
 
10
 LINTFLAGS = -abchnpux
11
 CFILES = tr2latex.c tr.c subs.c version.c
12
@@ -28,10 +28,10 @@
13
 
14
 # BINDIR gives the path where the executable should be placed after
15
 # installation.
16
-BINDIR = /sys/tex/bin
17
+BINDIR = ${PREFIX}/bin
18
 
19
 # TEXDIR gives the path where the tex library resides (fonts, macros ...)
20
-TEXDIR = /sys/tex/lib
21
+TEXDIR = ${PREFIX}/share/texmf/tex/latex/misc
22
 
23
 # MANSECTION gives the section number of the online manual pages where to
24
 # place the tr2latex manual page.
25
@@ -41,8 +41,9 @@
26
 # place the manual page into the local section by giving MANSECTION as
27
 # l (``ell'') and setting MANDIR to /usr/man
28
 MANSECTION = 1
29
-MANDIR = /sys/tex/man
30
+MANDIR = ${PREFIX}/man
31
 
32
+all: tr2latex
33
 
34
 tr2latex: tr2latex.o tr.o subs.o version.o
35
 	$(CC) $(CFLAGS) tr2latex.o tr.o subs.o version.o -o tr2latex
36
@@ -60,7 +61,7 @@
37
 	install -c -m 0755 tr2latex $(BINDIR)/tr2latex
38
 	install -c -m 0444 tr2latex.man \
39
 			$(MANDIR)/man$(MANSECTION)/tr2latex.$(MANSECTION)
40
-	install -c -m 0444 troffman.sty troffms.sty $(TEXDIR)/macros
41
+	install -c -m 0444 troffman.sty troffms.sty $(TEXDIR)
42
 
43
 clean:
44
 	\rm -f *.o core *junk* tr2latex lint.lst *~ TAGS tags

Return to bug 22993