259N/A#
259N/A# CDDL HEADER START
259N/A#
259N/A# The contents of this file are subject to the terms of the
259N/A# Common Development and Distribution License (the "License").
259N/A# You may not use this file except in compliance with the License.
259N/A#
259N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
259N/A# or http://www.opensolaris.org/os/licensing.
259N/A# See the License for the specific language governing permissions
259N/A# and limitations under the License.
259N/A#
259N/A# When distributing Covered Code, include this CDDL HEADER in each
259N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
259N/A# If applicable, add the following below this CDDL HEADER, with the
259N/A# fields enclosed by brackets "[]" replaced with your own identifying
259N/A# information: Portions Copyright [yyyy] [name of copyright owner]
259N/A#
259N/A# CDDL HEADER END
259N/A#
3996N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
259N/A#
259N/A
259N/Ainclude ../../make-rules/shared-macros.mk
259N/A
259N/ACOMPONENT_NAME= trousers
259N/ACOMPONENT_VERSION= 0.3.6
259N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
259N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
618N/ACOMPONENT_PROJECT_URL= http://sourceforge.net/projects/trousers/files/trousers/
817N/ACOMPONENT_ARCHIVE_HASH= \
817N/A sha256:91025f60248af44df192e8df16fa6b0c0f1e48c54f6dc51626567ed95758b0d6
618N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= utility/tss
259N/A
3661N/ATPNO= 8341
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
3996N/Ainclude $(WS_MAKE_RULES)/lint-libraries.mk
259N/A
259N/APATCH_LEVEL=0
259N/A
259N/ALIBS=-lnsl -lsocket -lgen
259N/A
259N/ACONFIGURE_OPTIONS += --with-gui=openssl
259N/ACONFIGURE_OPTIONS += CC="$(CC)"
259N/ACONFIGURE_OPTIONS += LD="$(CC)"
259N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
259N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
259N/ACONFIGURE_OPTIONS += LIBS="$(LIBS)"
259N/A
259N/ACOMPONENT_POST_CONFIGURE_ACTION = (cd $(COMPONENT_SRC); \
259N/A for f in `ls src/include/tss/*.h` ; do \
259N/A /usr/bin/dos2unix $$f $$f; \
259N/A done; \
259N/A for f in `ls src/include/trousers/*.h` ; do \
259N/A /usr/bin/dos2unix $$f $$f; \
259N/A done; \
259N/A for f in `ls src/include/*.h` ; do \
259N/A /usr/bin/dos2unix $$f $$f; \
259N/A done; \
259N/A /usr/bin/libtoolize -f; \
259N/A $(ACLOCAL); \
259N/A $(AUTOMAKE) src/tspi/Makefile; \
259N/A $(AUTOCONF))
259N/A
259N/A#
259N/A# We had to use cc as the linker (see CONFIGURE_OPTIONS above) so the
259N/A# .init and .fini sections get set correctly. Because we use cc, we
259N/A# must pass the -m64 flag through cc to the linker when building 64 bit
259N/A# libraries. We can't just add it to LDFLAGS because then it gets used
259N/A# when creating executables and static libs and generates lots of noise
259N/A# in the build logs. LDARCHFLAG is only recognized by the Makefile in
259N/A# the src/tspi directory.
259N/A#
259N/ACOMPONENT_BUILD_ENV.64 += LDARCHFLAG="-Wl,$(CC_BITS)"
259N/A
259N/ACOMPONENT_TEST_TARGETS =
259N/A
259N/ACOMPONENT_BUILD_TARGETS = all
259N/A
259N/A# common targets
259N/Abuild: $(BUILD_32_and_64)
259N/A
259N/Ainstall: $(INSTALL_32_and_64)
259N/A
259N/Atest: $(NO_TESTS)
259N/A
259N/A
3996N/AREQUIRED_PACKAGES += library/security/openssl
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/core-os
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/network