summaryrefslogtreecommitdiff
path: root/wm
diff options
context:
space:
mode:
authorleot <leot>2016-02-17 09:53:50 +0000
committerleot <leot>2016-02-17 09:53:50 +0000
commit72d358d7c73a4fb50299f880314ded6a33b00c09 (patch)
tree28f793c33b98f95b8b810435a33ee09781fea2ff /wm
parent43fb5386652643ef2487c732fb282b30d2970fbc (diff)
downloadpkgsrc-72d358d7c73a4fb50299f880314ded6a33b00c09.tar.gz
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).
Diffstat (limited to 'wm')
-rw-r--r--wm/dwm/Makefile8
1 files changed, 5 insertions, 3 deletions
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,'