[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [6236] Install wxPdfDocument library as part of lmi instal
From: |
Greg Chicares |
Subject: |
[lmi-commits] [6236] Install wxPdfDocument library as part of lmi installation |
Date: |
Fri, 07 Aug 2015 00:25:16 +0000 |
Revision: 6236
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6236
Author: chicares
Date: 2015-08-07 00:25:15 +0000 (Fri, 07 Aug 2015)
Log Message:
-----------
Install wxPdfDocument library as part of lmi installation
Modified Paths:
--------------
lmi/trunk/install_msw.sh
Added Paths:
-----------
lmi/trunk/install_wxpdfdoc.make
Modified: lmi/trunk/install_msw.sh
===================================================================
--- lmi/trunk/install_msw.sh 2015-08-07 00:07:29 UTC (rev 6235)
+++ lmi/trunk/install_msw.sh 2015-08-07 00:25:15 UTC (rev 6236)
@@ -134,6 +134,7 @@
make $coefficiency -f install_libxml2_libxslt.make
make $coefficiency -f install_wx.make
+make $coefficiency -f install_wxpdfdoc.make
find /cache_for_lmi/downloads -type f | xargs md5sum
Added: lmi/trunk/install_wxpdfdoc.make
===================================================================
--- lmi/trunk/install_wxpdfdoc.make (rev 0)
+++ lmi/trunk/install_wxpdfdoc.make 2015-08-07 00:25:15 UTC (rev 6236)
@@ -0,0 +1,118 @@
+# Installer for wxPdfDocument library.
+#
+# Copyright (C) 2015 Gregory W. Chicares.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+# This program 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+#
+# http://savannah.nongnu.org/projects/lmi
+# email: <address@hidden>
+# snail: Chicares, 186 Belle Woods Drive, Glastonbury CT 06033, USA
+
+# $Id$
+
+this_makefile := $(abspath $(lastword $(MAKEFILE_LIST)))
+
+# Configurable settings
########################################################
+
+mingw_dir := /MinGW_
+
+prefix := /opt/lmi/local
+
+cache_dir := /cache_for_lmi/downloads
+
+wxpdfdoc_dir := /opt/lmi/wxpdfdoc-scratch
+
+# URLs and archive md5sums
#####################################################
+
+# Unlike the other similar makefiles, we can't make the URL to end with the
+# archive name because we don't want to use the bare commit SHA-1 as the file
+# name, so we need a separate "urlbase" variable.
+
+wxpdfdoc_commit := acd7a8210e4b1cc688458b73b612370392ff5d39
+wxpdfdoc_basename := wxpdfdoc-$(wxpdfdoc_commit)
+wxpdfdoc_archive := $(wxpdfdoc_basename).zip
+$(wxpdfdoc_archive)-urlbase := $(wxpdfdoc_commit).zip
+$(wxpdfdoc_archive)-root := https://github.com/vadz/wxpdfdoc/archive
+$(wxpdfdoc_archive)-url :=
$($(wxpdfdoc_archive)-root)/$($(wxpdfdoc_archive)-urlbase)
+$(wxpdfdoc_archive)-md5 := e94fed47eb638d1dea1e55e6ae49c302
+
+# Variables that normally should be left alone
#################################
+
+mingw_bin_dir := $(mingw_dir)/bin
+
+compiler := gcc-$(shell $(mingw_bin_dir)/gcc -dumpversion)
+
+config_options = \
+ --prefix=$(prefix) \
+ --build=i686-pc-cygwin \
+ --host=i686-pc-mingw32 \
+ --disable-dependency-tracking \
+ --with-wx-config=$(prefix)/bin/wx-config-portable \
+ AR='$(mingw_bin_dir)/ar' \
+ AS='$(mingw_bin_dir)/as' \
+ CC='$(mingw_bin_dir)/gcc' \
+ CPP='$(mingw_bin_dir)/cpp' \
+ CXX='$(mingw_bin_dir)/g++' \
+ DLLTOOL='$(mingw_bin_dir)/dlltool' \
+ LD='$(mingw_bin_dir)/ld' \
+ NM='$(mingw_bin_dir)/nm' \
+ OBJDUMP='$(mingw_bin_dir)/objdump' \
+ RANLIB='$(mingw_bin_dir)/ranlib' \
+ STRIP='$(mingw_bin_dir)/strip' \
+ WINDRES='$(mingw_bin_dir)/windres' \
+
+# Utilities
####################################################################
+
+ECHO := echo
+MD5SUM := md5sum
+MKDIR := mkdir
+RM := rm
+RMDIR := rmdir
+UNZIP := unzip
+WGET := wget
+
+WGETFLAGS :=
+
+# Targets
######################################################################
+
+.PHONY: all
+all: clobber
+ $(MAKE) --file=$(this_makefile) wxpdfdoc
+
+.PHONY: initial_setup
+initial_setup:
+ @$(MKDIR) --parents $(prefix)
+ @$(MKDIR) --parents $(cache_dir)
+ @$(MKDIR) --parents $(wxpdfdoc_dir)
+
+.PHONY: %.zip
+%.zip: initial_setup
+ cd $(cache_dir) && [ -e $@ ] || $(WGET) $(WGETFLAGS)
--output-document=$@ $(address@hidden)
+ cd $(cache_dir) && $(ECHO) "$(address@hidden) *$@" | $(MD5SUM) --check
+ -$(UNZIP) $(cache_dir)/$@ -d $(wxpdfdoc_dir)
+
+.PHONY: wxpdfdoc
+wxpdfdoc: $(wxpdfdoc_archive)
+ cd $(wxpdfdoc_dir)/$(wxpdfdoc_basename) && \
+ ./configure $(config_options) && \
+ $(MAKE) install_pdfdoc_dll install_pdfdoc_dll_headers
+
+.PHONY: clobber
+clobber:
+# The 'uninstall_pdfdoc_dll_headers' target doesn't remove the (now empty)
+# directory where the headers are installed, so do it separately ourselves.
+ -cd $(wxpdfdoc_dir)/$(wxpdfdoc_basename) && \
+ $(MAKE) uninstall_pdfdoc_dll uninstall_pdfdoc_dll_headers
+ -$(RMDIR) $(prefix)/include/wx
+ -$(RM) --force --recursive $(wxpdfdoc_dir)
Property changes on: lmi/trunk/install_wxpdfdoc.make
___________________________________________________________________
Added: svn:keywords
+ Id
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [6236] Install wxPdfDocument library as part of lmi installation,
Greg Chicares <=