[Hdrflow-svn] SF.net SVN: hdrflow: [433] trunk/lib/extras
Status: Pre-Alpha
Brought to you by:
glslang
From: <gl...@us...> - 2008-03-31 19:51:31
|
Revision: 433 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=433&view=rev Author: glslang Date: 2008-03-31 12:51:26 -0700 (Mon, 31 Mar 2008) Log Message: ----------- Add Nuke m4 macro Modified Paths: -------------- trunk/lib/extras/configure.ac trunk/lib/extras/m4/maya.m4 Added Paths: ----------- trunk/lib/extras/m4/nuke.m4 Modified: trunk/lib/extras/configure.ac =================================================================== --- trunk/lib/extras/configure.ac 2008-03-30 08:45:03 UTC (rev 432) +++ trunk/lib/extras/configure.ac 2008-03-31 19:51:26 UTC (rev 433) @@ -139,6 +139,7 @@ AC_CHECK_QUICKTIME( ) AC_CHECK_MAYA( ) +AC_CHECK_NUKE( ) dnl include paths INCLUDES='-I$(top_srcdir)/src' Modified: trunk/lib/extras/m4/maya.m4 =================================================================== --- trunk/lib/extras/m4/maya.m4 2008-03-30 08:45:03 UTC (rev 432) +++ trunk/lib/extras/m4/maya.m4 2008-03-31 19:51:26 UTC (rev 433) @@ -47,7 +47,7 @@ AC_SUBST(MAYA_LIBS) AM_CONDITIONAL(HAVE_MAYA, [test x$ac_use_maya = "xyes"]) - if test x$ac_use_ofx = "xyes"; then + if test x$ac_use_maya = "xyes"; then ifelse([$1], , :, [$1]) else ifelse([$2], , :, [$2]) Added: trunk/lib/extras/m4/nuke.m4 =================================================================== --- trunk/lib/extras/m4/nuke.m4 (rev 0) +++ trunk/lib/extras/m4/nuke.m4 2008-03-31 19:51:26 UTC (rev 433) @@ -0,0 +1,51 @@ + +# +# +# + +AC_DEFUN([AC_CHECK_NUKE],[ + AC_ARG_WITH(nukedir, AC_HELP_STRING([--with-nukedir], [Nuke directory]),,with_nukedir="${NUKE_DIRECTORY}") + + NUKE_CXXFLAGS="-I${with_nukedir}/Nuke5.0v1.app/Contents/MacOS/include -DUSE_GLEW" + NUKE_LDFLAGS="-L${with_nukedir}/Nuke5.0v1.app/Contents/MacOS" + NUKE_LIBS="-lDDImage5.0" + + case $host in + *-apple-darwin*) + NUKE_CXXFLAGS="${NUKE_CXXFLAGS}" + esac + + save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS ${NUKE_CXXFLAGS}" + + save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS ${NUKE_CXXFLAGS}" + + AC_LANG(C++) + AC_CHECK_HEADER(DDImage/Read.h, + [ac_have_nuke="yes" AC_DEFINE(HAVE_NUKE,1,[Define this if you have Nuke devkit])], + [AC_MSG_WARN([*** Nuke development headers not available. Please check your Nuke installation ***])]) + + if test x$ac_have_nuke = "xyes"; then + case $host in + *-apple-darwin*) + NUKE_LDFLAGS="${NUKE_LDFLAGS} -Wl,-executable_path,${with_nukedir}/Nuke5.0v1.app/Contents/MacOS" + ;; + esac + ac_use_nuke=yes + fi + + CPPFLAGS="$save_CPPFLAGS" + CXXFLAGS="$save_CXXFLAGS" + + AC_SUBST(NUKE_CXXFLAGS) + AC_SUBST(NUKE_LDFLAGS) + AC_SUBST(NUKE_LIBS) + AM_CONDITIONAL(HAVE_NUKE, [test x$ac_use_nuke = "xyes"]) + + if test x$ac_use_nuke = "xyes"; then + ifelse([$1], , :, [$1]) + else + ifelse([$2], , :, [$2]) + fi +]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |