openexr: make architecture independent
[oi-userland.git] / components / library / SDL_image / Makefile
blobf0ecec4396018b9792a5b6b3589847d1aae07e62
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 (c) 2015 Alexander Pyhalov
15 include ../../../make-rules/shared-macros.mk
17 COMPONENT_NAME= SDL_image
18 COMPONENT_VERSION= 1.2.12
19 COMPONENT_PROJECT_URL= http://www.libsdl.org/projects/SDL_image/
20 COMPONENT_SUMMARY= Simple DirectMedia Layer - Sample Image Loading Library
21 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
22 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
23 COMPONENT_ARCHIVE_HASH= \
24 sha256:0b90722984561004de84847744d566809dbb9daf732a9e503b91a1b5a84e5699
25 COMPONENT_ARCHIVE_URL= http://www.libsdl.org/projects/SDL_image/release/$(COMPONENT_ARCHIVE)
26 COMPONENT_FMRI= image/library/sdl-image
27 COMPONENT_LICENSE = zlib
28 COMPONENT_LICENSE_FILE = COPYING
29 COMPONENT_CLASSIFICATION = System/Multimedia Libraries
31 include $(WS_MAKE_RULES)/prep.mk
32 include $(WS_MAKE_RULES)/configure.mk
33 include $(WS_MAKE_RULES)/ips.mk
35 PATH=$(PATH.gnu)
37 CONFIGURE_OPTIONS += --sysconfdir=/etc
38 CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
39 CONFIGURE_OPTIONS += --disable-png-shared
41 # common targets
42 build: $(BUILD_32_and_64)
44 install: $(INSTALL_32_and_64)
46 test: $(NO_TESTS)
48 # Auto-generated dependencies
49 REQUIRED_PACKAGES += image/library/libpng16
50 REQUIRED_PACKAGES += library/sdl
51 REQUIRED_PACKAGES += system/library