1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-02 11:09:29 +00:00

- Explicitely link with threads library, otherwise it was impossible to link with -lIlmImf (and dependent libraries as well) without -pthread

PR:		133291
Submitted by:	myself
Approved by:	maintainer timeout
This commit is contained in:
Dmitry Marakasov 2009-09-08 02:24:26 +00:00
parent 30c04da909
commit eb50e03a96
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=241024

View File

@ -7,7 +7,7 @@
PORTNAME= OpenEXR
PORTVERSION= 1.6.1
PORTREVISION= 1
PORTREVISION= 2
DISTNAME= ${PORTNAME:L}-${PORTVERSION}
CATEGORIES= graphics devel
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
@ -26,6 +26,10 @@ GNU_CONFIGURE= YES
CONFIGURE_ARGS+=--enable-imfexamples
# must be explicitely linked with -l{thr|pthread}
CONFIGURE_ENV= LDFLAGS="${PTHREAD_LIBS}"
PTHREAD_LIBS+= `${CC} -dumpspecs | ${GREP} -m 1 pthread | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE}`
WRKSRC= ${WRKDIR}/${DISTNAME}
test check: build