openexr: make architecture independent
[oi-userland.git] / components / library / libdnet / Makefile
blobd743566f3bcbef7dd24ffbca119c60a441177c53
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, Oracle and/or its affiliates. All rights reserved.
23 BUILD_BITS= 32_and_64
24 include ../../../make-rules/shared-macros.mk
26 COMPONENT_NAME= libdnet
27 COMPONENT_VERSION= 1.14
28 COMPONENT_PROJECT_URL= https://code.google.com/p/libdnet/
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_NAME)-$(COMPONENT_VERSION)
30 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
31 COMPONENT_ARCHIVE_HASH= sha256:592599c54a57102a177270f3a2caabda2c2ac7768b977d7458feba97da923dfe
32 COMPONENT_ARCHIVE_URL= https://github.com/dugsong/libdnet/archive/$(COMPONENT_ARCHIVE)
34 include $(WS_MAKE_RULES)/common.mk
36 # Needed to generate libraries with a .so extension.
37 COMPONENT_PREP_ACTION = \
38 (cd $(@D) ; libtoolize --automake --copy ; \
39 aclocal -I config ; \
40 autoheader ; \
41 automake --add-missing --copy ; \
42 autoconf)
44 # Set -m32 or -m64 correctly for 32 and 64 bit versions.
45 CC += $(CC_BITS)
47 # Remove Linux specific functionality.
48 CONFIGURE_OPTIONS += ac_cv_dnet_linux_pf_packet=no
50 # Uncomment if you have the Check unit testing framework installed.
51 #CONFIGURE_OPTIONS += --with-check=/usr
53 ASLR_MODE = $(ASLR_ENABLE)
55 # Tests for libdnet are not enabled by default as they use the Check unit
56 # testing framework which is currently not present on Solaris. See:
57 # http://check.sourceforge.net/ for more details.
58 # If you do have Check on your system, then uncomment the TEST_32 line.
60 # Auto-generated dependencies
61 REQUIRED_PACKAGES += shell/ksh93
62 REQUIRED_PACKAGES += system/library