summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authormicha <micha@pkgsrc.org>2022-01-31 10:39:24 +0000
committermicha <micha@pkgsrc.org>2022-01-31 10:39:24 +0000
commitca1297951999e9778d16eb3b65a5b7f10eace267 (patch)
treee788422def5295c3575077fa0af5449caef930cc /editors
parent922e677b8d68db2893a681e855768f9eadb75428 (diff)
downloadpkgsrc-ca1297951999e9778d16eb3b65a5b7f10eace267.tar.gz
editors/xnedit: Build fixes
- Honor external CFLAGS (should now use pkgsrc hardening flags) - Use POSIX struct dirent (should fix build on SmartOS) - Enable workarounds for Motif bugs on IRIX and Solaris Bump PKGREVISION.
Diffstat (limited to 'editors')
-rw-r--r--editors/xnedit/Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/editors/xnedit/Makefile b/editors/xnedit/Makefile
index d49cfe9c3c5..9d3d715e65c 100644
--- a/editors/xnedit/Makefile
+++ b/editors/xnedit/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2022/01/28 11:50:12 micha Exp $
+# $NetBSD: Makefile,v 1.2 2022/01/31 10:39:24 micha Exp $
VERS= 1.4.0
DISTNAME= xnedit-${VERS}
+PKGREVISION= 1
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xnedit/}
@@ -17,6 +18,20 @@ WRKSRC= ${WRKDIR}/xnedit
BUILD_TARGET= generic
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PREFIX}/share/doc/xnedit
+# Use POSIX struct dirent (instead of BSD struct direct)
+CFLAGS+= -DUSE_DIRENT
+# Workaround for bugs in IRIX Motif library
+CFLAGS.IRIX+= -DNO_XMIM
+# Workaround for bugs in Solaris Motif library
+CFLAGS.SunOS+= -DROWCOLPATCH
+
+# Honor external CFLAGS
+SUBST_CLASSES+= fix-cflags
+SUBST_STAGE.fix-cflags= pre-configure
+SUBST_MESSAGE.fix-cflags= Fixing Makefile.generic.
+SUBST_FILES.fix-cflags= makefiles/Makefile.generic
+SUBST_SED.fix-cflags= -e 's,CFLAGS=,CFLAGS+=,'
+
# Search for Xft headers in X11 subdirectory
# Upstream ticket: <https://sourceforge.net/p/xnedit/bugs/20/>
# Fixed with commit 452499daab227afab372763f7a64ec996c7057db, remove this patch