Annotation of pkgsrc/graphics/aqsis/Makefile, Revision 1.38
1.38 ! adam 1: # $NetBSD: Makefile,v 1.37 2012/04/30 01:59:12 dholland Exp $
1.1 agc 2: #
3:
1.37 dholland 4: DISTNAME= aqsis-1.8.1
1.38 ! adam 5: PKGREVISION= 1
1.1 agc 6: CATEGORIES= graphics
7: MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aqsis/}
8:
1.24 jlam 9: MAINTAINER= pkgsrc-users@NetBSD.org
1.35 zafer 10: HOMEPAGE= http://www.aqsis.org/
1.1 agc 11: COMMENT= Renderman clone
1.37 dholland 12: LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1 AND modified-bsd
1.1 agc 13:
1.37 dholland 14: PKG_DESTDIR_SUPPORT= user-destdir
1.33 joerg 15:
1.37 dholland 16: USE_CMAKE= yes
17: USE_LANGUAGES= c c++
18: USE_TOOLS+= pkg-config flex bison
19:
20: #
21: # Insists on being built in a separate directory.
22: #
23:
24: CONFIGURE_DIRS= build
25: CMAKE_ARG_PATH= ..
26:
27: pre-configure:
28: mkdir ${WRKSRC}/build
29:
30: #
31: # Something in cmake issues -ldl regardless of whether it's appropriate.
32: # Kludge around it.
33: #
1.1 agc 34:
1.37 dholland 35: # This does not work; it sets CMAKE_DL_LIBS which the cmake documentation
36: # says is where -ldl comes from, but this does not apparently prevent
37: # cmake from issuing -ldl.
38: #CMAKE_ARGS+= -D CMAKE_DL_LIBS:STRING='${DL_LIBS}'
39:
40: .include "../../mk/bsd.prefs.mk"
41: .if ${OPSYS} == "NetBSD"
42: BUILDLINK_TRANSFORM+= rm:-ldl
43: .endif
44:
45: #
46: # Forcibly reprogram cmake's rpath substitution.
47: #
48:
49: BLDIR= ${WRKDIR}/.buildlink/lib
50:
51: SUBST_CLASSES+= rpath
52: SUBST_STAGE.rpath= post-configure
53: SUBST_FILES.rpath+= build/libs/math/cmake_install.cmake
54: SUBST_FILES.rpath+= build/libs/util/cmake_install.cmake
55: SUBST_FILES.rpath+= build/libs/riutil/cmake_install.cmake
56: SUBST_FILES.rpath+= build/libs/slcomp/cmake_install.cmake
57: SUBST_FILES.rpath+= build/libs/tex/cmake_install.cmake
58: SUBST_FILES.rpath+= build/libs/shadervm/cmake_install.cmake
59: SUBST_FILES.rpath+= build/libs/slxargs/cmake_install.cmake
60: SUBST_FILES.rpath+= build/libs/ri2rib/cmake_install.cmake
61: SUBST_FILES.rpath+= build/libs/core/cmake_install.cmake
62: SUBST_FILES.rpath+= build/tools/aqsl/cmake_install.cmake
63: SUBST_FILES.rpath+= build/tools/aqsltell/cmake_install.cmake
64: SUBST_FILES.rpath+= build/tools/aqsis/cmake_install.cmake
65: SUBST_FILES.rpath+= build/tools/miqser/cmake_install.cmake
66: SUBST_FILES.rpath+= build/tools/teqser/cmake_install.cmake
67: SUBST_FILES.rpath+= build/tools/displays/exr/cmake_install.cmake
68: SUBST_FILES.rpath+= build/tools/displays/file/cmake_install.cmake
69: SUBST_FILES.rpath+= build/tools/displays/piqsl/cmake_install.cmake
70: SUBST_FILES.rpath+= build/tools/displays/sdcBMP/cmake_install.cmake
71: SUBST_FILES.rpath+= build/tools/displays/xpm/cmake_install.cmake
72: SUBST_FILES.rpath+= build/tools/procedurals/hairgen/cmake_install.cmake
73: SUBST_SED.rpath= -e '/OLD_RPATH/s,"::*","${PREFIX}/lib",'
74: SUBST_SED.rpath+= -e '/OLD_RPATH/s,${BLDIR},${PREFIX}/lib,'
75: SUBST_SED.rpath+= -e '/OLD_RPATH/s,:",",'
76: SUBST_SED.rpath+= -e '/NEW_RPATH/s,"${PREFIX}/.*","${PREFIX}/lib",'
77: SUBST_MESSAGE.rpath= Fixing broken rpath mangling.
78:
79: #
80: # Scripts.
81: #
82:
83: REPLACE_PYTHON+= examples/features/occlusion/occlmap.py
84:
85: # This script wants to run something called 'hython', which is
86: # apparently a Python embedding inside something called Houdini,
87: # which appears to be payware. So let's let it slide.
88: CHECK_INTERPRETER_SKIP+= share/aqsis/plugins/houdini/slx2otl.py
89:
90: # These are all ostensibly bash scripts but I see no bashisms in any of them.
91: REPLACE_SH+= examples/features/archives/render.sh
92: REPLACE_SH+= examples/features/bake/render.sh
93: REPLACE_SH+= examples/features/curves/render.sh
94: REPLACE_SH+= examples/features/layeredshaders/render.sh
95: REPLACE_SH+= examples/features/levelofdetail/render.sh
96: REPLACE_SH+= examples/features/motionblur/render_camera.sh
97: REPLACE_SH+= examples/features/motionblur/render_deformation.sh
98: REPLACE_SH+= examples/features/multipass/render.sh
99: REPLACE_SH+= examples/features/objectinstance/render.sh
100: REPLACE_SH+= examples/features/occlusion/render.sh
101: REPLACE_SH+= examples/features/pointcloud/render.sh
102: REPLACE_SH+= examples/features/shadows/render_autoshadow.sh
103: REPLACE_SH+= examples/features/shadows/render_softshadow.sh
104: REPLACE_SH+= examples/features/solidmodeling/render.sh
105: REPLACE_SH+= examples/features/subdivision/render.sh
106: REPLACE_SH+= examples/features/textures/render.sh
107: REPLACE_SH+= examples/procedurals/menger/render.sh
108: REPLACE_SH+= examples/scenes/fisheye/render.sh
109: REPLACE_SH+= examples/scenes/microbe/render.sh
110: REPLACE_SH+= examples/scenes/vase/render.sh
111: REPLACE_SH+= tools/neqsus/houdini/post.sh
112: REPLACE_SH+= distribution/linux/aqsis.sh
113: REPLACE_SH+= distribution/linux/aqsl.sh
114: REPLACE_SH+= distribution/linux/aqsltell.sh
115:
116: #
117: # Handle the config file.
118: #
119: # XXX the post-install rule will result in an overwritten config file
120: # if using a non-DESTDIR build. However, I can't get it to install the
121: # thing anywhere else; the setting cmake documents that ought to move
122: # it does not work.
123: #
124:
125: PKG_SYSCONFSUBDIR= aqsis
126: CONF_FILES+= share/examples/aqsis/aqsisrc ${PKG_SYSCONFDIR}/aqsisrc
127: INSTALLATION_DIRS+= share/examples/aqsis
128:
129: post-install:
130: mv ${DESTDIR}${PREFIX}/etc/aqsis/aqsisrc \
131: ${DESTDIR}${PREFIX}/share/examples/aqsis/aqsisrc
132: rmdir ${DESTDIR}${PREFIX}/etc/aqsis || ${TRUE}
133: rmdir ${DESTDIR}${PREFIX}/etc || ${TRUE}
134:
135: #
136: # Depends. The package says:
137: #
138: # CMake (v2.6.3+)
139: # Boost (v1.34.1+)
140: # libtiff.lib (v3.7.1+)
141: # flex (v2.5.4) (2.5.31 causes problems, see FAQ 2.2)
142: # bison (v1.35+)
143: # Qt (v4.6+) - optional, for framebuffer rendering and other GUI components
144: # libzlib (v1.1.4+)
145: # libjpeg (v6b+)
146: # libilmbase (v1.6+)
147: # OpenEXR - if you want to read and write OpenEXR HDR image files
148: #
149: # and in practice it also needs png.
150: #
151: # Qt is optional and, for the time being, doesn't work - will need at
152: # least PLIST additions.
153: #
154: # From what I can tell it may react to py-sphinx and/or doxygen by
155: # installing more docs or other material. Not sure how to beat on
156: # cmake to make sure this doesn't happen.
157: #
158:
159: .include "options.mk"
1.1 agc 160:
1.37 dholland 161: .include "../../devel/boost-libs/buildlink3.mk"
162: .include "../../graphics/png/buildlink3.mk"
1.14 snj 163: .include "../../graphics/tiff/buildlink3.mk"
1.37 dholland 164: .include "../../graphics/ilmbase/buildlink3.mk"
165: .include "../../graphics/openexr/buildlink3.mk"
166: .include "../../devel/zlib/buildlink3.mk"
167: .include "../../mk/jpeg.buildlink3.mk"
1.25 joerg 168: .include "../../mk/dlopen.buildlink3.mk"
1.37 dholland 169: .include "../../sysutils/desktop-file-utils/desktopdb.mk"
170: .include "../../lang/python/application.mk"
1.1 agc 171: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>