pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/reed Avoid sys/dir.h on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/afcbec44868e
branches:  trunk
changeset: 639789:afcbec44868e
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Sep 25 14:48:53 2014 +0000

description:
Avoid sys/dir.h on SunOS.

diffstat:

 misc/reed/Makefile |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r a8bf770e610c -r afcbec44868e misc/reed/Makefile
--- a/misc/reed/Makefile        Thu Sep 25 14:32:35 2014 +0000
+++ b/misc/reed/Makefile        Thu Sep 25 14:48:53 2014 +0000
@@ -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 @@
 
 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



Home | Main Index | Thread Index | Old Index