aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/groff/xditview/Makefile
blob: bce085ec7a8e19d9dc7459d6664c9e117e081947 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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>