Till Wegmüller
2024-04-05 3f9136b3de67269afdd692eece3dc40814e6cbda
SDL2_image: add new library for emulators

Signed-off-by: Till Wegmueller <toasterson@gmail.com>
4 files added
116 ■■■■■ changed files
components/library/SDL2_image/Makefile 39 ●●●●● patch | view | raw | blame | history
components/library/SDL2_image/SDL2_image.p5m 33 ●●●●● patch | view | raw | blame | history
components/library/SDL2_image/manifests/sample-manifest.p5m 34 ●●●●● patch | view | raw | blame | history
components/library/SDL2_image/pkg5 10 ●●●●● patch | view | raw | blame | history
components/library/SDL2_image/Makefile
New file
@@ -0,0 +1,39 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL)". You may
# only use this file in accordance with the terms of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright (c) 2024 Till Wegmueller
#
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME=        SDL2_image
COMPONENT_VERSION=    2.8.2
COMPONENT_SUMMARY=    Simple DirectMedia Layer - Sample Image Loading Library
COMPONENT_PROJECT_URL=    https://libsdl.org/
COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_HASH= sha256:8f486bbfbcf8464dd58c9e5d93394ab0255ce68b51c5a966a918244820a76ddc
COMPONENT_ARCHIVE_URL=  https://github.com/libsdl-org/SDL_image/releases/download/release-$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
COMPONENT_FMRI=    image/library/sdl2-image
COMPONENT_CLASSIFICATION=    System/Multimedia Libraries
COMPONENT_LICENSE=    zlib
COMPONENT_LICENSE_FILE=    LICENSE.txt
TEST_TARGET= $(NO_TESTS)
include $(WS_MAKE_RULES)/common.mk
PATH= $(PATH.gnu)
CONFIGURE_OPTIONS += --disable-png-shared
# Auto-generated dependencies
REQUIRED_PACKAGES += library/sdl2
REQUIRED_PACKAGES += system/library
components/library/SDL2_image/SDL2_image.p5m
New file
@@ -0,0 +1,33 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2024 Till Wegmueller
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
file path=usr/include/SDL2/SDL_image.h
file path=usr/lib/$(MACH64)/cmake/SDL2_image/sdl2_image-config-version.cmake
file path=usr/lib/$(MACH64)/cmake/SDL2_image/sdl2_image-config.cmake
link path=usr/lib/$(MACH64)/libSDL2_image-2.0.so.0 \
    target=libSDL2_image-2.0.so.0.800.2
file path=usr/lib/$(MACH64)/libSDL2_image-2.0.so.0.800.2
link path=usr/lib/$(MACH64)/libSDL2_image.so target=libSDL2_image-2.0.so.0.800.2
file path=usr/lib/$(MACH64)/pkgconfig/SDL2_image.pc
components/library/SDL2_image/manifests/sample-manifest.p5m
New file
@@ -0,0 +1,34 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2024 <contributor>
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
file path=usr/include/SDL2/SDL_image.h
file path=usr/lib/$(MACH64)/cmake/SDL2_image/sdl2_image-config-version.cmake
file path=usr/lib/$(MACH64)/cmake/SDL2_image/sdl2_image-config.cmake
link path=usr/lib/$(MACH64)/libSDL2_image-2.0.so.0 \
    target=libSDL2_image-2.0.so.0.800.2
file path=usr/lib/$(MACH64)/libSDL2_image-2.0.so.0.800.2
file path=usr/lib/$(MACH64)/libSDL2_image.a
link path=usr/lib/$(MACH64)/libSDL2_image.so target=libSDL2_image-2.0.so.0.800.2
file path=usr/lib/$(MACH64)/pkgconfig/SDL2_image.pc
components/library/SDL2_image/pkg5
New file
@@ -0,0 +1,10 @@
{
    "dependencies": [
        "library/sdl2",
        "system/library"
    ],
    "fmris": [
        "image/library/sdl2-image"
    ],
    "name": "SDL2_image"
}