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