|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 |
|
21 # |
|
22 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
|
23 # |
|
24 |
|
25 include ../../make-rules/shared-macros.mk |
|
26 |
|
27 COMPONENT_NAME= memcached-java |
|
28 COMPONENT_VERSION= 2.0.1 |
|
29 COMPONENT_RELEASE= release_$(COMPONENT_VERSION) |
|
30 COMPONENT_SRC= java_memcached-$(COMPONENT_RELEASE) |
|
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
32 COMPONENT_ARCHIVE_HASH= sha1:e1abde88ac21d337c42e4fc8d9bc217eab96f881 |
|
33 COMPONENT_ARCHIVE_URL= http://img.whalin.com/memcached/jdk5/standard/$(COMPONENT_ARCHIVE) |
|
34 COMPONENT_PROJECT_URL= http://whalin.com/memcached/ |
|
35 |
|
36 include $(WS_TOP)/make-rules/prep.mk |
|
37 include $(WS_TOP)/make-rules/ant.mk |
|
38 include $(WS_TOP)/make-rules/ips.mk |
|
39 |
|
40 # Make sure we remove unneeded pieces from the source (the test dir) |
|
41 # and also the existing source files which will be generated anew |
|
42 # by the build (java_memcached-release_2.0.1.jar and the javadocs dir). |
|
43 # Remove these items during the prep phase, before cloney creates symlinks |
|
44 # for these SOURCE_DIR files in $(BUILD_DIR_32), at the beginning of the |
|
45 # build phase. |
|
46 COMPONENT_PREP_ACTION += \ |
|
47 $(RM) -r $(SOURCE_DIR)/$(COMPONENT_SRC).* \ |
|
48 $(SOURCE_DIR)/src/com/danga/MemCached/test \ |
|
49 $(SOURCE_DIR)/javadocs ; |
|
50 |
|
51 COMPONENT_PRE_BUILD_ACTION += \ |
|
52 $(CP) Solaris/build.xml $(BUILD_DIR_$(BITS)) |
|
53 |
|
54 COMPONENT_BUILD_ARGS = -Dver=$(COMPONENT_RELEASE) |
|
55 COMPONENT_BUILD_TARGETS = package |
|
56 |
|
57 # A new $(COMPONENT_ARCHIVE) file was generated by the |
|
58 # build. Unpack it here in the build directory. |
|
59 # We will use the extracted javadocs files for the package. |
|
60 COMPONENT_POST_BUILD_ACTION += \ |
|
61 (cd $(BUILD_DIR_$(BITS)); \ |
|
62 $(UNPACK) $(UNPACK_ARGS) $(COMPONENT_ARCHIVE); \ |
|
63 $(CP) -r $(COMPONENT_SRC)/javadocs . ) |
|
64 |
|
65 # Nothing is installed into the proto area. |
|
66 # All files in the package will come from the build directory. |
|
67 PKG_PROTO_DIRS += $(BUILD_DIR_$(BITS)) |
|
68 |
|
69 # common targets |
|
70 |
|
71 build: $(BUILD_32) |
|
72 |
|
73 # Nothing needed for install; all files are generated |
|
74 # during the build. |
|
75 install: build |
|
76 |
|
77 test: $(NO_TESTS) |
|
78 |
|
79 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
80 |
|
81 include $(WS_TOP)/make-rules/depend.mk |