382N/A#
382N/A# CDDL HEADER START
382N/A#
382N/A# The contents of this file are subject to the terms of the
382N/A# Common Development and Distribution License (the "License").
382N/A# You may not use this file except in compliance with the License.
382N/A#
382N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
382N/A# or http://www.opensolaris.org/os/licensing.
382N/A# See the License for the specific language governing permissions
382N/A# and limitations under the License.
382N/A#
382N/A# When distributing Covered Code, include this CDDL HEADER in each
382N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
382N/A# If applicable, add the following below this CDDL HEADER, with the
382N/A# fields enclosed by brackets "[]" replaced with your own identifying
382N/A# information: Portions Copyright [yyyy] [name of copyright owner]
382N/A#
382N/A# CDDL HEADER END
382N/A
382N/A#
3996N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
382N/A#
382N/A
382N/Ainclude ../../make-rules/shared-macros.mk
382N/A
382N/ACOMPONENT_NAME= memcached-java
382N/ACOMPONENT_VERSION= 2.0.1
382N/ACOMPONENT_RELEASE= release_$(COMPONENT_VERSION)
382N/ACOMPONENT_SRC= java_memcached-$(COMPONENT_RELEASE)
382N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:f0978f387cd6c42191a3ec366ecc5519f66ee03e686c5d080eb2516ebbecdcc4
382N/ACOMPONENT_ARCHIVE_URL= http://img.whalin.com/memcached/jdk5/standard/$(COMPONENT_ARCHIVE)
382N/ACOMPONENT_PROJECT_URL= http://whalin.com/memcached/
1273N/ACOMPONENT_BUGDB= database/memcached
382N/A
3661N/ATPNO= 5586
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/ant.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
382N/A
382N/A# Make sure we remove unneeded pieces from the source (the test dir)
382N/A# and also the existing source files which will be generated anew
382N/A# by the build (java_memcached-release_2.0.1.jar and the javadocs dir).
382N/A# Remove these items during the prep phase, before cloney creates symlinks
382N/A# for these SOURCE_DIR files in $(BUILD_DIR_32), at the beginning of the
382N/A# build phase.
382N/ACOMPONENT_PREP_ACTION += \
382N/A $(RM) -r $(SOURCE_DIR)/$(COMPONENT_SRC).* \
382N/A $(SOURCE_DIR)/src/com/danga/MemCached/test \
382N/A $(SOURCE_DIR)/javadocs ;
382N/A
382N/ACOMPONENT_PRE_BUILD_ACTION += \
382N/A $(CP) Solaris/build.xml $(BUILD_DIR_$(BITS))
382N/A
382N/ACOMPONENT_BUILD_ARGS = -Dver=$(COMPONENT_RELEASE)
382N/ACOMPONENT_BUILD_TARGETS = package
382N/A
382N/A# A new $(COMPONENT_ARCHIVE) file was generated by the
382N/A# build. Unpack it here in the build directory.
382N/A# We will use the extracted javadocs files for the package.
382N/ACOMPONENT_POST_BUILD_ACTION += \
382N/A (cd $(BUILD_DIR_$(BITS)); \
382N/A $(UNPACK) $(UNPACK_ARGS) $(COMPONENT_ARCHIVE); \
382N/A $(CP) -r $(COMPONENT_SRC)/javadocs . )
382N/A
382N/A# Nothing is installed into the proto area.
382N/A# All files in the package will come from the build directory.
382N/APKG_PROTO_DIRS += $(BUILD_DIR_$(BITS))
382N/A
382N/A# common targets
382N/A
382N/Abuild: $(BUILD_32)
382N/A
382N/A# Nothing needed for install; all files are generated
382N/A# during the build.
382N/Ainstall: build
382N/A
382N/Atest: $(NO_TESTS)
382N/A
382N/A
4005N/AREQUIRED_PACKAGES += runtime/java/jre-8