GCC: use -fuse-cxa-atexit by default
[unleashed-userland.git] / components / gocr / Makefile
blob9a69bc23ea6ae6aadb17ad457372d4b7823b71b4
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) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
26 include ../../make-rules/shared-macros.mk
28 COMPONENT_NAME= gocr
29 COMPONENT_VERSION= 0.50
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
31 COMPONENT_PROJECT_URL= http://jocr.sourceforge.net/
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
33 COMPONENT_ARCHIVE_HASH= \
34 sha256:bc261244f887419cba6d962ec1ad58eefd77176885093c4a43061e7fd565f5b5
35 COMPONENT_ARCHIVE_URL= http://www-e.uni-magdeburg.de/jschulen/ocr/$(COMPONENT_ARCHIVE)
36 COMPONENT_BUGDB= utility/gocr
38 include ../../make-rules/prep.mk
39 include ../../make-rules/configure.mk
40 include ../../make-rules/ips.mk
42 PKG_PROTO_DIRS += $(COMPONENT_SRC)
44 COMPONENT_PRE_CONFIGURE_ACTION = \
45 ($(CLONEY) $(SOURCE_DIR) $(@D))
47 # Needed to successfully link the 64-bit version.
48 CC += $(CC_BITS)
50 ASLR_MODE = $(ASLR_ENABLE)
52 # common targets
53 build: $(BUILD_32_and_64)
55 install: $(INSTALL_32_and_64)
57 test: $(NO_TESTS)
59 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
61 include ../../make-rules/depend.mk