aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ilmbase/Makefile
blob: 997c6361a1bc225da1f7620ef61f2e1980987a83 (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
36
37
38
39
40
41
# New ports collection makefile for:    ilmbase
# Date created:             2007-10-07
# Whom:                 nork@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   ilmbase
PORTVERSION=    1.0.0
PORTREVISION=   1
CATEGORIES=     graphics devel
MASTER_SITES=   ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= openexr

MAINTAINER= nork@FreeBSD.org
COMMENT=    ILM Base libraries a.k.a. Half, IlmThread, Imath and Iex

OPTIONS=    THREAD  "Enable multithreaded file I/O support" off

USE_GNOME=  pkgconfig
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
USE_AUTOTOOLS=  libtool:15

test check: build
    @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)

.if defined(PACKAGE_BUILDING)
pre-install:    test
.endif

.include <bsd.port.pre.mk>

.if defined(WITH_THREAD)
CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
        PTHREAD_LIBS="${PTHREAD_LIBS}"
.else
CONFIGURE_ARGS+=--disable-threading
.endif

.include <bsd.port.post.mk>