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