summaryrefslogtreecommitdiff
path: root/devel/pth
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2007-02-12 16:04:14 +0000
committerVasil Dimov <vd@FreeBSD.org>2007-02-12 16:04:14 +0000
commitdf61e1a2d57d4ed96770acb6d464a3e1e498385e (patch)
treeb922e601125d2d2a952c9ad3594d550b9d94439b /devel/pth
parentPrepare devel/pth for the slave port devel/pth-hard that will be added (diff)
Get rid of WITH_SYSCALL_HARD and depend on whether PKGNAMESUFFIX is -hard
or not.
Notes
Notes: svn path=/head/; revision=185008
Diffstat (limited to 'devel/pth')
-rw-r--r--devel/pth/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/devel/pth/Makefile b/devel/pth/Makefile
index 39a6f307d026..64bc3f83f03b 100644
--- a/devel/pth/Makefile
+++ b/devel/pth/Makefile
@@ -10,6 +10,7 @@ PORTVERSION= 2.0.7
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= pth
+PKGNAMESUFFIX?= # empty
MAINTAINER= vd@FreeBSD.org
COMMENT= GNU Portable Threads
@@ -27,17 +28,16 @@ MAN3= pth.3
OPTIONS= OPTIMIZED_CFLAGS "Build with optimized CFLAGS" on
+CONFLICTS?= pth-hard-2.*
+
.include <bsd.port.pre.mk>
-.if defined(WITH_SYSCALL_HARD)
-PKGNAMESUFFIX= -hard
+.if ${PKGNAMESUFFIX} == "-hard"
CONFIGURE_ARGS+= --enable-syscall-hard --disable-syscall-soft
PLIST_SUB= PTHREAD="@comment "
-CONFLICTS= pth-*
.else
CONFIGURE_ARGS+= --enable-syscall-soft --enable-pthread
PLIST_SUB= PTHREAD=""
-CONFLICTS= pth-hard-*
MAN1+= pthread-config.1
MAN3+= pthread.3
.endif