1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir# dmake create_clean -- just unpacks 29*cdf0e10cSrcweir# dmake patch -- unpacks and applies patch file 30*cdf0e10cSrcweir# dmake create_patch -- creates a patch file 31*cdf0e10cSrcweir 32*cdf0e10cSrcweirPRJ=. 33*cdf0e10cSrcweir 34*cdf0e10cSrcweirPRJNAME=boost 35*cdf0e10cSrcweirTARGET=ooo_boost 36*cdf0e10cSrcweir 37*cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir.INCLUDE : settings.mk 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir# force patched boost for sunpro CC 42*cdf0e10cSrcweir# to workaround opt bug when compiling with -xO3 43*cdf0e10cSrcweir.IF "$(SYSTEM_BOOST)" == "YES" && ("$(OS)"!="SOLARIS" || "$(COM)"=="GCC") 44*cdf0e10cSrcweirall: 45*cdf0e10cSrcweir @echo "An already available installation of boost should exist on your system." 46*cdf0e10cSrcweir @echo "Therefore the version provided here does not need to be built in addition." 47*cdf0e10cSrcweir.ELSE # "$(SYSTEM_BOOST)" == "YES" && ("$(OS)"!="SOLARIS" || "$(COM)"=="GCC") 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir# --- Files -------------------------------------------------------- 50*cdf0e10cSrcweir 51*cdf0e10cSrcweirTARFILE_NAME=boost_1_39_0 52*cdf0e10cSrcweirTARFILE_MD5=fcc6df1160753d0b8c835d17fdeeb0a7 53*cdf0e10cSrcweirPATCH_FILES=$(TARFILE_NAME).patch 54*cdf0e10cSrcweir# See https://svn.boost.org/trac/boost/ticket/3780 55*cdf0e10cSrcweirPATCH_FILES+=aliasing.patch 56*cdf0e10cSrcweir 57*cdf0e10cSrcweirCONFIGURE_DIR= 58*cdf0e10cSrcweirCONFIGURE_ACTION= 59*cdf0e10cSrcweir 60*cdf0e10cSrcweirBUILD_DIR= 61*cdf0e10cSrcweirBUILD_ACTION= 62*cdf0e10cSrcweirBUILD_FLAGS= 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir.INCLUDE : set_ext.mk 67*cdf0e10cSrcweir.INCLUDE : target.mk 68*cdf0e10cSrcweir.INCLUDE : tg_ext.mk 69*cdf0e10cSrcweir 70*cdf0e10cSrcweir# --- post-build --------------------------------------------------- 71*cdf0e10cSrcweir 72*cdf0e10cSrcweir# "normalize" the output structure, in that the C++ headers are 73*cdf0e10cSrcweir# copied to the canonic location in OUTPATH 74*cdf0e10cSrcweir# The allows, later on, to use the standard mechanisms to deliver those 75*cdf0e10cSrcweir# files, instead of delivering them out of OUTPATH/misc/build/..., which 76*cdf0e10cSrcweir# could cause problems 77*cdf0e10cSrcweir 78*cdf0e10cSrcweirNORMALIZE_FLAG_FILE=so_normalized_$(TARGET) 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir$(PACKAGE_DIR)$/$(NORMALIZE_FLAG_FILE) : $(PACKAGE_DIR)$/$(BUILD_FLAG_FILE) 81*cdf0e10cSrcweir -@$(MKDIRHIER) $(INCCOM)$/$(PRJNAME) 82*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/*.h $(INCCOM)$/$(PRJNAME) 83*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/*.hpp $(INCCOM)$/$(PRJNAME) 84*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/bind $(INCCOM)$/$(PRJNAME) 85*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/config $(INCCOM)$/$(PRJNAME) 86*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/detail $(INCCOM)$/$(PRJNAME) 87*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/exception $(INCCOM)$/$(PRJNAME) 88*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/function $(INCCOM)$/$(PRJNAME) 89*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/iterator $(INCCOM)$/$(PRJNAME) 90*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/mpl $(INCCOM)$/$(PRJNAME) 91*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/numeric $(INCCOM)$/$(PRJNAME) 92*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/optional $(INCCOM)$/$(PRJNAME) 93*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/pending $(INCCOM)$/$(PRJNAME) 94*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/pool $(INCCOM)$/$(PRJNAME) 95*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/preprocessor $(INCCOM)$/$(PRJNAME) 96*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/ptr_container $(INCCOM)$/$(PRJNAME) 97*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/range $(INCCOM)$/$(PRJNAME) 98*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/spirit $(INCCOM)$/$(PRJNAME) 99*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/smart_ptr $(INCCOM)$/$(PRJNAME) 100*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/tuple $(INCCOM)$/$(PRJNAME) 101*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/type_traits $(INCCOM)$/$(PRJNAME) 102*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/utility $(INCCOM)$/$(PRJNAME) 103*cdf0e10cSrcweir @$(GNUCOPY) -r $(PACKAGE_DIR)$/$(TARFILE_NAME)$/boost$/variant $(INCCOM)$/$(PRJNAME) 104*cdf0e10cSrcweir @$(TOUCH) $(PACKAGE_DIR)$/$(NORMALIZE_FLAG_FILE) 105*cdf0e10cSrcweir 106*cdf0e10cSrcweirnormalize: $(PACKAGE_DIR)$/$(NORMALIZE_FLAG_FILE) 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir$(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE) : normalize 109*cdf0e10cSrcweir.ENDIF # "$(SYSTEM_BOOST)" == "YES" && ("$(OS)"!="SOLARIS" || "$(COM)"=="GCC") 110