summaryrefslogtreecommitdiff
path: root/misc/reed
diff options
context:
space:
mode:
authorjperkin <jperkin>2014-09-25 14:48:53 +0000
committerjperkin <jperkin>2014-09-25 14:48:53 +0000
commit8f3792051b5fcc8b5b72d59a7229a6477d295ece (patch)
tree2815334b6525e880790e9e51a50b7d75a5202ac6 /misc/reed
parent7065a351f91592b23bc89d1da12e26005f8c8680 (diff)
downloadpkgsrc-8f3792051b5fcc8b5b72d59a7229a6477d295ece.tar.gz
Avoid sys/dir.h on SunOS.
Diffstat (limited to 'misc/reed')
-rw-r--r--misc/reed/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/misc/reed/Makefile b/misc/reed/Makefile
index e8314c7c6b7..914cce57414 100644
--- a/misc/reed/Makefile
+++ b/misc/reed/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2014/05/29 23:36:59 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2014/09/25 14:48:53 jperkin Exp $
DISTNAME= reed-5.4
PKGREVISION= 5
@@ -20,6 +20,18 @@ INCOMPAT_CURSES= NetBSD-1.5-* NetBSD-1.5.*-* NetBSD-1.5[A-U]-*
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+SUBST_CLASSES+= sysdir1 sysdir2
+SUBST_STAGE.sysdir1= pre-configure
+SUBST_FILES.sysdir1= cfg.data
+SUBST_SED.sysdir1= -e "s,sys/dir.h,,g"
+SUBST_STAGE.sysdir2= pre-configure
+SUBST_FILES.sysdir2= reed.c
+SUBST_SED.sysdir2= -e "/sys\/dir.h/d"
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/reed ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/breed ${DESTDIR}${PREFIX}/bin