diff options
author | leot <leot> | 2016-02-17 09:53:50 +0000 |
---|---|---|
committer | leot <leot> | 2016-02-17 09:53:50 +0000 |
commit | e50b3e0758012a2a78bcfd1d22c4116b9393b7c0 (patch) | |
tree | 28f793c33b98f95b8b810435a33ee09781fea2ff /wm | |
parent | afea98e1c0cb6b94e51fcd6e6e93ae330e7048ad (diff) | |
download | pkgsrc-e50b3e0758012a2a78bcfd1d22c4116b9393b7c0.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/Makefile | 8 |
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,' |