components/openusb/Makefile
author Melynda Hunter <melynda.hunter@Oracle.COM>
Wed, 30 Jan 2013 10:42:50 -0800
branchs11u1-sru
changeset 2479 e8d296a83439
parent 800 2ad056ed89ec
child 1048 e82fa02a4d16
child 2434 6c9bb5cf5610
permissions -rw-r--r--
Added tag 0.175.1.4.0.4.0 for changeset a8b64d3a690a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
377
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 377
diff changeset
    21
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
377
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		libopenusb
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
COMPONENT_VERSION=	1.0.1
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_PROJECT_URL=	http://openusb.sourceforge.net/
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 377
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 377
diff changeset
    31
    sha256:031098c376f16f6030c4dbd553266e107b39d1f7b3fc366f8f7fd412d3d7c3ad
377
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_URL=	http://sourceforge.net/projects/openusb/files/$(COMPONENT_NAME)/libopenusb%201.0.1/$(COMPONENT_ARCHIVE)/download
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
include ../../make-rules/prep.mk
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
include ../../make-rules/configure.mk
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
include ../../make-rules/ips.mk
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
COMPONENT_PRE_CONFIGURE_ACTION = \
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
        ($(CLONEY) $(SOURCE_DIR) $(@D))
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
COMPILER = gcc
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
PATCH_LEVEL = 1
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
COMPONENT_POST_BUILD_ACTION = \
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
	(cd $(@D)/src; $(MAKE) install-sunos-backend)
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
build: $(BUILD_32_and_64)
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
install: $(INSTALL_32_and_64)
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
test: $(TEST_32_and_64)
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
include ../../make-rules/depend.mk
5df42c8502d2 7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59