aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/groff/xditview/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/groff/xditview/Makefile')
-rw-r--r--gnu/usr.bin/groff/xditview/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/usr.bin/groff/xditview/Makefile b/gnu/usr.bin/groff/xditview/Makefile
new file mode 100644
index 000000000000..223d0515e98a
--- /dev/null
+++ b/gnu/usr.bin/groff/xditview/Makefile
@@ -0,0 +1,25 @@
+.if exists(/usr/X386/include)
+.if exists(/usr/X386/lib)
+.if exists(${DESTDIR}/usr/X386/bin)
+.if exists(${DESTDIR}/usr/X386/man/man1)
+.if exists(${DESTDIR}/usr/X386/lib/X11/app-defaults)
+
+BINDIR= /usr/X386/bin
+MANDIR= /usr/X386/man/man
+
+PROG= gxditview
+CFLAGS+= -I/usr/X386/include -DFONTPATH=\"/usr/share/groff_font\"
+SRCS+= xditview.c Dvi.c draw.c font.c lex.c page.c parse.c \
+ XFontName.c DviChar.c device.c
+LDADD+= -L/usr/X386/lib -lXaw -lXmu -lXt -lXext -lX11 -lm
+
+afterinstall:
+ install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/GXditview.ad \
+ ${DESTDIR}/usr/X386/lib/X11/app-defaults/GXditview
+.endif
+.endif
+.endif
+.endif
+.endif
+
+.include <bsd.prog.mk>