Makefile revision 1097
456N/A###############################################################################
456N/A# lbxutil 1.x Makefile
456N/A#
1097N/A# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
456N/A#
456N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the "Software"),
919N/A# to deal in the Software without restriction, including without limitation
919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A# and/or sell copies of the Software, and to permit persons to whom the
919N/A# Software is furnished to do so, subject to the following conditions:
919N/A#
919N/A# The above copyright notice and this permission notice (including the next
919N/A# paragraph) shall be included in all copies or substantial portions of the
919N/A# Software.
919N/A#
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A# DEALINGS IN THE SOFTWARE.
456N/A#
456N/A#
456N/A
456N/A# Package name used in tarballs
493N/AMODULE_NAME=liblbxutil
456N/A
970N/A# pkg(5) name we deliver the files in (override default)
970N/AMODULE_PKGNAME=x11/network/x11-network-proxies
970N/AMODULE_PKGNAME_SET=yes
970N/A
970N/A# Package classification (override default)
970N/AMODULE_PKGCLASS=Applications/Internet
970N/AMODULE_PKGCLASS_SET=yes
970N/A
456N/A# Version number (used in path names)
851N/AMODULE_VERSION=1.1.0
456N/A
911N/A# Checksums for upstream tarball
911N/ATARBALL_MD5 = 273329a78c2e9ea189ac416c7fde94a1
911N/ATARBALL_SHA1 = 99616bab0ca0afeaa9c0a19222091b1ff4f18680
911N/A
456N/A# Patches to apply to source after unpacking, in order
851N/ASOURCE_PATCHES =
456N/A
456N/A# Library name (used for specfiles/mapfiles)
456N/ALIBNAME=lbxutil
456N/A
456N/A# Man pages to apply Sun footer to & attributes to list
456N/A#LIB_STABILITY=Committed
456N/A#LIB_MAN_SUFFIX=3lbxutil
456N/A
1097N/A### Include common definitions
1097N/APWD:sh=pwd
1097N/ATOP=$(PWD)/../../..
1097N/Ainclude $(TOP)/open-src/common/Makefile.init
1097N/A
1097N/A# Build as a static library since only lbxproxy needs it anymore
1097N/A# and install it in $(TOOLS_DIR) since we're not packaging it
1097N/AMODULE_CONFIG_OPTS = --enable-shared=no --enable-static=yes
1097N/AMODULE_CONFIG_OPTS += --libdir='$${exec_prefix}/lib$(ARCHLIBSUBDIR)'
1097N/AMODULE_CFLAGS = $(PROG_CFLAGS)
1097N/AMODULE_ADD_UNINSTALLED_PC_OPS = -e 's|$$protodir|$(TOOLS_DIR)|g;'
1097N/AMODULE_INSTALL_MAKEFLAGS = DESTDIR=$(TOOLS_DIR)
1097N/A
1097N/A# Only need 64-bit since we only ship lbxproxy as 64-bit
1097N/ABUILD_TYPES=64
851N/ABUILD_TYPES_SET=yes
851N/A
456N/A# pkg-config files that need to have -R added
456N/AFIX_PC_FILES=lbxutil.pc.in
456N/A
1097N/A# Don't include lib/Makefile.inc that sets options for shared libraries
1097N/A# which we don't want in this special case
1097N/Ainclude ../../common/Makefile.inc
503N/A
1097N/A# Since liblbxutil doesn't depend on any other libraries we build, it may
1097N/A# be the first library built. Since it installs the normal .pc file to
1097N/A# $(TOOLS_DIR), have to ensure the directory exists before installing the
1097N/A# lbxutil-uninstalled.pc file.
1097N/Ainstall_pkgconfig_uninstalled: $(PROTODIR)$(MODULE_PKGCONFIG_DIR)
851N/A
1097N/A$(PROTODIR)$(MODULE_PKGCONFIG_DIR):
1097N/A mkdir -p $@