diff options
Diffstat (limited to 'gnu/usr.bin/groff/xditview/Makefile')
| -rw-r--r-- | gnu/usr.bin/groff/xditview/Makefile | 30 |
1 files changed, 30 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..bce085ec7a8e --- /dev/null +++ b/gnu/usr.bin/groff/xditview/Makefile @@ -0,0 +1,30 @@ +.if exists(${X11BASE}/include) +.if exists(${X11BASE}/lib) +.if exists(${DESTDIR}${X11BASE}/bin) +.if exists(${DESTDIR}${X11BASE}/man/man1) +.if exists(${DESTDIR}${X11BASE}/lib/X11/app-defaults) + +BINDIR= ${X11BASE}/bin +MANDIR= ${X11BASE}/man/man + +PROG= gxditview +CFLAGS+= -I${X11BASE}/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 +LDDESTDIR+= -L${X11BASE}/lib +LDADD+= -lXaw -lXmu -lXt -lXext -lX11 -lm +DPADD+= ${X11BASE}/lib/libXaw.a ${X11BASE}/lib/libXmu.a \ + ${X11BASE}/lib/libXt.a ${X11BASE}/lib/libXext.a \ + ${X11BASE}/lib/libX11.a + +afterinstall: + install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${.CURDIR}/GXditview.ad \ + ${DESTDIR}${X11BASE}/lib/X11/app-defaults/GXditview +.endif +.endif +.endif +.endif +.endif + +.include <bsd.prog.mk> |
