components/indri/Makefile
author James Chang <james.c.chang@Oracle.COM>
Wed, 28 Jan 2015 13:37:34 -0800
changeset 3699 cfab3c6e04f1
parent 2225 f064d3d3190d
child 3817 30b42c38bbc4
permissions -rw-r--r--
20423109 Various Userland components have incorrect BugDB entries in their Makefiles

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright (c) 2014, 2015 Oracle and/or its affiliates. All rights reserved.
#

include ../../make-rules/shared-macros.mk

COMPONENT_NAME		= indri
COMPONENT_VERSION	= 5.4
COMPONENT_PROJECT_URL	= http://lemurproject.org/indri.php
COMPONENT_SRC		= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE 	= $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_HASH	= \
	sha256:b1d27f6da4cb15776cee0121c9511ed0e998d47564d785a2bb41a44c654e3e3f
COMPONENT_ARCHIVE_URL	= http://sourceforge.net/projects/lemur/files/lemur/$(COMPONENT_SRC)/$(COMPONENT_SRC).tar.gz/download
COMPONENT_BUGDB		= library/libindri

TPNO=			13668

include ../../make-rules/prep.mk
include ../../make-rules/configure.mk
include ../../make-rules/ips.mk

COMPONENT_PRE_CONFIGURE_ACTION	 = $(CLONEY) $(SOURCE_DIR) $(@D)
COMPILER			 = gcc
CONFIGURE_OPTIONS		+= "CFLAGS=$(CFLAGS)"
CONFIGURE_OPTIONS		+= "CXXFLAGS=$(CXXFLAGS)"
CONFIGURE_OPTIONS		+= "LDFLAGS=$(LDFLAGS)"
COMPONENT_INSTALL_ARGS		 = "includedir=$(PROTOUSRINCDIR)"
COMPONENT_INSTALL_ARGS		+= "datarootdir=$(PROTOUSRSHAREDIR)"

$(BUILD_DIR_32)/.installed: COMPONENT_INSTALL_ARGS += "bindir=$(PROTOUSRBINDIR)"
$(BUILD_DIR_32)/.installed: COMPONENT_INSTALL_ARGS += "libdir=$(PROTOUSRLIBDIR)"
$(BUILD_DIR_64)/.installed: COMPONENT_INSTALL_ARGS += "bindir=$(PROTOUSRBINDIR64)"
$(BUILD_DIR_64)/.installed: COMPONENT_INSTALL_ARGS += "libdir=$(PROTOUSRLIBDIR64)"
# Because of 18041236
$(BUILD_DIR_64)/.built:     LD_B_DIRECT =

COMPONENT_POST_BUILD_ACTION = \
	(cd $(@D) ; $(ENV) $(COMPONENT_BUILD_ENV) \
		$(GMAKE) -f Makefile.app)

GPATCH_FLAGS += -E # remove empty files

ASLR_MODE = $(ASLR_ENABLE)

# common targets
configure:	$(CONFIGURE_32_and_64)

build:          $(BUILD_32_and_64)

install:        $(INSTALL_32_and_64)

test:           $(NO_TESTS)

BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)

include ../../make-rules/depend.mk