pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/freeradius Perform the pthread test the pkgsrc way...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/55dda67121cf
branches:  trunk
changeset: 463248:55dda67121cf
user:      cube <cube%pkgsrc.org@localhost>
date:      Mon Nov 03 10:09:50 2003 +0000

description:
Perform the pthread test the pkgsrc way: using info from
pthread.buildlink2.mk, and certainly not using output of 'uname'.

diffstat:

 net/freeradius/Makefile |  21 +++++++++------------
 1 files changed, 9 insertions(+), 12 deletions(-)

diffs (51 lines):

diff -r 7d7f2dbbb060 -r 55dda67121cf net/freeradius/Makefile
--- a/net/freeradius/Makefile   Mon Nov 03 05:50:43 2003 +0000
+++ b/net/freeradius/Makefile   Mon Nov 03 10:09:50 2003 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2003/07/30 14:50:08 jmmv Exp $
+# $NetBSD: Makefile,v 1.7 2003/11/03 10:09:50 cube Exp $
 
 DISTNAME=      freeradius-0.7
 CATEGORIES=    net
-PKGREVISION=   3
+PKGREVISION=   4
 MASTER_SITES=  ftp://ftp.freeradius.org/pub/radius/ \
                ftp://ftp.Awfulhak.org/pub/radius/
 
@@ -17,6 +17,7 @@
 USE_LIBTOOL=   YES
 USE_PKGINSTALL=        YES
 LTCONFIG_OVERRIDE=     ${WRKSRC}/ltconfig
+PTHREAD_OPTS+= native
 
 CONFIGURE_ARGS=                --quiet
 CONFIGURE_ARGS+=       --with-logdir=/var/log
@@ -34,15 +35,6 @@
 EGDIR=                 ${PREFIX}/share/examples/freeradius
 CONF_FILES=            # Contents set in HEADER file
 
-.include "../../mk/bsd.prefs.mk"
-
-# Needs semaphore functions as well as thread libs.
-.if ${OPSYS} == "NetBSD"
-.  if ${OS_VERSION:M1.[0-5]*} || ${OS_VERSION} == "1.6" || ${OS_VERSION:M1.6[A-M]*} || ${OS_VERSION:M1.6.1*}
-CONFIGURE_ARGS+=       --with-threads=no
-.  endif
-.endif
-
 post-install:
        ${INSTALL_DATA_DIR} ${EGDIR}
        cd ${WRKSRC}/raddb && for f in [a-z]*; do \
@@ -50,6 +42,11 @@
        done
 
 .include "../../databases/gdbm/buildlink2.mk"
+.include "../../devel/libtool/buildlink2.mk"
 .include "../../mk/pthread.buildlink2.mk"
-.include "../../devel/libtool/buildlink2.mk"
+
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
+CONFIGURE_ARGS+=       --with-threads=no
+.endif
+
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index