Makefile revision 618
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# CDDL HEADER START
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# The contents of this file are subject to the terms of the
269473047d747f7815af570197e4ef7322d3632cEvan Yan# Common Development and Distribution License (the "License").
269473047d747f7815af570197e4ef7322d3632cEvan Yan# You may not use this file except in compliance with the License.
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
269473047d747f7815af570197e4ef7322d3632cEvan Yan# or http://www.opensolaris.org/os/licensing.
269473047d747f7815af570197e4ef7322d3632cEvan Yan# See the License for the specific language governing permissions
269473047d747f7815af570197e4ef7322d3632cEvan Yan# and limitations under the License.
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# When distributing Covered Code, include this CDDL HEADER in each
269473047d747f7815af570197e4ef7322d3632cEvan Yan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
269473047d747f7815af570197e4ef7322d3632cEvan Yan# If applicable, add the following below this CDDL HEADER, with the
269473047d747f7815af570197e4ef7322d3632cEvan Yan# fields enclosed by brackets "[]" replaced with your own identifying
269473047d747f7815af570197e4ef7322d3632cEvan Yan# information: Portions Copyright [yyyy] [name of copyright owner]
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# CDDL HEADER END
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
269473047d747f7815af570197e4ef7322d3632cEvan Yan#
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan Yaninclude ../../make-rules/shared-macros.mk
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan YanCOMPONENT_NAME= aalib
269473047d747f7815af570197e4ef7322d3632cEvan YanCOMPONENT_VERSION= 1.4.0
269473047d747f7815af570197e4ef7322d3632cEvan YanHUMAN_VERSION= 1.4rc5
269473047d747f7815af570197e4ef7322d3632cEvan YanIPS_COMPONENT_VERSION = 1.4.5
269473047d747f7815af570197e4ef7322d3632cEvan YanCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
269473047d747f7815af570197e4ef7322d3632cEvan YanCOMPONENT_PROJECT_URL= http://aa-project.sourceforge.net/aalib/
269473047d747f7815af570197e4ef7322d3632cEvan YanCOMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(HUMAN_VERSION).tar.gz
269473047d747f7815af570197e4ef7322d3632cEvan YanCOMPONENT_ARCHIVE_HASH= sha1:a23269e950a249d2ef93625837cace45ddbce03b
269473047d747f7815af570197e4ef7322d3632cEvan YanCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/aa-project/$(COMPONENT_ARCHIVE)
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan Yaninclude ../../make-rules/prep.mk
269473047d747f7815af570197e4ef7322d3632cEvan Yaninclude ../../make-rules/configure.mk
269473047d747f7815af570197e4ef7322d3632cEvan Yaninclude ../../make-rules/ips.mk
269473047d747f7815af570197e4ef7322d3632cEvan Yaninclude ../../make-rules/lint-libraries.mk
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan YanPKG_PROTO_DIRS += $(COMPONENT_SRC)
269473047d747f7815af570197e4ef7322d3632cEvan Yan
269473047d747f7815af570197e4ef7322d3632cEvan Yan# We need to reset configure options here because aalib is confused with
269473047d747f7815af570197e4ef7322d3632cEvan Yan# CC and CFLAGS definitions as configure parameters.
269473047d747f7815af570197e4ef7322d3632cEvan YanCONFIGURE_OPTIONS = --prefix=/usr
269473047d747f7815af570197e4ef7322d3632cEvan YanCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
269473047d747f7815af570197e4ef7322d3632cEvan YanCONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
269473047d747f7815af570197e4ef7322d3632cEvan YanCONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
269473047d747f7815af570197e4ef7322d3632cEvan YanCONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS))
269473047d747f7815af570197e4ef7322d3632cEvan YanCONFIGURE_OPTIONS += --enable-shared
269473047d747f7815af570197e4ef7322d3632cEvan YanCONFIGURE_OPTIONS += --disable-static
269473047d747f7815af570197e4ef7322d3632cEvan YanCONFIGURE_OPTIONS += --x-includes=/usr/include
269473047d747f7815af570197e4ef7322d3632cEvan YanCONFIGURE_OPTIONS += --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
269473047d747f7815af570197e4ef7322d3632cEvan YanCONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(BITS))
269473047d747f7815af570197e4ef7322d3632cEvan Yan
CONFIGURE_ENV += CC="$(CC)"
CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
# common targets
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
# actually there is a test we put in the demos,
# but it's 32-bit only and not a target
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk