From 49cb8eae337474e578126a08cf0725be9c3aede8 Mon Sep 17 00:00:00 2001 From: leot Date: Wed, 17 Feb 2016 09:53:50 +0000 Subject: Add -D_XOPEN_SOURCE=600 to CPPFLAGS in order to hopefully fix build issues on SunOS: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications" While here also delete not need NO_CONFIGURE and convert SUBST_STAGE to pre-configure. Thanks to jperkin@ (possible mistakes are mine). --- wm/dwm/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'wm/dwm') diff --git a/wm/dwm/Makefile b/wm/dwm/Makefile index 8f9cfea7710..7d3d2dd6878 100644 --- a/wm/dwm/Makefile +++ b/wm/dwm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2015/11/11 16:12:10 leot Exp $ +# $NetBSD: Makefile,v 1.16 2016/02/17 09:53:50 leot Exp $ # DISTNAME= dwm-6.1 @@ -10,18 +10,20 @@ HOMEPAGE= http://dwm.suckless.org/ COMMENT= Dynamic window manager LICENSE= mit -NO_CONFIGURE= yes USE_LANGUAGES= c99 +CPPFLAGS+= -D_XOPEN_SOURCE=600 + # Adjust config.mk SUBST_CLASSES+= makefile -SUBST_STAGE.makefile= pre-patch +SUBST_STAGE.makefile= pre-configure SUBST_MESSAGE.makefile= Fixing config.mk SUBST_FILES.makefile= config.mk SUBST_SED.makefile= -e 's,/usr/local,${PREFIX},g' SUBST_SED.makefile+= -e 's,share/man,${PKGMANDIR},g' SUBST_SED.makefile+= -e 's,/usr/X11R6,${X11BASE},' SUBST_SED.makefile+= -e 's,^CFLAGS *= ,CFLAGS += ,' +SUBST_SED.makefile+= -e 's,^CPPFLAGS *= ,CPPFLAGS += ,' SUBST_SED.makefile+= -e 's,^LDFLAGS *= ,LDFLAGS += ,' SUBST_SED.makefile+= -e 's/-I$${FREETYPEINC}/$${FREETYPEINC}/' SUBST_SED.makefile+= -e 's,^FREETYPEINC *=.*,FREETYPEINC != freetype-config --cflags,' -- cgit v1.2.3