summaryrefslogtreecommitdiffstats
path: root/devel/libpthread-stubs/Makefile
blob: 8427ff7384c37d7ae8738e02323befb9ef715bdc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# New ports collection makefile for:   libpthread-stubs
# Date created:     24 January 2007
# Whom:         wahjava
#
# $FreeBSD$
#

PORTNAME=   libpthread-stubs
PORTVERSION=    0.3
PORTREVISION=   1
CATEGORIES= devel
MASTER_SITES=   http://xcb.freedesktop.org/dist/

MAINTAINER= wahjava@gmail.com
COMMENT=    This library provides weak aliases for pthread functions

USE_GMAKE=  yes
USE_BZIP2=  yes
USE_GNOME=  gnomehack pkgconfig
USE_LDCONFIG=   yes

GNU_CONFIGURE=  yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 700000
CONFIGURE_ENV+= LDFLAGS=-lpthread
.else
# XXX This is a hack to fix a problem where pthread_condattr_{init,destroy}
# are not found leading to crashes.
# When the stubs are added to libc, this hack can be removed.
CONFIGURE_ENV+= LDFLAGS=${PTHREAD_FLAGS}
.endif

.include <bsd.port.post.mk>