From e60fe600c82e618f6f06d7e76a44ff5f375767e1 Mon Sep 17 00:00:00 2001 From: mrg Date: Sun, 19 Jul 2015 19:49:17 +0000 Subject: [PATCH] build updates for various x11 apps being updated. --- external/mit/xorg/bin/smproxy/Makefile | 7 ++++-- external/mit/xorg/bin/xdpyinfo/Makefile | 4 ++- external/mit/xorg/bin/xdriinfo/Makefile | 6 +++-- external/mit/xorg/bin/xedit/lisp/Makefile | 6 ++++- external/mit/xorg/bin/xedit/xedit/Makefile | 3 ++- external/mit/xorg/bin/xev/Makefile | 4 ++- external/mit/xorg/xorg-pkg-ver.mk | 29 ++++++++++++++++++++++ 7 files changed, 51 insertions(+), 8 deletions(-) create mode 100644 external/mit/xorg/xorg-pkg-ver.mk diff --git a/external/mit/xorg/bin/smproxy/Makefile b/external/mit/xorg/bin/smproxy/Makefile index f00d93727d21..9fc996150a7e 100644 --- a/external/mit/xorg/bin/smproxy/Makefile +++ b/external/mit/xorg/bin/smproxy/Makefile @@ -1,11 +1,14 @@ -# $NetBSD: Makefile,v 1.3 2011/07/23 06:06:40 mrg Exp $ +# $NetBSD: Makefile,v 1.4 2015/07/19 19:49:17 mrg Exp $ .include PROG= smproxy SRCS= smproxy.c save.c -CPPFLAGS+=-DHAVE_MKSTEMP +CPPFLAGS+=-DHAVE_MKSTEMP -DHAVE_ASPRINTF + +STRING!= ${PRINT_PACKAGE_STRING} +CPPFLAGS+= -DPACKAGE_STRING=\"${STRING}\" LDADD+= -lXmu -lXt -lSM -lICE -lXext -lX11 DPADD+= ${LIBXMU} ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11} diff --git a/external/mit/xorg/bin/xdpyinfo/Makefile b/external/mit/xorg/bin/xdpyinfo/Makefile index bf65de94196a..a7250b6d8f9d 100644 --- a/external/mit/xorg/bin/xdpyinfo/Makefile +++ b/external/mit/xorg/bin/xdpyinfo/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2013/09/29 14:34:30 christos Exp $ +# $NetBSD: Makefile,v 1.7 2015/07/19 19:49:18 mrg Exp $ .include @@ -20,5 +20,7 @@ DPADD+= ${LIBXTST} ${LIBXI} ${LIBXRENDER} ${LIBXINERAMA} ${LIBXCOMPOSITE} \ COPTS.xdpyinfo.c+= -Wno-error # xf86vmstr.h +.include "../../xorg-pkg-ver.mk" + .include .include diff --git a/external/mit/xorg/bin/xdriinfo/Makefile b/external/mit/xorg/bin/xdriinfo/Makefile index a005e20eedff..1292b496bb65 100644 --- a/external/mit/xorg/bin/xdriinfo/Makefile +++ b/external/mit/xorg/bin/xdriinfo/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $ +# $NetBSD: Makefile,v 1.2 2015/07/19 19:49:18 mrg Exp $ .include @@ -9,7 +9,9 @@ SRCS= xdriinfo.c LDADD+= -lGL -lXext -lX11 -lpthread DPADD+= ${LIBGL} ${LIBXEXT} ${LIBX11} ${LIBPTHREAD} -.PATH: ${X11SRCDIR.${PROG}} +.PATH: ${X11SRCDIR.${PROG}} ${X11SRCDIR.${PROG}}/man + +.include "../../xorg-pkg-ver.mk" .include .include diff --git a/external/mit/xorg/bin/xedit/lisp/Makefile b/external/mit/xorg/bin/xedit/lisp/Makefile index 444b5d3c4fee..6e58aea99250 100644 --- a/external/mit/xorg/bin/xedit/lisp/Makefile +++ b/external/mit/xorg/bin/xedit/lisp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2015/06/27 17:03:30 matt Exp $ +# $NetBSD: Makefile,v 1.5 2015/07/19 19:49:18 mrg Exp $ LIBISPRIVATE= yes @@ -25,5 +25,9 @@ CPPFLAGS+= -DANSI_SOURCE CWARNFLAGS.clang+= -Wno-format +# Ugh. writes to const char * +COPTS.format.c+= -Wno-error +COPTS.lisp.c+= -Wno-error + .include .include diff --git a/external/mit/xorg/bin/xedit/xedit/Makefile b/external/mit/xorg/bin/xedit/xedit/Makefile index 84d88376059a..675236b8d45a 100644 --- a/external/mit/xorg/bin/xedit/xedit/Makefile +++ b/external/mit/xorg/bin/xedit/xedit/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2013/05/31 06:24:05 mrg Exp $ +# $NetBSD: Makefile,v 1.5 2015/07/19 19:49:18 mrg Exp $ .include @@ -7,6 +7,7 @@ SRCS= xedit.c commands.c util.c ispell.c options.c hook.c lisp.c \ tags.c hash.c CPPFLAGS+= -I${X11SRCDIR.xedit}/lisp/re +CPPFLAGS+= -DHAVE_GETPAGESIZE APPDEFS= Xedit Xedit-color diff --git a/external/mit/xorg/bin/xev/Makefile b/external/mit/xorg/bin/xev/Makefile index fe239d12f353..8b7e02936a8f 100644 --- a/external/mit/xorg/bin/xev/Makefile +++ b/external/mit/xorg/bin/xev/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2013/05/31 06:47:07 mrg Exp $ +# $NetBSD: Makefile,v 1.4 2015/07/19 19:49:18 mrg Exp $ .include @@ -10,5 +10,7 @@ DPADD+= ${LIBX11} ${LIBXRANDR} .PATH: ${X11SRCDIR.${PROG}} .PATH: ${X11SRCDIR.${PROG}}/man +.include "../../xorg-pkg-ver.mk" + .include .include diff --git a/external/mit/xorg/xorg-pkg-ver.mk b/external/mit/xorg/xorg-pkg-ver.mk new file mode 100644 index 000000000000..c1229fdc8276 --- /dev/null +++ b/external/mit/xorg/xorg-pkg-ver.mk @@ -0,0 +1,29 @@ +# $NetBSD: xorg-pkg-ver.mk,v 1.1 2015/07/19 19:49:17 mrg Exp $ + +# when including this make sure PROG is set so that $X11SRCDIR.$PROG +# is a valid setting. + +.if exists(${X11SRCDIR.${PROG}}/configure) +XORG_PKG_PACKAGE_VERSION!= \ + awk -F= '/^PACKAGE_VERSION=/ { \ + match($$2, "([0-9]+\\.)+[0-9]+"); \ + version = substr($$2, RSTART, RLENGTH); \ + print version; \ + exit 0; \ + }' ${X11SRCDIR.${PROG}}/configure +.if !empty(XORG_PKG_PACKAGE_VERSION) +CPPFLAGS+= -DPACKAGE_VERSION=\"${XORG_PKG_PACKAGE_VERSION:Q}\" +.endif + +XORG_PKG_PACKAGE_STRING!= \ + awk -F= '/^PACKAGE_STRING=/ { \ + match($$2, "[a-zA-Z-_]+[ ]+([0-9]+\\.)+[0-9]+"); \ + string = substr($$2, RSTART, RLENGTH); \ + print string; \ + exit 0; \ + }' ${X11SRCDIR.${PROG}}/configure +.if !empty(XORG_PKG_PACKAGE_STRING) +CPPFLAGS+= -DPACKAGE_STRING=\"${XORG_PKG_PACKAGE_STRING:Q}\" +.endif + +.endif