Makefile revision 1447
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker###############################################################################
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# liblbxutil - Low Bandwidth X implementation private library
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Permission is hereby granted, free of charge, to any person obtaining a
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# copy of this software and associated documentation files (the "Software"),
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# to deal in the Software without restriction, including without limitation
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# the rights to use, copy, modify, merge, publish, distribute, sublicense,
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# and/or sell copies of the Software, and to permit persons to whom the
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Software is furnished to do so, subject to the following conditions:
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# The above copyright notice and this permission notice (including the next
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# paragraph) shall be included in all copies or substantial portions of the
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Software.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# DEALINGS IN THE SOFTWARE.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Package name used in tarballs
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerMODULE_NAME=liblbxutil
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# pkg(5) name we deliver the files in (override default)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerMODULE_PKGNAME=x11/network/x11-network-proxies
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerMODULE_PKGNAME_SET=yes
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Package classification (override default)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerMODULE_PKGCLASS=Applications/Internet
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerMODULE_PKGCLASS_SET=yes
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Package metadata
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerMODULE_DESC = the liblbxutil Low Bandwidth X implementation private library
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Version number (used in path names)
MODULE_VERSION=1.1.0
# Checksums for upstream tarball
TARBALL_MD5 = 273329a78c2e9ea189ac416c7fde94a1
TARBALL_SHA1 = 99616bab0ca0afeaa9c0a19222091b1ff4f18680
# Patches to apply to source after unpacking, in order
SOURCE_PATCHES =
# Library name (used for specfiles/mapfiles)
LIBNAME=lbxutil
# Man pages to apply Sun footer to & attributes to list
#LIB_STABILITY=Project Private
#LIB_MAN_SUFFIX=3lbxutil
### Include common definitions
PWD:sh=pwd
TOP=$(PWD)/../../..
include $(TOP)/open-src/common/Makefile.init
# Build as a static library since only lbxproxy needs it anymore
# and install it in $(TOOLS_DIR) since we're not packaging it
MODULE_CONFIG_OPTS = --enable-shared=no --enable-static=yes
MODULE_CONFIG_OPTS += --libdir='$${exec_prefix}/lib$(ARCHLIBSUBDIR)'
MODULE_CFLAGS = $(PROG_CFLAGS)
MODULE_CPPFLAGS = $(PROG_CPPFLAGS)
MODULE_ADD_UNINSTALLED_PC_OPS = -e 's|$$protodir|$(TOOLS_DIR)|g;' \
-e 's|^Libs: |Libs: -L$(TOOLS_DIR)/\$${libdir}|g;'
MODULE_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 $@