|
From: <ai...@us...> - 2013-08-02 22:05:15
|
Revision: 12463
http://sourceforge.net/p/plplot/code/12463
Author: airwin
Date: 2013-08-02 22:05:10 +0000 (Fri, 02 Aug 2013)
Log Message:
-----------
Add additional docbook-xml and docbook-xsl build dependencies of
gtk-doc.
ToDo. The result works on Linux, but there are still some PATH issues I
am sorting out on MSYS.
Modified Paths:
--------------
trunk/cmake/build_projects/gtk-doc/bp.cmake
Added Paths:
-----------
trunk/cmake/build_projects/docbook-xml/
trunk/cmake/build_projects/docbook-xml/CMakeLists.txt
trunk/cmake/build_projects/docbook-xml/bp.cmake
trunk/cmake/build_projects/docbook-xsl/
trunk/cmake/build_projects/docbook-xsl/CMakeLists.txt
trunk/cmake/build_projects/docbook-xsl/bp.cmake
Added: trunk/cmake/build_projects/docbook-xml/CMakeLists.txt
===================================================================
--- trunk/cmake/build_projects/docbook-xml/CMakeLists.txt (rev 0)
+++ trunk/cmake/build_projects/docbook-xml/CMakeLists.txt 2013-08-02 22:05:10 UTC (rev 12463)
@@ -0,0 +1,159 @@
+# Top-level CMakeLists.txt for the CMake-based build system
+# of the docbook-xml software.
+
+# Copyright (C) 2013 Alan W. Irwin
+
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Library General Public License as published
+# by the Free Software Foundation; version 2 of the License.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public License
+# along with this file; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+project(docbook-xml NONE)
+
+message(STATUS "CMake version = ${CMAKE_VERSION}")
+message(STATUS "CMAKE_SYSTEM_NAME = ${CMAKE_SYSTEM_NAME}")
+
+cmake_minimum_required(VERSION 2.8.10.2 FATAL_ERROR)
+
+# Define useful function.
+find_program(XMLCATALOG_EXECUTABLE xmlcatalog)
+function(install_xml_catalog arguments_LIST3 catalog)
+ # Install an XML catalog using the information supplied in
+ # arguments_LIST3, which is a list of arguments grouped by
+ # threes where each group of three arguments correspond to
+ # the three arguments of the "xmlcatalog --add" command.
+
+ # Create the catalog if it does not exist.
+ install(CODE "
+if(NOT EXISTS \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/etc/xml/${catalog}\")
+message(STATUS \"Creating \${CMAKE_INSTALL_PREFIX}/etc/xml/${catalog}\")
+execute_process(COMMAND ${XMLCATALOG_EXECUTABLE} --noout
+ --create
+ \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/etc/xml/${catalog}\")
+endif(NOT EXISTS \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/etc/xml/${catalog}\")
+")
+
+ list(LENGTH ${arguments_LIST3} narguments_LIST3)
+ set(group_size 3)
+ set(remove_indices 0 1 2)
+ math(EXPR max_index "(${narguments_LIST3}/${group_size}) - 1")
+ foreach(index RANGE 0 ${max_index})
+ list(GET ${arguments_LIST3} 0 type)
+ list(GET ${arguments_LIST3} 1 orig)
+ list(GET ${arguments_LIST3} 2 replace)
+ list(REMOVE_AT ${arguments_LIST3} ${remove_indices})
+ install(CODE "
+message(STATUS \"Updating \${CMAKE_INSTALL_PREFIX}/etc/xml/${catalog}\")
+execute_process(COMMAND ${XMLCATALOG_EXECUTABLE} --noout
+ --add \"${type}\" \"${orig}\" \"${replace}\"
+ \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/etc/xml/${catalog}\")
+"
+ )
+ endforeach(index RANGE 0 ${max_index})
+endfunction(install_xml_catalog)
+
+# Nothing to build. Just follow directions at
+# http://www.linuxfromscratch.org/blfs/view/svn/pst/DocBook.html to
+# install files that are in the source tree.
+
+# Install top-level source tree files.
+set(globs
+ ${CMAKE_SOURCE_DIR}/docbook.cat
+ ${CMAKE_SOURCE_DIR}/*.dtd
+ ${CMAKE_SOURCE_DIR}/*.mod
+ )
+# Make elements of path_list absolute PATH names.
+file(GLOB path_list
+ ${globs}
+ )
+# Add the ent subdirectory to path_list
+list(APPEND path_list ${CMAKE_SOURCE_DIR}/ent)
+
+find_program(INSTALL_EXECUTABLE install)
+find_program(CP_EXECUTABLE cp)
+
+install(CODE "
+message(STATUS \"Installing \${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xml-dtd-4.5\")
+execute_process(
+COMMAND ${INSTALL_EXECUTABLE} -v -d -m755
+\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xml-dtd-4.5\")
+"
+ )
+
+install(CODE "
+execute_process(
+COMMAND ${CP_EXECUTABLE} -v -af ${path_list}
+\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xml-dtd-4.5\")
+"
+ )
+
+install(CODE "
+message(STATUS \"Installing \${CMAKE_INSTALL_PREFIX}/etc/xml\")
+execute_process(
+COMMAND ${INSTALL_EXECUTABLE} -v -d -m755
+\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/etc/xml\")
+"
+ )
+
+set(commands
+"public" "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
+"public" "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" "file://\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xml-dtd-4.5/calstblx.dtd"
+"public" "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "file://\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xml-dtd-4.5/soextblx.dtd"
+"public" "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" "file://\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod"
+"public" "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" "file://\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xml-dtd-4.5/dbhierx.mod"
+"public" "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" "file://\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xml-dtd-4.5/htmltblx.mod"
+"public" "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" "file://\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod"
+"public" "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" "file://\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xml-dtd-4.5/dbcentx.mod"
+"public" "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" "file://\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xml-dtd-4.5/dbgenent.mod"
+"rewriteSystem" "http://www.oasis-open.org/docbook/xml/4.5" "file://\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xml-dtd-4.5"
+"rewriteURI" "http://www.oasis-open.org/docbook/xml/4.5" "file://\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xml-dtd-4.5")
+
+install_xml_catalog(commands "docbook")
+
+set(commands
+"delegatePublic" "-//OASIS//ENTITIES DocBook XML" "file://\${CMAKE_INSTALL_PREFIX}/etc/xml/docbook"
+"delegatePublic" "-//OASIS//DTD DocBook XML" "file://\${CMAKE_INSTALL_PREFIX}/etc/xml/docbook"
+"delegateSystem" "http://www.oasis-open.org/docbook/" "file://\${CMAKE_INSTALL_PREFIX}/etc/xml/docbook"
+"delegateURI" "http://www.oasis-open.org/docbook/" "file://\${CMAKE_INSTALL_PREFIX}/etc/xml/docbook"
+)
+
+install_xml_catalog(commands "catalog")
+
+# LFS instructions at
+# http://www.linuxfromscratch.org/blfs/view/svn/pst/DocBook.html
+# are open to interpretation for this part, but I think it means
+# these previous versions should be dropped if they are handled
+# a different way. But I am not doing that so leave them in
+# unless some issue is found in the future that I am not aware of
+# now.
+
+set(previous_versions
+ 4.1.2
+ 4.2
+ 4.3
+ 4.4
+ )
+
+foreach(DTDVERSION ${previous_versions})
+ set(commands
+ "public" "-//OASIS//DTD DocBook XML V${DTDVERSION}//EN" "http://www.oasis-open.org/docbook/xml/${DTDVERSION}/docbookx.dtd"
+ "rewriteSystem" "http://www.oasis-open.org/docbook/xml/${DTDVERSION}" "file://\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xml-dtd-4.5"
+ "rewriteURI" "http://www.oasis-open.org/docbook/xml/${DTDVERSION}" "file://\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xml-dtd-4.5"
+ )
+ install_xml_catalog(commands "docbook")
+
+ set(commands
+ "delegateSystem" "http://www.oasis-open.org/docbook/xml/${DTDVERSION}/" "file://\${CMAKE_INSTALL_PREFIX}/etc/xml/docbook"
+ "delegateURI" "http://www.oasis-open.org/docbook/xml/${DTDVERSION}/" "file://\${CMAKE_INSTALL_PREFIX}/etc/xml/docbook"
+ )
+ install_xml_catalog(commands "catalog")
+
+endforeach(DTDVERSION ${previous_versions})
Property changes on: trunk/cmake/build_projects/docbook-xml/CMakeLists.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/cmake/build_projects/docbook-xml/bp.cmake
===================================================================
--- trunk/cmake/build_projects/docbook-xml/bp.cmake (rev 0)
+++ trunk/cmake/build_projects/docbook-xml/bp.cmake 2013-08-02 22:05:10 UTC (rev 12463)
@@ -0,0 +1,102 @@
+# docbook-xml/bp.cmake
+# This file should be included directly or indirectly from a top-level
+# CMakeLists.txt file to configure the build of docbook-xml.
+
+# Copyright (C) 2013 Alan W. Irwin
+
+# This file is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+
+# You should have received a copy of the GNU Lesser General Public
+# License along with this file; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+# The top-level CMakeLists.txt file that includes this file should
+# have run "include(ExternalProject)" and set EP_BASE variable (and
+# corresponding directory property) as well as various BP variables
+# used below that configure how the External_Project functions
+# operate.
+
+# Protect against configuring a build twice in one CMake call
+if(docbook-xml_configured)
+ return()
+endif(docbook-xml_configured)
+set(docbook-xml_configured ON)
+
+# List of dependencies (most of which are build tools) which should be
+# ignored.
+set(BP_ignored_dependencies_LIST pkg-config;bison;flex;python2-devel;libXft)
+
+set(docbook-xml_dependencies_LIST libxml2)
+# Remove dependencies that should be ignored.
+if(docbook-xml_dependencies_LIST)
+ list(REMOVE_ITEM docbook-xml_dependencies_LIST ${BP_ignored_dependencies_LIST})
+endif(docbook-xml_dependencies_LIST)
+
+set(docbook-xml_dependencies_targets)
+foreach(build_configuration ${docbook-xml_dependencies_LIST})
+ if(EXISTS ${CMAKE_SOURCE_DIR}/${build_configuration}/bp.cmake)
+ include(${build_configuration}/bp.cmake)
+ list(APPEND docbook-xml_dependencies_targets build_${build_configuration})
+ else(EXISTS ${CMAKE_SOURCE_DIR}/${build_configuration}/bp.cmake)
+ message(STATUS "Warning: A build_configuration for ${build_configuration} does not exist so it is assumed this dependency of docbook-xml has been installed another way.")
+ endif(EXISTS ${CMAKE_SOURCE_DIR}/${build_configuration}/bp.cmake)
+endforeach(build_configuration ${docbook-xml_dependences_LIST})
+
+# This can be safely done only after above includes.
+set(BP_PACKAGE docbook-xml)
+
+# Data that is related to downloads.
+set(${BP_PACKAGE}_URL http://www.docbook.org/xml/4.5/docbook-xml-4.5.zip)
+set(${BP_PACKAGE}_DOWNLOAD_HASH_TYPE MD5)
+set(${BP_PACKAGE}_DOWNLOAD_HASH 03083e288e87a7e829e437358da7ef9e)
+
+# Data that is related to the PATH that must be used.
+if(MSYS_PLATFORM)
+ #set(BP_PATH_NODLL "${BP_PATH}")
+ #set(BP_PATH "${EP_BASE}/Build/build_${BP_PACKAGE}/dll;${BP_PATH_NODLL}")
+ determine_msys_path(BP_PATH "${BP_PATH}")
+ # Must have all elements of env command in MSYS platform form
+ determine_msys_path(source_PATH "${EP_BASE}/Source/build_${BP_PACKAGE}")
+ set(${BP_PACKAGE}_SET_CFLAGS "CFLAGS=$ENV{CFLAGS}")
+else(MSYS_PLATFORM)
+ set(source_PATH "${EP_BASE}/Source/build_${BP_PACKAGE}")
+ set(${BP_PACKAGE}_SET_CFLAGS "CFLAGS=$ENV{CFLAGS}")
+endif(MSYS_PLATFORM)
+#message(STATUS "modified BP_PATH for ${BP_PACKAGE} = ${BP_PATH}")
+
+ExternalProject_Add(
+ build_${BP_PACKAGE}
+ DEPENDS ${${BP_PACKAGE}_dependencies_targets}
+ URL ${${BP_PACKAGE}_URL}
+ URL_HASH ${${BP_PACKAGE}_DOWNLOAD_HASH_TYPE}=${${BP_PACKAGE}_DOWNLOAD_HASH}
+ CONFIGURE_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${BP_CMAKE_COMMAND} ${EP_BASE}/Source/build_${BP_PACKAGE}
+ BUILD_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${BP_PARALLEL_BUILD_COMMAND}
+ BUILD_IN_SOURCE OFF
+ INSTALL_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${BP_PARALLEL_BUILD_COMMAND} install
+ )
+
+# Add custom commands to the current no-command update step.
+add_custom_command(
+ OUTPUT
+ ${EP_BASE}/Stamp/build_${BP_PACKAGE}/build_${BP_PACKAGE}-update
+ COMMAND ${CMAKE_COMMAND} -E copy
+ ${CMAKE_SOURCE_DIR}/${BP_PACKAGE}/CMakeLists.txt
+ ${EP_BASE}/Source/build_${BP_PACKAGE}/CMakeLists.txt
+ COMMENT "Custom updating of ${BP_PACKAGE}"
+ DEPENDS
+ ${CMAKE_SOURCE_DIR}/${BP_PACKAGE}/CMakeLists.txt
+ APPEND
+ )
+
+list(APPEND build_target_LIST build_${BP_PACKAGE})
+# Restore BP_PATH to original state.
+set(BP_PATH "${BP_ORIGINAL_NATIVE_PATH}")
+#message(STATUS "${BP_PACKAGE} restored original BP_PATH = ${BP_PATH}")
Added: trunk/cmake/build_projects/docbook-xsl/CMakeLists.txt
===================================================================
--- trunk/cmake/build_projects/docbook-xsl/CMakeLists.txt (rev 0)
+++ trunk/cmake/build_projects/docbook-xsl/CMakeLists.txt 2013-08-02 22:05:10 UTC (rev 12463)
@@ -0,0 +1,168 @@
+# Top-level CMakeLists.txt for the CMake-based build system
+# of the docbook-xsl software.
+
+# Copyright (C) 2013 Alan W. Irwin
+
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Library General Public License as published
+# by the Free Software Foundation; version 2 of the License.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Library General Public License for more details.
+#
+# You should have received a copy of the GNU Library General Public License
+# along with this file; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+project(docbook-xsl NONE)
+
+message(STATUS "CMake version = ${CMAKE_VERSION}")
+message(STATUS "CMAKE_SYSTEM_NAME = ${CMAKE_SYSTEM_NAME}")
+
+cmake_minimum_required(VERSION 2.8.10.2 FATAL_ERROR)
+
+# Define useful function.
+find_program(XMLCATALOG_EXECUTABLE xmlcatalog)
+function(install_xml_catalog arguments_LIST3 catalog)
+ # Install an XML catalog using the information supplied in
+ # arguments_LIST3, which is a list of arguments grouped by
+ # threes where each group of three arguments correspond to
+ # the three arguments of the "xmlcatalog --add" command.
+
+ # Create the catalog if it does not exist.
+ install(CODE "
+if(NOT EXISTS \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/etc/xml/${catalog}\")
+message(STATUS \"Creating \${CMAKE_INSTALL_PREFIX}/etc/xml/${catalog}\")
+execute_process(COMMAND ${XMLCATALOG_EXECUTABLE} --noout
+ --create
+ \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/etc/xml/${catalog}\")
+endif(NOT EXISTS \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/etc/xml/${catalog}\")
+")
+
+ list(LENGTH ${arguments_LIST3} narguments_LIST3)
+ set(group_size 3)
+ set(remove_indices 0 1 2)
+ math(EXPR max_index "(${narguments_LIST3}/${group_size}) - 1")
+ foreach(index RANGE 0 ${max_index})
+ list(GET ${arguments_LIST3} 0 type)
+ list(GET ${arguments_LIST3} 1 orig)
+ list(GET ${arguments_LIST3} 2 replace)
+ list(REMOVE_AT ${arguments_LIST3} ${remove_indices})
+ install(CODE "
+message(STATUS \"Updating \${CMAKE_INSTALL_PREFIX}/etc/xml/${catalog}\")
+execute_process(COMMAND ${XMLCATALOG_EXECUTABLE} --noout
+ --add \"${type}\" \"${orig}\" \"${replace}\"
+ \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/etc/xml/${catalog}\")
+"
+ )
+ endforeach(index RANGE 0 ${max_index})
+endfunction(install_xml_catalog)
+
+# Nothing to build. Just follow directions at
+# http://www.linuxfromscratch.org/blfs/view/svn/pst/docbook-xsl.html to
+# install files that are in the source tree.
+
+find_program(INSTALL_EXECUTABLE install)
+find_program(CP_EXECUTABLE cp)
+find_program(LN_EXECUTABLE ln)
+
+set(path_list
+ ${CMAKE_SOURCE_DIR}/VERSION
+ ${CMAKE_SOURCE_DIR}/common
+ ${CMAKE_SOURCE_DIR}/eclipse
+ ${CMAKE_SOURCE_DIR}/epub
+ ${CMAKE_SOURCE_DIR}/extensions
+ ${CMAKE_SOURCE_DIR}/fo
+ ${CMAKE_SOURCE_DIR}/highlighting
+ ${CMAKE_SOURCE_DIR}/html
+ ${CMAKE_SOURCE_DIR}/htmlhelp
+ ${CMAKE_SOURCE_DIR}/images
+ ${CMAKE_SOURCE_DIR}/javahelp
+ ${CMAKE_SOURCE_DIR}/lib
+ ${CMAKE_SOURCE_DIR}/manpages
+ ${CMAKE_SOURCE_DIR}/params
+ ${CMAKE_SOURCE_DIR}/profiling
+ ${CMAKE_SOURCE_DIR}/roundtrip
+ ${CMAKE_SOURCE_DIR}/slides
+ ${CMAKE_SOURCE_DIR}/template
+ ${CMAKE_SOURCE_DIR}/tests
+ ${CMAKE_SOURCE_DIR}/tools
+ ${CMAKE_SOURCE_DIR}/webhelp
+ ${CMAKE_SOURCE_DIR}/website
+ ${CMAKE_SOURCE_DIR}/xhtml
+ ${CMAKE_SOURCE_DIR}/xhtml-1_1
+)
+
+install(CODE "
+message(STATUS \"Installing \${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xsl-stylesheets-1.78.1\")
+execute_process(
+COMMAND ${INSTALL_EXECUTABLE} -v -d -m755
+\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xsl-stylesheets-1.78.1\")
+"
+ )
+
+install(CODE "
+execute_process(
+COMMAND ${CP_EXECUTABLE} -v -R ${path_list}
+\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xsl-stylesheets-1.78.1\")
+"
+ )
+
+install(CODE "
+execute_process(
+COMMAND ${LN_EXECUTABLE} -s VERSION
+\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xsl-stylesheets-1.78.1/VERSION.xsl\")
+"
+ )
+
+install(CODE "
+execute_process(
+COMMAND ${INSTALL_EXECUTABLE} -v -m644 -D ${CMAKE_SOURCE_DIR}/README
+\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/share/doc/docbook-xsl-1.78.1/README.txt\")
+"
+ )
+
+set(globs
+ ${CMAKE_SOURCE_DIR}/RELEASE-NOTES*
+ ${CMAKE_SOURCE_DIR}/NEWS*
+ )
+# Make elements of path_list absolute PATH names.
+file(GLOB path_list
+ ${globs}
+ )
+install(CODE "
+execute_process(
+COMMAND ${INSTALL_EXECUTABLE} -v -m644 ${path_list}
+\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/share/doc/docbook-xsl-1.78.1\")
+"
+ )
+
+install(CODE "
+message(STATUS \"Installing \${CMAKE_INSTALL_PREFIX}/etc/xml\")
+execute_process(
+COMMAND ${INSTALL_EXECUTABLE} -v -d -m755
+\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/etc/xml\")
+"
+ )
+
+set(commands
+ "rewriteSystem" "http://docbook.sourceforge.net/release/xsl/1.78.1" "\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xsl-stylesheets-1.78.1"
+ "rewriteURI" "http://docbook.sourceforge.net/release/xsl/1.78.1" "\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xsl-stylesheets-1.78.1"
+ "rewriteSystem" "http://docbook.sourceforge.net/release/xsl/current" "\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xsl-stylesheets-1.78.1"
+ "rewriteURI" "http://docbook.sourceforge.net/release/xsl/current" "\${CMAKE_INSTALL_PREFIX}/share/xml/docbook/xsl-stylesheets-1.78.1"
+)
+
+install_xml_catalog(commands "catalog")
+
+# LFS instructions at
+# http://www.linuxfromscratch.org/blfs/view/svn/pst/docbook-xsl.html
+# state what to do if other previous versions of docbook-xsl are
+# required. Essentially, the steps are to install the older
+# docbook-xsl package as well, then run xmlcatalog --add <type> <orig>
+# <replace> where <type> is first rewriteSystem then rewriteURI. Note
+# it is a different scenario then what is done for docbook-xml where
+# old versions of docbook-xml do not have to be installed. With luck,
+# we won't need to install different versions of docbook-xsl so ignore
+# these docbook-xsl multiversion instructions for now.
Property changes on: trunk/cmake/build_projects/docbook-xsl/CMakeLists.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/cmake/build_projects/docbook-xsl/bp.cmake
===================================================================
--- trunk/cmake/build_projects/docbook-xsl/bp.cmake (rev 0)
+++ trunk/cmake/build_projects/docbook-xsl/bp.cmake 2013-08-02 22:05:10 UTC (rev 12463)
@@ -0,0 +1,102 @@
+# docbook-xsl/bp.cmake
+# This file should be included directly or indirectly from a top-level
+# CMakeLists.txt file to configure the build of docbook-xsl.
+
+# Copyright (C) 2013 Alan W. Irwin
+
+# This file is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+
+# You should have received a copy of the GNU Lesser General Public
+# License along with this file; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+# The top-level CMakeLists.txt file that includes this file should
+# have run "include(ExternalProject)" and set EP_BASE variable (and
+# corresponding directory property) as well as various BP variables
+# used below that configure how the External_Project functions
+# operate.
+
+# Protect against configuring a build twice in one CMake call
+if(docbook-xsl_configured)
+ return()
+endif(docbook-xsl_configured)
+set(docbook-xsl_configured ON)
+
+# List of dependencies (most of which are build tools) which should be
+# ignored.
+set(BP_ignored_dependencies_LIST pkg-config;bison;flex;python2-devel;libXft)
+
+set(docbook-xsl_dependencies_LIST libxml2)
+# Remove dependencies that should be ignored.
+if(docbook-xsl_dependencies_LIST)
+ list(REMOVE_ITEM docbook-xsl_dependencies_LIST ${BP_ignored_dependencies_LIST})
+endif(docbook-xsl_dependencies_LIST)
+
+set(docbook-xsl_dependencies_targets)
+foreach(build_configuration ${docbook-xsl_dependencies_LIST})
+ if(EXISTS ${CMAKE_SOURCE_DIR}/${build_configuration}/bp.cmake)
+ include(${build_configuration}/bp.cmake)
+ list(APPEND docbook-xsl_dependencies_targets build_${build_configuration})
+ else(EXISTS ${CMAKE_SOURCE_DIR}/${build_configuration}/bp.cmake)
+ message(STATUS "Warning: A build_configuration for ${build_configuration} does not exist so it is assumed this dependency of docbook-xsl has been installed another way.")
+ endif(EXISTS ${CMAKE_SOURCE_DIR}/${build_configuration}/bp.cmake)
+endforeach(build_configuration ${docbook-xsl_dependences_LIST})
+
+# This can be safely done only after above includes.
+set(BP_PACKAGE docbook-xsl)
+
+# Data that is related to downloads.
+set(${BP_PACKAGE}_URL http://downloads.sourceforge.net/docbook/docbook-xsl-1.78.1.tar.bz2)
+set(${BP_PACKAGE}_DOWNLOAD_HASH_TYPE MD5)
+set(${BP_PACKAGE}_DOWNLOAD_HASH 6dd0f89131cc35bf4f2ed105a1c17771)
+
+# Data that is related to the PATH that must be used.
+if(MSYS_PLATFORM)
+ #set(BP_PATH_NODLL "${BP_PATH}")
+ #set(BP_PATH "${EP_BASE}/Build/build_${BP_PACKAGE}/dll;${BP_PATH_NODLL}")
+ determine_msys_path(BP_PATH "${BP_PATH}")
+ # Must have all elements of env command in MSYS platform form
+ determine_msys_path(source_PATH "${EP_BASE}/Source/build_${BP_PACKAGE}")
+ set(${BP_PACKAGE}_SET_CFLAGS "CFLAGS=$ENV{CFLAGS}")
+else(MSYS_PLATFORM)
+ set(source_PATH "${EP_BASE}/Source/build_${BP_PACKAGE}")
+ set(${BP_PACKAGE}_SET_CFLAGS "CFLAGS=$ENV{CFLAGS}")
+endif(MSYS_PLATFORM)
+#message(STATUS "modified BP_PATH for ${BP_PACKAGE} = ${BP_PATH}")
+
+ExternalProject_Add(
+ build_${BP_PACKAGE}
+ DEPENDS ${${BP_PACKAGE}_dependencies_targets}
+ URL ${${BP_PACKAGE}_URL}
+ URL_HASH ${${BP_PACKAGE}_DOWNLOAD_HASH_TYPE}=${${BP_PACKAGE}_DOWNLOAD_HASH}
+ CONFIGURE_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${BP_CMAKE_COMMAND} ${EP_BASE}/Source/build_${BP_PACKAGE}
+ BUILD_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${BP_PARALLEL_BUILD_COMMAND}
+ BUILD_IN_SOURCE OFF
+ INSTALL_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${BP_PARALLEL_BUILD_COMMAND} install
+ )
+
+# Add custom commands to the current no-command update step.
+add_custom_command(
+ OUTPUT
+ ${EP_BASE}/Stamp/build_${BP_PACKAGE}/build_${BP_PACKAGE}-update
+ COMMAND ${CMAKE_COMMAND} -E copy
+ ${CMAKE_SOURCE_DIR}/${BP_PACKAGE}/CMakeLists.txt
+ ${EP_BASE}/Source/build_${BP_PACKAGE}/CMakeLists.txt
+ COMMENT "Custom updating of ${BP_PACKAGE}"
+ DEPENDS
+ ${CMAKE_SOURCE_DIR}/${BP_PACKAGE}/CMakeLists.txt
+ APPEND
+ )
+
+list(APPEND build_target_LIST build_${BP_PACKAGE})
+# Restore BP_PATH to original state.
+set(BP_PATH "${BP_ORIGINAL_NATIVE_PATH}")
+#message(STATUS "${BP_PACKAGE} restored original BP_PATH = ${BP_PATH}")
Modified: trunk/cmake/build_projects/gtk-doc/bp.cmake
===================================================================
--- trunk/cmake/build_projects/gtk-doc/bp.cmake 2013-08-01 04:25:44 UTC (rev 12462)
+++ trunk/cmake/build_projects/gtk-doc/bp.cmake 2013-08-02 22:05:10 UTC (rev 12463)
@@ -34,7 +34,7 @@
# ignored.
set(BP_ignored_dependencies_LIST pkg-config;bison;flex;python2-devel;libXft)
-set(gtk-doc_dependencies_LIST libxslt;yelp-tools)
+set(gtk-doc_dependencies_LIST libxslt;yelp-tools;docbook-xml;docbook-xsl)
# Remove dependencies that should be ignored.
if(gtk-doc_dependencies_LIST)
list(REMOVE_ITEM gtk-doc_dependencies_LIST ${BP_ignored_dependencies_LIST})
@@ -77,7 +77,7 @@
DEPENDS ${${BP_PACKAGE}_dependencies_targets}
URL ${${BP_PACKAGE}_URL}
URL_HASH ${${BP_PACKAGE}_DOWNLOAD_HASH_TYPE}=${${BP_PACKAGE}_DOWNLOAD_HASH}
- CONFIGURE_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${${BP_PACKAGE}_SET_CFLAGS} ${source_PATH}/${BP_CONFIGURE_COMMAND}
+ CONFIGURE_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${${BP_PACKAGE}_SET_CFLAGS} ${source_PATH}/${BP_CONFIGURE_COMMAND} --with-xml-catalog=${BP_CMAKE_INSTALL_PREFIX}/etc/xml/catalog
BUILD_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${BP_PARALLEL_MAKE_COMMAND}
BUILD_IN_SOURCE OFF
INSTALL_COMMAND ${ENV_EXECUTABLE} PATH=${BP_PATH} ${BP_PARALLEL_MAKE_COMMAND} install
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|