pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/time/p5-Time-HiRes Add hints file for Solaris to enabl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/54259a86e84e
branches:  trunk
changeset: 465330:54259a86e84e
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Sun Dec 28 00:27:08 2003 +0000

description:
Add hints file for Solaris to enable nanosleep()

diffstat:

 time/p5-Time-HiRes/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 6dfcd599e500 -r 54259a86e84e time/p5-Time-HiRes/Makefile
--- a/time/p5-Time-HiRes/Makefile       Sun Dec 28 00:16:11 2003 +0000
+++ b/time/p5-Time-HiRes/Makefile       Sun Dec 28 00:27:08 2003 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.11 2003/12/03 10:52:27 chris Exp $
+# $NetBSD: Makefile,v 1.12 2003/12/28 00:27:08 heinz Exp $
 #
 
 DISTNAME=              Time-HiRes-1.52
 PKGNAME=               p5-${DISTNAME}
+PKGREVISION=           1
 SVR4_PKGNAME=          p5thr
 CATEGORIES=            devel perl5
 MASTER_SITES=          ${MASTER_SITE_PERL_CPAN:=Time/}
@@ -16,5 +17,9 @@
 PERL5_CONFIGURE=       YES
 PERL5_PACKLIST=                ${PERL5_SITEARCH}/auto/Time/HiRes/.packlist
 
+pre-configure:
+       @ # On Solaris link against librt to pull in nanosleep
+       @ ${ECHO} "\$$self->{LIBS} = ['-lrt'];" >> ${WRKSRC}/hints/solaris.pl
+
 .include "../../lang/perl5/module.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index