Remove dependencies on Java 7 from metapackages
[unleashed-userland.git] / components / trousers / Makefile
blob4a5fd92458d145175686eb7256b44d9cc6bd1b52
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 include ../../make-rules/shared-macros.mk
27 COMPONENT_NAME= trousers
28 COMPONENT_VERSION= 0.3.11.2
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
31 COMPONENT_PROJECT_URL= http://sourceforge.net/projects/trousers/files/trousers/
32 COMPONENT_ARCHIVE_HASH= \
33 sha256:8a96f924836187e406161f797b709ea52ade6c89ceffe489f7254b51088938d5
34 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)0.3.11/$(COMPONENT_ARCHIVE)
36 include ../../make-rules/prep.mk
37 include ../../make-rules/configure.mk
38 include ../../make-rules/ips.mk
39 include ../../make-rules/lint-libraries.mk
41 LIBS = -lnsl -lsocket -lgen
42 CFLAGS += -DSOLARIS -DBI_OPENSSL -D_REENTRANT
44 LDFLAGS += $(CC_BITS)
46 CONFIGURE_OPTIONS += --with-gui=openssl
47 CONFIGURE_OPTIONS += LD="$(CC)"
48 CONFIGURE_OPTIONS += LIBS="$(LIBS)"
50 COMPONENT_POST_CONFIGURE_ACTION = (cd $(COMPONENT_SRC); \
51 for f in `ls src/include/tss/*.h` ; do \
52 /usr/bin/dos2unix $$f $$f; \
53 done; \
54 for f in `ls src/include/trousers/*.h` ; do \
55 /usr/bin/dos2unix $$f $$f; \
56 done; \
57 for f in `ls src/include/*.h` ; do \
58 /usr/bin/dos2unix $$f $$f; \
59 done; \
60 /usr/bin/libtoolize -f; \
61 $(ACLOCAL); \
62 $(AUTOMAKE) src/tspi/Makefile; \
63 $(AUTOCONF))
65 COMPONENT_TEST_TARGETS =
67 COMPONENT_BUILD_TARGETS = all
69 # common targets
70 build: $(BUILD_32_and_64)
72 install: $(INSTALL_32_and_64)
74 test: $(NO_TESTS)
76 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
78 include ../../make-rules/depend.mk