author | Rich Burridge <rich.burridge@oracle.com> |
Thu, 07 Jul 2011 14:07:49 -0700 | |
changeset 377 | 5df42c8502d2 |
child 800 | 2ad056ed89ec |
permissions | -rw-r--r-- |
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 |
# |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
21 |
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
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 |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_ARCHIVE_HASH= sha1:c8a6b493f31a349f19c27a45565425f58897d443 |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
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
|
32 |
|
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
include ../../make-rules/prep.mk |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
include ../../make-rules/configure.mk |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
35 |
include ../../make-rules/ips.mk |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
36 |
|
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
37 |
CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
38 |
|
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
39 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
40 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
41 |
|
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
42 |
COMPILER = gcc |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
43 |
|
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
44 |
PATCH_LEVEL = 1 |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
45 |
|
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
46 |
COMPONENT_POST_BUILD_ACTION = \ |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
47 |
(cd $(@D)/src; $(MAKE) install-sunos-backend) |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
48 |
|
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
49 |
build: $(BUILD_32_and_64) |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
50 |
|
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
51 |
install: $(INSTALL_32_and_64) |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
52 |
|
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
53 |
test: $(TEST_32_and_64) |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
54 |
|
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
55 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
56 |
|
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
57 |
include ../../make-rules/depend.mk |
5df42c8502d2
7060741 Move libopenusb to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
58 |