2012-04-07 14:22:27 -06:00
|
|
|
# $OpenBSD: Makefile,v 1.21 2012/04/07 20:22:27 matthieu Exp $
|
2008-03-25 17:41:50 -06:00
|
|
|
.include <bsd.xconf.mk>
|
2007-04-09 13:11:43 -06:00
|
|
|
|
2007-08-25 13:17:16 -06:00
|
|
|
SUBDIR= icons resize
|
2007-04-09 13:11:43 -06:00
|
|
|
|
|
|
|
PROG= xterm
|
2011-06-23 16:48:59 -06:00
|
|
|
MAN= xterm.1 uxterm.1 koi8rxterm.1
|
2007-04-09 13:11:43 -06:00
|
|
|
|
|
|
|
BINGRP= utmp
|
|
|
|
BINMODE= 2755
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${.CURDIR} -I${X11BASE}/include \
|
|
|
|
-I${X11BASE}/include/freetype2 \
|
|
|
|
-DHAVE_CONFIG_H -DCSRG_BASED \
|
2009-04-04 09:10:44 -06:00
|
|
|
-DFUNCPROTO=15 -DNARROWPROTO -DXFREE86_FT2 -DUTMP \
|
|
|
|
-DDEF_ALLOW_FONT=False -DDEF_ALLOW_TCAP=False \
|
|
|
|
-DDEF_ALLOW_WINDOW=False
|
2007-05-11 00:42:50 -06:00
|
|
|
LDADD+= -L${X11BASE}/lib -lXaw -lXpm -lXt -lSM -lICE \
|
2011-03-08 13:48:59 -07:00
|
|
|
-lXmu -lXft -lXrender -lX11 -lxcb -lXext -lXau -lXdmcp \
|
2007-04-09 13:11:43 -06:00
|
|
|
-lfontconfig -lexpat -lfreetype -lutil -ltermcap -lz
|
|
|
|
|
2007-06-15 13:43:57 -06:00
|
|
|
SRCS= TekPrsTbl.c Tekproc.c VTPrsTbl.c button.c cachedGCs.c \
|
|
|
|
charclass.c xtermcap.c charproc.c charsets.c cursor.c \
|
2009-09-05 09:58:09 -06:00
|
|
|
data.c doublechr.c fontutils.c input.c linedata.c main.c menu.c \
|
2007-06-15 13:43:57 -06:00
|
|
|
misc.c precompose.c print.c ptydata.c wcwidth.c screen.c \
|
2011-08-18 14:27:03 -06:00
|
|
|
scrollback.c scrollbar.c tabs.c trace.c util.c xstrings.c
|
2007-04-09 13:11:43 -06:00
|
|
|
|
2011-06-23 16:48:59 -06:00
|
|
|
MANDIR= ${X11BASE}/man/man
|
2007-04-09 13:11:43 -06:00
|
|
|
XETC?= /etc/X11
|
|
|
|
|
2012-04-07 14:22:27 -06:00
|
|
|
.if ${MACHINE_ARCH} == "sh"
|
|
|
|
charproc.o: charproc.c
|
|
|
|
${CC} -O1 -c ${CPPFLAGS} ${.CURDIR}/charproc.c
|
|
|
|
|
|
|
|
screen.o: screen.c
|
|
|
|
${CC} -O1 -c ${CPPFLAGS} ${.CURDIR}/screen.c
|
|
|
|
.endif
|
|
|
|
|
2008-02-16 02:40:00 -07:00
|
|
|
.SUFFIXES: .man .1
|
|
|
|
|
|
|
|
.man.1:
|
|
|
|
sed -e 's#__vendorversion__#"X Window System"#g' \
|
|
|
|
-e 's#__mansuffix__#1#g' \
|
2008-03-22 06:40:02 -06:00
|
|
|
-e 's#__miscmansuffix__#7#g' \
|
2008-02-16 02:40:00 -07:00
|
|
|
-e 's#__apploaddir__#${X11ETC}/app-defaults#g' \
|
|
|
|
< $< > $@
|
|
|
|
|
|
|
|
CLEANFILES+= ${MAN}
|
2007-04-09 13:11:43 -06:00
|
|
|
|
|
|
|
afterinstall:
|
|
|
|
${INSTALL} ${INSTALL_COPY} -m 755 ${.CURDIR}/uxterm \
|
|
|
|
${DESTDIR}${BINDIR}
|
2010-05-08 06:20:46 -06:00
|
|
|
${INSTALL} ${INSTALL_COPY} -m 755 ${.CURDIR}/koi8rxterm \
|
|
|
|
${DESTDIR}${BINDIR}
|
|
|
|
${INSTALL_DATA} ${.CURDIR}/XTerm.ad \
|
2007-04-09 13:11:43 -06:00
|
|
|
${DESTDIR}${XETC}/app-defaults/XTerm
|
2010-05-08 06:20:46 -06:00
|
|
|
${INSTALL_DATA} ${.CURDIR}/XTerm-col.ad \
|
2007-04-09 13:11:43 -06:00
|
|
|
${DESTDIR}${XETC}/app-defaults/XTerm-color
|
2010-05-08 06:20:46 -06:00
|
|
|
${INSTALL_DATA} ${.CURDIR}/UXTerm.ad \
|
2007-04-09 13:11:43 -06:00
|
|
|
${DESTDIR}${XETC}/app-defaults/UXTerm
|
2010-05-08 06:20:46 -06:00
|
|
|
${INSTALL_DATA} ${.CURDIR}/KOI8RXTerm.ad \
|
2008-02-16 02:40:00 -07:00
|
|
|
${DESTDIR}${XETC}/app-defaults/KOI8RXTerm
|
2007-04-09 13:11:43 -06:00
|
|
|
|
|
|
|
obj: _xenocara_obj
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.include <bsd.xorg.mk>
|