xenocara/app/xterm/Makefile

98 lines
3.0 KiB
Makefile
Raw Normal View History

2016-11-03 08:25:06 -06:00
# $OpenBSD: Makefile,v 1.31 2016/11/03 14:25:06 matthieu Exp $
.include <bsd.xconf.mk>
2007-08-25 13:17:16 -06:00
SUBDIR= icons resize
PROG= xterm
MAN= xterm.1
BINGRP= utmp
BINMODE= 2755
CPPFLAGS+= -I. -I${.CURDIR} -I${X11BASE}/include \
-I${X11BASE}/include/freetype2 \
-DHAVE_CONFIG_H -DCSRG_BASED \
Update to xterm 243. tested by naddy@. Patch #243 - 2009/3/28 * revert change to default for allowTcapOps (request by Bram Moolenaar). * reallocate result returned by xtermEnvLocale() to avoid reference to freed memory after handling menuLocale resource. * fix an old (X11R5) bug in tek4014 for switching fontsizes. * add resource defaultString to make configurable the use of "#" when pastes of UTF-8 text fail due to limitations in the current locale settings. * make the set of selection target Atom's configurable by two new resources eightBitSelectTypes and utf8SelectTypes, e.g., to use the TEXT Atom in preference to UTF8_STRING (discussion with Stanislav Sedov regarding koi8rxterm and the FreeBSD port). * modify handling of TARGETS Atom by making it return exactly the set of targets as those which xterm is currently providing. * set MANPAGER and PAGER explicitly to /bin/cat in minstall.sh to work around /etc/man.conf's with those variables already set (report by Mar'yasin Semion). * improve error-checking of tcap-query parser. * add check for keyboard tcap), which ensures that terminal descriptions containing the same string for shifted/unshifted keys will be seen by tcap-query as only the unshifted key. (This would only happen with an incorrect terminal description). * fix conversion for input event-state to modifier-parameter which made tcap-query feature not work with tcapFunctionKeys (keyboard type tcap). * add "DEF_ALLOW_XXX" definitions to main.h to allow overriding the default compiled-in values for "allowxxx" resources. * remove check on bell-percentage added in patch #242, which disallowed zero/negative values (Redhat Bugzilla #487829).
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
LDADD+= -L${X11BASE}/lib -lXaw -lXpm -lXt -lSM -lICE -lXmu \
-lXft -lXrender -lXinerama -lX11 -lxcb -lXext -lXau -lXdmcp \
-lfontconfig -lexpat -lfreetype -lutil -ltermcap -lz
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 \
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
MANDIR= ${X11BASE}/man/man
.if ${MACHINE_ARCH} == "sh"
charproc.o: charproc.c
${CC} -O1 -fno-stack-protector -c ${CPPFLAGS} ${.CURDIR}/charproc.c
screen.o: screen.c
${CC} -O1 -fno-stack-protector -c ${CPPFLAGS} ${.CURDIR}/screen.c
.endif
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
.SUFFIXES: .man .1
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
.man.1:
sed -e 's#__vendorversion__#"X Window System"#g' \
-e 's#__mansuffix__#1#g' \
-e 's#__miscmansuffix__#7#g' \
-e 's#__apploaddir__#${X11BASE}/share/X11/app-defaults#g' \
-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 \
< $< > $@
2016-11-03 08:25:06 -06:00
CLEANFILES+= ${MAN} builtin_icons.h VTparse.hin
afterinstall:
2016-09-11 13:22:56 -06:00
${INSTALL} ${INSTALL_COPY} -m ${SHAREMODE} \
-o ${SHAREOWN} -g ${SHAREGRP} ${.CURDIR}/XTerm.ad \
${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 \
${DESTDIR}${X11BASE}/share/X11/app-defaults/XTerm-color
obj: _xenocara_obj
.include <bsd.prog.mk>
.include <bsd.xorg.mk>