openexr: make architecture independent
[oi-userland.git] / components / library / indri / Makefile
blob8bf409cfb3e2650818b85ec19e66e687fd95c120
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
23 # Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
26 include ../../../make-rules/shared-macros.mk
28 COMPONENT_NAME = indri
29 COMPONENT_VERSION = 5.11
30 COMPONENT_FMRI = library/indri
31 COMPONENT_SUMMARY = indri - Text search engine
32 COMPONENT_CLASSIFICATION= System/Libraries
33 COMPONENT_PROJECT_URL = http://lemurproject.org/indri.php
34 COMPONENT_SRC = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
35 COMPONENT_ARCHIVE = $(COMPONENT_SRC).tar.gz
36 COMPONENT_ARCHIVE_HASH = \
37 sha256:ee975cc4dc83738009fa42889bc1a921706562bed4afbea3b10e8a7a0ed13d1c
38 COMPONENT_ARCHIVE_URL = \
39 http://sourceforge.net/projects/lemur/files/lemur/$(COMPONENT_SRC)/$(COMPONENT_SRC).tar.gz/download
40 COMPONENT_LICENSE = Indri license
42 include $(WS_MAKE_RULES)/prep.mk
43 include $(WS_MAKE_RULES)/configure.mk
44 include $(WS_MAKE_RULES)/ips.mk
46 COMPONENT_PRE_CONFIGURE_ACTION = $(CLONEY) $(SOURCE_DIR) $(@D)
47 COMPONENT_INSTALL_ARGS = "includedir=$(PROTOUSRINCDIR)"
48 COMPONENT_INSTALL_ARGS += "datarootdir=$(PROTOUSRSHAREDIR)"
50 $(BUILD_DIR_32)/.installed: COMPONENT_INSTALL_ARGS += "bindir=$(PROTOUSRBINDIR)"
51 $(BUILD_DIR_32)/.installed: COMPONENT_INSTALL_ARGS += "libdir=$(PROTOUSRLIBDIR)"
52 $(BUILD_DIR_64)/.installed: COMPONENT_INSTALL_ARGS += "bindir=$(PROTOUSRBINDIR64)"
53 $(BUILD_DIR_64)/.installed: COMPONENT_INSTALL_ARGS += "libdir=$(PROTOUSRLIBDIR64)"
54 # Because of 18041236
55 $(BUILD_DIR_64)/.built: LD_B_DIRECT =
57 COMPONENT_POST_BUILD_ACTION = \
58 (cd $(@D) ; $(ENV) $(COMPONENT_BUILD_ENV) \
59 $(GMAKE) -f Makefile.app)
61 GPATCH_FLAGS += -E # remove empty files
63 # common targets
64 build: $(BUILD_32_and_64)
66 install: $(INSTALL_32_and_64)
68 test: $(NO_TESTS)
70 # Auto-generated dependencies
71 REQUIRED_PACKAGES += library/zlib
72 REQUIRED_PACKAGES += system/library
73 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
74 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
75 REQUIRED_PACKAGES += system/library/math