vim: update to 9.1.0984
[oi-userland.git] / components / library / libffi / Makefile
blob57edb3fb048d3153bd8d1fa90301e96a0850b7ff
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2011-2013, EveryCity Ltd. All rights reserved.
15 include ../../../make-rules/shared-macros.mk
17 COMPONENT_NAME= libffi
18 COMPONENT_VERSION= 3.2.1
19 COMPONENT_PROJECT_URL= http://sourceware.org/libffi/
20 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
21 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
22 COMPONENT_ARCHIVE_HASH= \
23 sha256:d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37
24 COMPONENT_ARCHIVE_URL= ftp://sourceware.org/pub/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
26 include $(WS_MAKE_RULES)/prep.mk
27 include $(WS_MAKE_RULES)/configure.mk
28 include $(WS_MAKE_RULES)/ips.mk
30 CFLAGS += -DFFI_MMAP_EXEC_WRIT=1
32 CONFIGURE_OPTIONS += --disable-static
33 CONFIGURE_OPTIONS += --enable-shared
34 CONFIGURE_OPTIONS += --disable-raw-api
36 build: $(BUILD_32_and_64)
38 install: $(INSTALL_32_and_64)
40 test: $(NO_TEST)
42 # Auto-generated dependencies
43 REQUIRED_PACKAGES += system/library