2017-06-18 15:09:07 -06:00
|
|
|
# $OpenBSD: Makefile,v 1.32 2017/06/18 21:09:07 espie 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
|
2016-10-24 13:55:37 -06:00
|
|
|
MAN= xterm.1
|
2007-04-09 13:11:43 -06:00
|
|
|
|
|
|
|
BINGRP= utmp
|
|
|
|
BINMODE= 2755
|
|
|
|
|
2014-05-09 13:56:40 -06:00
|
|
|
CPPFLAGS+= -I. -I${.CURDIR} -I${X11BASE}/include \
|
2007-04-09 13:11:43 -06:00
|
|
|
-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
|
2016-01-13 13:40:08 -07:00
|
|
|
LDADD+= -L${X11BASE}/lib -lXaw -lXpm -lXt -lSM -lICE -lXmu \
|
|
|
|
-lXft -lXrender -lXinerama -lX11 -lxcb -lXext -lXau -lXdmcp \
|
2007-04-09 13:11:43 -06:00
|
|
|
-lfontconfig -lexpat -lfreetype -lutil -ltermcap -lz
|
|
|
|
|
2016-10-24 13:31:35 -06:00
|
|
|
SRCS= VTPrsTbl.c button.c cachedGCs.c \
|
2007-06-15 13:43:57 -06:00
|
|
|
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 \
|
2013-03-09 07:45:38 -07:00
|
|
|
scrollback.c scrollbar.c tabs.c trace.c util.c version.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
|
|
|
|
2012-04-07 14:22:27 -06:00
|
|
|
.if ${MACHINE_ARCH} == "sh"
|
|
|
|
charproc.o: charproc.c
|
2014-04-11 16:58:12 -06:00
|
|
|
${CC} -O1 -fno-stack-protector -c ${CPPFLAGS} ${.CURDIR}/charproc.c
|
2012-04-07 14:22:27 -06:00
|
|
|
|
|
|
|
screen.o: screen.c
|
2014-04-11 16:58:12 -06:00
|
|
|
${CC} -O1 -fno-stack-protector -c ${CPPFLAGS} ${.CURDIR}/screen.c
|
2012-04-07 14:22:27 -06:00
|
|
|
.endif
|
|
|
|
|
2014-05-09 13:56:40 -06:00
|
|
|
misc.o: builtin_icons.h
|
|
|
|
|
|
|
|
# do this to quiet gcc -Wcast-qual warnings
|
|
|
|
builtin_icons.h :
|
|
|
|
@echo "#if OPT_BUILTIN_XPMS" >$@
|
|
|
|
@echo "#include <icons/mini.xterm.xpms>" >>$@
|
|
|
|
@echo "#include <icons/filled-xterm.xpms>" >>$@
|
|
|
|
@echo "#include <icons/xterm.xpms>" >>$@
|
|
|
|
@echo "#include <icons/xterm-color.xpms>" >>$@
|
|
|
|
@echo "#else" >>$@
|
|
|
|
@sed -e 's/static char \* /static const char * /' $(.CURDIR)/icons/mini.xterm_48x48.xpm >>$@
|
|
|
|
@echo "#endif" >>$@
|
|
|
|
@echo "made $@"
|
|
|
|
|
2016-11-03 08:25:06 -06:00
|
|
|
.SUFFIXES: .hin .def
|
|
|
|
|
|
|
|
.def.hin:
|
|
|
|
awk '/^CASE_/{printf "#define %s %d\n", $$1, n++}' < $< >$@
|
|
|
|
|
|
|
|
beforedepend: builtin_icons.h VTparse.hin
|
2017-06-18 15:09:07 -06:00
|
|
|
BUILDFIRST = builtin_icons.h VTparse.hin
|
2014-05-09 13:56:40 -06:00
|
|
|
|
2008-02-16 02:40:00 -07:00
|
|
|
.SUFFIXES: .man .1
|
|
|
|
|
2014-07-31 14:13:40 -06:00
|
|
|
PATCH_NUM != sed -n '/XTERM_PATCH/s/[^0-9]*//gp' ${.CURDIR}/version.h
|
|
|
|
PATCH_YMD != sed -n '/XTERM_DATE/s,[^0-9/.-]*,,gp' ${.CURDIR}/version.h
|
|
|
|
|
2008-02-16 02:40:00 -07:00
|
|
|
.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' \
|
2014-08-13 15:02:16 -06:00
|
|
|
-e 's#__apploaddir__#${X11BASE}/share/X11/app-defaults#g' \
|
2014-07-31 14:13:40 -06:00
|
|
|
-e 's%__app_version__%Patch\ \#'$(PATCH_NUM)% \
|
|
|
|
-e 's%__app_date__%'${PATCH_YMD}% \
|
|
|
|
-e s%__default_termname__%xterm% \
|
|
|
|
-e s%__default_termid__%vt100% \
|
|
|
|
-e s%__alt_sends_esc__%false% \
|
|
|
|
-e s%__meta_sends_esc__%false% \
|
|
|
|
-e s%__backarrow_is_bs__%true% \
|
|
|
|
-e s%__backarrow_is_erase__%true% \
|
|
|
|
-e s%__delete_is_del__%true% \
|
|
|
|
-e s%__default_class__%XTerm% \
|
|
|
|
-e s%__pixmapsdir__%${X11BASE}/include/X11/pixmaps/% \
|
|
|
|
-e s%/etc/utmp%/var/run/utmp%g \
|
|
|
|
-e s%/etc/wtmp%/var/run/wtmp%g \
|
|
|
|
< $< > $@
|
2008-02-16 02:40:00 -07:00
|
|
|
|
2016-11-03 08:25:06 -06:00
|
|
|
CLEANFILES+= ${MAN} builtin_icons.h VTparse.hin
|
2007-04-09 13:11:43 -06:00
|
|
|
|
|
|
|
afterinstall:
|
2016-09-11 13:22:56 -06:00
|
|
|
${INSTALL} ${INSTALL_COPY} -m ${SHAREMODE} \
|
|
|
|
-o ${SHAREOWN} -g ${SHAREGRP} ${.CURDIR}/XTerm.ad \
|
2014-08-13 15:02:16 -06:00
|
|
|
${DESTDIR}${X11BASE}/share/X11/app-defaults/XTerm
|
2016-09-11 13:22:56 -06:00
|
|
|
${INSTALL} ${INSTALL_COPY} -m ${SHAREMODE} \
|
|
|
|
-o ${SHAREOWN} -g ${SHAREGRP} ${.CURDIR}/XTerm-col.ad \
|
2014-08-13 15:02:16 -06:00
|
|
|
${DESTDIR}${X11BASE}/share/X11/app-defaults/XTerm-color
|
2007-04-09 13:11:43 -06:00
|
|
|
|
|
|
|
obj: _xenocara_obj
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.include <bsd.xorg.mk>
|