[114036] users/mojca/ports/science/root/Portfile

mojca at macports.org mojca at macports.org
Wed Nov 27 09:21:45 PST 2013


Revision: 114036
          https://trac.macports.org/changeset/114036
Author:   mojca at macports.org
Date:     2013-11-27 09:21:45 -0800 (Wed, 27 Nov 2013)
Log Message:
-----------
mojca/root: minor changes

Modified Paths:
--------------
    users/mojca/ports/science/root/Portfile

Modified: users/mojca/ports/science/root/Portfile
===================================================================
--- users/mojca/ports/science/root/Portfile	2013-11-27 16:29:54 UTC (rev 114035)
+++ users/mojca/ports/science/root/Portfile	2013-11-27 17:21:45 UTC (rev 114036)
@@ -134,8 +134,8 @@
                     -Dreflex=ON \
                     -Dtable=ON \
                     -Dgdml=ON \
-                    -DPNG_LIBRARY=/opt/local/lib/libpng.dylib \
-                    -DPNG_PNG_INCLUDE_DIR=/opt/local/include
+                    -DPNG_LIBRARY=${prefix}/lib/libpng.dylib \
+                    -DPNG_PNG_INCLUDE_DIR=${prefix}/include
 
 # -Dc++11=ON  : requires gcc > 4.7.x or clang
 # -Dlibcxx=ON : Build using libc++, requires cxx11 option (MacOS X only, for the time being)  
@@ -162,6 +162,7 @@
 
 configure.post_args ${worksrcpath}
 
+# TODO: carefully check the following list (and try to find a different way to specify paths for X11 libraries)
 configure.env-append \
                     FREETYPE_DIR=${prefix}
 configure.args-append \
@@ -248,15 +249,23 @@
 #                    --enable-unuran \
 # -> table
 #                    --enable-table \
-# doesn't exist
-#                    --enable-fink
 
 universal_variant   no
 
 default_variants    +ssl +xml +gsl +minuit2 +tmva +roofit +graphviz +opengl +soversion
 
+variant xrootd description {Build with XRootD support} {
+    configure.args-replace  -Dxrootd=OFF -Dxrootd=ON
+    configure.args-append   -DXROOTD_INCLUDE_DIR="${prefix}/include/xrootd"
+    # TODO: do libraries need to be specified as well?
+    # XROOTD_XrdClient_LIBRARY  *${prefix}/lib/libXrdClient.dylib
+    # XROOTD_XrdMain_LIBRARY    *${prefix}/lib/libXrdMain.dylib
+    # XROOTD_XrdUtils_LIBRARY   *${prefix}/lib/libXrdUtils.dylib
+    depends_lib-append      port:xrootd
+}
+
 variant soversion description {Build with soversion support} {
-     configure.args-replace -Dsoversion=OFF -Dsoversion=ON
+    configure.args-replace -Dsoversion=OFF -Dsoversion=ON
 }
 
 variant graphviz description {Build with graphviz support} {
@@ -270,14 +279,13 @@
     depends_lib-append      path:bin/dot:graphviz
 }
 
+variant avahi description {Build with avahi support} {
+   configure.args-replace   -Dbonjour=OFF -Dbonjour=ON
 # TODO
-#variant avahi description {Build with avahi support} {
-#    configure.args-delete   --disable-bonjour
-#    configure.args-append   --enable-bonjour \
-#                            --with-avahi-incdir="${prefix}/include" \
-#                            --with-avahi-libdir="${prefix}/lib"
-#    depends_lib-append      port:avahi
-#}
+#  configure.args-append    --with-avahi-incdir="${prefix}/include" \
+#                           --with-avahi-libdir="${prefix}/lib"
+   depends_lib-append      port:avahi
+}
 
 # TODO
 #variant fftw3 description {Build with fftw3 support} {
@@ -334,6 +342,7 @@
     configure.args-replace  -Dminuit2=OFF -Dminuit2=ON
 }
 
+# TODO: doesn't work properly yet and should not depend on /usr/X11R6
 variant opengl description {Build with opengl support} {
     configure.args-replace  -Dopengl=OFF -Dopengl=ON
     # TODO: no idea why builtin glew would be needed and it also fails to work
@@ -614,16 +623,3 @@
 }
 
 # ========================================================================================
-
-# TODO:
-# -- Found X11: /usr/X11R6/lib/libX11.dylib
-# -- X11_INCLUDE_DIR: /usr/X11R6/include
-# -- X11_LIBRARIES: /usr/X11R6/lib/libSM.dylib;/usr/X11R6/lib/libICE.dylib;/usr/X11R6/lib/libX11.dylib;/usr/X11R6/lib/libXext.dylib
-# -- X11_Xpm_INCLUDE_PATH: /usr/X11R6/include
-# -- X11_Xpm_LIB: /usr/X11R6/lib/libXpm.dylib
-# -- X11_Xft_INCLUDE_PATH: /usr/X11R6/include
-# -- X11_Xft_LIB: /usr/X11R6/lib/libXft.dylib
-# -- X11_Xext_INCLUDE_PATH: 
-# -- X11_Xext_LIB: /usr/X11R6/lib/libXext.dylib
-
-# opengl might not compile properly (test)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131127/8d20daaf/attachment.html>


More information about the macports-changes mailing list