components/memcached-java/Makefile
author John Beck <John.Beck@Oracle.COM>
Fri, 13 Jun 2014 12:36:52 -0700
changeset 1948 2d1537e7942d
parent 1434 c782e620dd26
child 3817 30b42c38bbc4
permissions -rw-r--r--
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
382
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     1
#
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     3
#
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     7
#
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    12
#
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    18
#
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    20
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    21
#
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    22
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
382
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    23
#
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    24
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    25
include ../../make-rules/shared-macros.mk
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    26
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    27
COMPONENT_NAME=		memcached-java
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    28
COMPONENT_VERSION=	2.0.1
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    29
COMPONENT_RELEASE=	release_$(COMPONENT_VERSION)
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    30
COMPONENT_SRC=		java_memcached-$(COMPONENT_RELEASE)
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    31
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: 382
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 382
diff changeset
    33
    sha256:f0978f387cd6c42191a3ec366ecc5519f66ee03e686c5d080eb2516ebbecdcc4
382
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	http://img.whalin.com/memcached/jdk5/standard/$(COMPONENT_ARCHIVE)
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    35
COMPONENT_PROJECT_URL=  http://whalin.com/memcached/
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    36
COMPONENT_BUGDB=	database/memcached
382
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    37
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    38
TPNO=			5586
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    39
382
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    40
include $(WS_TOP)/make-rules/prep.mk
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    41
include $(WS_TOP)/make-rules/ant.mk
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    42
include $(WS_TOP)/make-rules/ips.mk
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    43
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    44
# Make sure we remove unneeded pieces from the source (the test dir)
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    45
# and also the existing source files which will be generated anew 
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    46
# by the build (java_memcached-release_2.0.1.jar and the javadocs dir).
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    47
# Remove these items during the prep phase, before cloney creates symlinks 
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    48
# for these SOURCE_DIR files in $(BUILD_DIR_32), at the beginning of the 
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    49
# build phase.
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    50
COMPONENT_PREP_ACTION += \
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    51
	$(RM) -r $(SOURCE_DIR)/$(COMPONENT_SRC).* \
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    52
	$(SOURCE_DIR)/src/com/danga/MemCached/test \
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    53
	$(SOURCE_DIR)/javadocs ;
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    54
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    55
COMPONENT_PRE_BUILD_ACTION += \
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    56
	$(CP) Solaris/build.xml $(BUILD_DIR_$(BITS))
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    57
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    58
COMPONENT_BUILD_ARGS = -Dver=$(COMPONENT_RELEASE)
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    59
COMPONENT_BUILD_TARGETS = package
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    60
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    61
# A new $(COMPONENT_ARCHIVE) file was generated by the
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    62
# build.  Unpack it here in the build directory.
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    63
# We will use the extracted javadocs files for the package.
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    64
COMPONENT_POST_BUILD_ACTION += \
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    65
	(cd $(BUILD_DIR_$(BITS)); \
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    66
	$(UNPACK) $(UNPACK_ARGS) $(COMPONENT_ARCHIVE); \
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    67
	$(CP) -r $(COMPONENT_SRC)/javadocs . )
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    68
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    69
# Nothing is installed into the proto area.
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    70
# All files in the package will come from the build directory.
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    71
PKG_PROTO_DIRS +=	$(BUILD_DIR_$(BITS))
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    72
1434
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    73
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    74
382
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    75
# common targets
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    76
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    77
build:		$(BUILD_32)
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    78
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    79
# Nothing needed for install; all files are generated
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    80
# during the build.
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    81
install:	build
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    82
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    83
test:		$(NO_TESTS)
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    84
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    85
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    86
5d2ca734dd20 7058584 Move memcached-java from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    87
include $(WS_TOP)/make-rules/depend.mk