Hello

I'm FreeBSD maintainer for

OpenEXR

http://www.freshports.org/graphics/OpenEXR/


IlmBase

http://www.freshports.org/graphics/ilmbase/


ampasCTL

https://github.com/ampas/CTL/

http://www.freshports.org/graphics/ampasCTL/


ampasACES-container

http://www.freshports.org/graphics/ampasACES-container/


I was too maintainer for obsolete deleted Port openexr_ctl,
which is now merged into ampasCTL-1.5

- Merge ampasCTL-1.4.1 and openexr_ctl-1.0.1 into ampasCTL-1.5

http://www.freshports.org/graphics/openexr_ctl/


I try to port too OpenEXR_Viewers but it needs older
openexr_ctl, and does not look for ampasCTL-1.5


I have patched it to find libraries, please look at enclosed diffs

patch-configure

patch-configure.ac


pkg-config --cflags OpenEXR_CTL
-I/OpenEXR

pkg-config --libs-only-L OpenEXR_CTL
-L

pkg-config --libs OpenEXR_CTL
-L -lIlmImfCtl

pkg-config --libs OpenEXR_CTL CTL
-L -lIlmImfCtl  -L/usr/local/lib -lIlmCtlSimd -lIlmCtlMath -lIlmCtl -pthread


But get in build log

using pkg-config to set OPENEXR_CTL_CXXFLAGS and OPENEXR_CTL_LDFLAGS:
    OPENEXR_CTL_CXXFLAGS = -D_THREAD_SAFE -I/usr/local/include/CTL  
    OPENEXR_CTL_LDFLAGS = -L/usr/local/lib  
    OPENEXR_CTL_LIBS = -L -lIlmImfCtl  -L/usr/local/lib -lIlmCtlSimd 
-lIlmCtlMath -lIlmCtl -pthread  
checking for OpenEXR... yes
Compiled and ran OpenEXR test program.
checking for OpenEXR_CTL... no
*** Could not run the OpenEXR_CTL test program, checking why...
*** The test program could not be compiled.  Is OpenEXR_CTL installed?
*** Check that the cflags (below) includes the OpenEXR_CTL include directory
***
*** Flags used by the test:
***     cflags: -O2 -pipe -fno-strict-aliasing -D_THREAD_SAFE 
-I/usr/local/include/CTL   
***     ldflags:  -L/usr/local/lib  
***
*** You can also run configure with --disable-openexrctltest to skip this test.
The OpenEXR_CTL package could not be found.  Will build and install playexr and 
exrdisplay without ctl support.
...
---------------------------------------------
Summary for OpenEXR features:

build exrdisplay FLTK application               yes
    with fragment shader support                no
ctl support                                     no
---------------------------------------------


Installed are

OpenEXR-2.1.0_1                High dynamic-range (HDR) image file format
ilmbase-2.1.0                  ILM Base libraries a.k.a. Half, IlmThread, 
Imath, and Iex
ampasCTL-1.5_2                 Color Transformation Language interpreter
ampasACES-container-1.0.0      ACES Container Reference Implementation


Later I'll try to port NVIDIA's Cg too, but it'is only GNU/Linux binary.


-- 
Best regards,
Rusmir Dusko
--- ./configure.orig    2013-11-27 20:25:11.000000000 +0100
+++ ./configure 2014-02-20 17:18:41.000000000 +0100
@@ -8491,7 +8491,7 @@
 LIBTOOL_DEPS="$ltmain"
 
 # Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+LIBTOOL='$(SHELL) /usr/local/bin/libtool'
 
 
 
@@ -15702,9 +15702,9 @@
 else
                            if test x$PKG_CONFIG != xno ; then
       echo "using pkg-config to set OPENEXR_CTL_CXXFLAGS and 
OPENEXR_CTL_LDFLAGS:"
-      TEST_CXXFLAGS="`$PKG_CONFIG --cflags OpenEXR_CTL`"
-      TEST_LDFLAGS="`$PKG_CONFIG --libs-only-L OpenEXR_CTL`"
-      TEST_LIBS="`$PKG_CONFIG --libs OpenEXR_CTL`"
+      TEST_CXXFLAGS="`$PKG_CONFIG --cflags CTL`"
+      TEST_LDFLAGS="`$PKG_CONFIG --libs-only-L CTL`"
+      TEST_LIBS="`$PKG_CONFIG --libs OpenEXR_CTL CTL`"
    else
       echo "Not using pkg-config."
       TEST_CXXFLAGS=""
--- ./configure.ac.orig 2013-11-25 20:49:56.000000000 +0100
+++ ./configure.ac      2014-02-20 17:14:50.000000000 +0100
@@ -3,7 +3,7 @@
 AC_SUBST(OPENEXR_VIEWERS_VERSION, 2.1.0)
 AC_CANONICAL_HOST
 AC_CONFIG_SRCDIR(playexr/main.cpp)
-AM_CONFIG_HEADER(config/OpenEXR_ViewersConfig.h)
+AC_CONFIG_HEADERS(config/OpenEXR_ViewersConfig.h)
 AM_INIT_AUTOMAKE(1.6.3)  dnl Require automake 1.6.3 or better
 AM_MAINTAINER_MODE
 
@@ -194,7 +194,10 @@
 dnl
 dnl check for Cg
 dnl
-if test "${have_fltk}" = yes; then
+AC_ARG_ENABLE(cg, AC_HELP_STRING([--enable-cg],
+  [enable nvidia cg support [[default=check]]]), [want_cg="${enableval}"], 
[want_cg=yes])
+
+if test "${have_fltk}" = yes -a "${want_cg}" != "no"; then
   AM_PATH_CG(have_cg=yes, have_cg=no)
   if test "${have_cg}" = yes; then
     AC_DEFINE(HAVE_FRAGMENT_SHADERS)
_______________________________________________
Openexr-devel mailing list
Openexr-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/openexr-devel

Reply via email to