2004-09-20 05:57:45 -05:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2008-04-10 11:34:55 -05:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
2010-02-12 08:01:35 -06:00
|
|
|
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
2004-09-20 05:57:45 -05:00
|
|
|
#
|
2008-04-10 11:34:55 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2004-09-20 05:57:45 -05:00
|
|
|
#
|
2008-04-10 11:34:55 -05:00
|
|
|
# This file is part of OpenOffice.org.
|
2004-09-20 05:57:45 -05:00
|
|
|
#
|
2008-04-10 11:34:55 -05:00
|
|
|
# OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
# only, as published by the Free Software Foundation.
|
2004-09-20 05:57:45 -05:00
|
|
|
#
|
2008-04-10 11:34:55 -05:00
|
|
|
# OpenOffice.org 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 version 3 for more details
|
|
|
|
# (a copy is included in the LICENSE file that accompanied this code).
|
2004-09-20 05:57:45 -05:00
|
|
|
#
|
2008-04-10 11:34:55 -05:00
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# version 3 along with OpenOffice.org. If not, see
|
|
|
|
# <http://www.openoffice.org/license.html>
|
|
|
|
# for a copy of the LGPLv3 License.
|
2004-09-20 05:57:45 -05:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
|
|
|
.INCLUDE .IGNORE : pkgroot.mk
|
|
|
|
|
|
|
|
.IF "$(PKGCONFIG_ROOT)"!=""
|
2009-09-07 08:35:07 -05:00
|
|
|
PKG_CONFIG=$(PKGCONFIG_ROOT)/bin/pkg-config
|
2008-08-27 07:38:15 -05:00
|
|
|
.IF "$(OS)"=="SOLARIS" && "$(CPUNAME)"=="SPARC" && "$(CPU)"=="U"
|
2009-09-07 08:35:07 -05:00
|
|
|
PKG_CONFIG_PATH:=$(PKGCONFIG_ROOT)/lib/64/pkgconfig
|
2008-08-27 07:38:15 -05:00
|
|
|
.ELSE
|
2009-09-07 08:35:07 -05:00
|
|
|
PKG_CONFIG_PATH:=$(PKGCONFIG_ROOT)/lib/pkgconfig
|
2008-08-27 07:38:15 -05:00
|
|
|
.ENDIF
|
2004-09-20 05:57:45 -05:00
|
|
|
.EXPORT : PKG_CONFIG_PATH
|
|
|
|
PKGCONFIG_PREFIX=--define-variable=prefix=$(PKGCONFIG_ROOT)
|
2008-08-27 07:38:15 -05:00
|
|
|
.ELSE
|
2008-03-18 07:08:23 -05:00
|
|
|
PKG_CONFIG*=pkg-config
|
2008-08-27 07:38:15 -05:00
|
|
|
.IF "$(OS)"=="SOLARIS" && "$(CPUNAME)"=="SPARC" && "$(CPU)"=="U"
|
|
|
|
PKG_CONFIG_PATH=/usr/lib/64/pkgconfig
|
|
|
|
.EXPORT : PKG_CONFIG_PATH
|
|
|
|
.ENDIF
|
|
|
|
.ENDIF
|
2004-09-20 05:57:45 -05:00
|
|
|
|
2008-03-18 07:08:23 -05:00
|
|
|
PKGCONFIG_CFLAGS:=$(shell @$(PKG_CONFIG) $(PKGCONFIG_PREFIX) --cflags $(PKGCONFIG_MODULES))
|
|
|
|
PKGCONFIG_LIBS:=$(shell @$(PKG_CONFIG) $(PKGCONFIG_PREFIX) --libs $(PKGCONFIG_MODULES))
|
2004-09-20 05:57:45 -05:00
|
|
|
CFLAGS+=$(PKGCONFIG_CFLAGS)
|