aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/pixie/Makefile
blob: 2360cece4ddf1dbf472ad8545eaebbd88030bf5d (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Created by: Igor Pokrovsky <tiamat@comset.net>
# $FreeBSD$

PORTNAME=   pixie
PORTVERSION=    2.2.6
PORTREVISION=   15
CATEGORIES= graphics
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/Pixie%20${PORTVERSION}
DISTNAME=   Pixie-src-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Photorealistic renderer with Pixar's RenderMan-like interface

LICENSE=    LGPL21+
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libIlmImf.so:graphics/OpenEXR \
        libtiff.so:graphics/tiff \
        libfltk_gl.so:x11-toolkits/fltk

BROKEN_aarch64=     fails to compile: use of undeclared identifier CRenderer
BROKEN_armv6=       fails to compile: use of undeclared identifier CRenderer
BROKEN_sparc64=     fails to compile

USE_GL=     glu
USES=       bison compiler:c++0x libtool pathfix tar:tgz
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --includedir=${PREFIX}/include/pixie \
        --libdir=${PREFIX}/lib/pixie \
        --with-docdir=${DOCSDIR} \
        --with-shaderdir=${DATADIR}/shaders \
        --with-ribdir=${DATADIR}/ribs \
        --with-texturedir=${DATADIR}/textures \
        --with-displaysdir=${PREFIX}/lib/pixie/displays \
        --with-modulesdir=${PREFIX}/lib/pixie/modules \
        --with-openexr-prefix=${LOCALBASE} \
        --enable-openexr-threads
WRKSRC=     ${WRKDIR}/Pixie
INSTALL_TARGET= install-strip
USE_LDCONFIG=   ${PREFIX}/lib/${PORTNAME}

PORTDOCS=   *

CFLAGS+=    -fPIC
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e '/test/s|==|=|g ; \
         s|-lpthread|-pthread|g' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e '/^SUBDIRS/s|doc||g ; \
         /^install-data-am:/s|install-nobase_docDATA||g' \
         ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e '/^includedir/s|=.*$$|= @includedir@|g' \
        ${WRKSRC}/src/ri/Makefile.in \
        ${WRKSRC}/src/sdr/Makefile.in

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    (cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS ChangeLog DEVNOTES NEWS \
        README ${STAGEDIR}${DOCSDIR})
    (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
        '! -name "*Makefile*"')

.include <bsd.port.mk>