vim: update to 9.1.0984
[oi-userland.git] / components / library / trousers / Makefile
blob38b94b5a6880837a8192ecf4729e805becb08c62
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
21 # Copyright (c) 2012-2013, Igor Kozhukhov <ikozhukhov@gmail.com>. All rights reserved.
22 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
25 BUILD_BITS= 32_and_64
27 USE_OPENSSL11= yes
28 include ../../../make-rules/shared-macros.mk
30 COMPONENT_NAME= trousers
31 COMPONENT_VERSION= 0.3.11.2
32 COMPONENT_REVISION= 5
33 COMPONENT_SUMMARY= TrouSerS TCG software to access a TPM device
34 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
35 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
36 COMPONENT_PROJECT_URL= https://sourceforge.net/projects/trousers/
37 COMPONENT_ARCHIVE_HASH= \
38 sha256:8a96f924836187e406161f797b709ea52ade6c89ceffe489f7254b51088938d5
39 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/trousers/0.3.11/$(COMPONENT_ARCHIVE)
40 COMPONENT_FMRI= library/security/trousers
41 COMPONENT_CLASSIFICATION= System/Security
42 COMPONENT_LICENSE= BSD-3-Clause
43 COMPONENT_LICENSE_FILE= LICENSE
45 DROP_STATIC_LIBRARIES = yes
47 TEST_TARGET= $(NO_TESTS)
49 include $(WS_MAKE_RULES)/common.mk
51 LIBS = -lnsl -lsocket -lgen -lscf -lbsm -lresolv
52 CFLAGS += -DSOLARIS -DBI_OPENSSL -D_REENTRANT
54 LDFLAGS += $(CC_BITS)
56 # Find issues with undefined symbols in build time
57 LD_OPTIONS += $(LD_Z_DEFS)
59 # deliver tcsd in /usr/lib*
60 CONFIGURE_SBINDIR.32 = $(CONFIGURE_LIBDIR.32)
61 CONFIGURE_SBINDIR.64 = $(CONFIGURE_LIBDIR.64)
63 COMPONENT_PREP_ACTION= ( cd $(@D); PATH="$(PATH)" autoreconf -vif )
65 CONFIGURE_OPTIONS += --with-gui=openssl
66 CONFIGURE_OPTIONS += LD="$(CC)"
67 CONFIGURE_OPTIONS += LIBS="$(LIBS)"
69 COMPONENT_POST_CONFIGURE_ACTION = (cd $(COMPONENT_SRC); \
70 for f in `ls src/include/tss/*.h` ; do \
71 /usr/bin/dos2unix $$f $$f; \
72 done; \
73 for f in `ls src/include/trousers/*.h` ; do \
74 /usr/bin/dos2unix $$f $$f; \
75 done; \
76 for f in `ls src/include/*.h` ; do \
77 /usr/bin/dos2unix $$f $$f; \
78 done;)
80 # Auto-generated dependencies
81 REQUIRED_PACKAGES += SUNWcs
82 REQUIRED_PACKAGES += library/security/openssl
83 REQUIRED_PACKAGES += shell/ksh93
84 REQUIRED_PACKAGES += system/library
85 REQUIRED_PACKAGES += system/library/iconv/utf-8