changeset 3:016ad1de8f18 draft

Uploaded
author iuc
date Wed, 06 Nov 2013 00:49:32 -0500
parents b17bbb1a41da
children 55e3d764c6c2
files tool_dependencies.xml
diffstat 1 files changed, 17 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tool_dependencies.xml	Tue Nov 05 18:49:56 2013 -0500
+++ b/tool_dependencies.xml	Wed Nov 06 00:49:32 2013 -0500
@@ -1,14 +1,26 @@
+<?xml version="1.0"?>
 <tool_dependency>
+    <!-- TODO: Add more dependencies to support other image formats -->
+    <package name="libpng" version="1.2.5">
+        <repository changeset_revision="a80a3062f066" name="package_libpng_1_2" owner="iuc" prior_installation_required="True" toolshed="http://testtoolshed.g2.bx.psu.edu" />
+    </package>
     <package name="libgd" version="2.1.0">
         <install version="1.0">
             <actions>
                 <action type="download_by_url">https://bitbucket.org/libgd/gd-libgd/downloads/libgd-2.1.0.tar.gz</action>
-                <action type="autoconf" />
+
+                <action type="set_environment_for_install">
+                    <repository changeset_revision="a80a3062f066" name="package_libpng_1_2" owner="iuc" toolshed="http://testtoolshed.g2.bx.psu.edu">
+                        <package name="libpng" version="1.2.5" />
+                    </repository>
+                </action>
+
+                <action type="shell_command">./configure --prefix=$INSTALL_DIR --with-png=$LIBPNG_ROOT_DIR; make ; make install </action>
                 <action type="set_environment">
-                    <environment_variable name="LIBRARY_PATH" action="prepend_to">$INSTALL_DIR/lib</environment_variable>
-                    <environment_variable name="LD_LIBRARY_PATH" action="prepend_to">$INSTALL_DIR/lib</environment_variable>
-                    <environment_variable name="CPLUS_INCLUDE_PATH" action="prepend_to">$INSTALL_DIR/include</environment_variable>
-                    <environment_variable name="LIBGD_ROOT_PATH" action="set_to">$INSTALL_DIR</environment_variable>
+                    <environment_variable action="prepend_to" name="LIBRARY_PATH">$INSTALL_DIR/lib</environment_variable>
+                    <environment_variable action="prepend_to" name="LD_LIBRARY_PATH">$INSTALL_DIR/lib</environment_variable>
+                    <environment_variable action="prepend_to" name="CPLUS_INCLUDE_PATH">$INSTALL_DIR/include</environment_variable>
+                    <environment_variable action="set_to" name="LIBGD_ROOT_PATH">$INSTALL_DIR</environment_variable>
                 </action>
             </actions>
         </install>