committed by
Norman Feske
parent
b3b2a5f59b
commit
8fd9c2c536
2
lib/import/import-libspng.mk
Normal file
2
lib/import/import-libspng.mk
Normal file
@@ -0,0 +1,2 @@
|
||||
LIBSPNG_PORT_DIR := $(call select_from_ports,libspng)
|
||||
INC_DIR += $(LIBSPNG_PORT_DIR)/include/spng
|
||||
13
lib/mk/libspng.mk
Normal file
13
lib/mk/libspng.mk
Normal file
@@ -0,0 +1,13 @@
|
||||
include $(REP_DIR)/lib/import/import-libspng.mk
|
||||
|
||||
LIBSPNG_SRC_DIR := $(LIBSPNG_PORT_DIR)/src/lib/libspng/src
|
||||
|
||||
SRC_C := common.c decode.c
|
||||
|
||||
LIBS += libc zlib
|
||||
|
||||
vpath %.c $(LIBSPNG_SRC_DIR)
|
||||
|
||||
SHARED_LIB := yes
|
||||
|
||||
CC_CXX_WARN_STRICT :=
|
||||
46
lib/symbols/libspng
Normal file
46
lib/symbols/libspng
Normal file
@@ -0,0 +1,46 @@
|
||||
spng_ctx_free T
|
||||
spng_ctx_new T
|
||||
spng_ctx_new2 T
|
||||
spng_decode_image T
|
||||
spng_decoded_image_size T
|
||||
spng_get_bkgd T
|
||||
spng_get_chrm T
|
||||
spng_get_chrm_int T
|
||||
spng_get_exif T
|
||||
spng_get_gama T
|
||||
spng_get_hist T
|
||||
spng_get_iccp T
|
||||
spng_get_ihdr T
|
||||
spng_get_image_limits T
|
||||
spng_get_offs T
|
||||
spng_get_phys T
|
||||
spng_get_plte T
|
||||
spng_get_sbit T
|
||||
spng_get_splt T
|
||||
spng_get_srgb T
|
||||
spng_get_text T
|
||||
spng_get_time T
|
||||
spng_get_trns T
|
||||
spng_set_bkgd T
|
||||
spng_set_chrm T
|
||||
spng_set_chrm_int T
|
||||
spng_set_crc_action T
|
||||
spng_set_exif T
|
||||
spng_set_gama T
|
||||
spng_set_hist T
|
||||
spng_set_iccp T
|
||||
spng_set_ihdr T
|
||||
spng_set_image_limits T
|
||||
spng_set_offs T
|
||||
spng_set_phys T
|
||||
spng_set_plte T
|
||||
spng_set_png_buffer T
|
||||
spng_set_png_stream T
|
||||
spng_set_sbit T
|
||||
spng_set_splt T
|
||||
spng_set_srgb T
|
||||
spng_set_text T
|
||||
spng_set_time T
|
||||
spng_set_trns T
|
||||
spng_strerror T
|
||||
spng_version_string T
|
||||
1
ports/libspng.hash
Normal file
1
ports/libspng.hash
Normal file
@@ -0,0 +1 @@
|
||||
3f3663502230adaf8729b8acdb3a8540cc40d098
|
||||
11
ports/libspng.port
Normal file
11
ports/libspng.port
Normal file
@@ -0,0 +1,11 @@
|
||||
LICENSE := BSD-2-Clause
|
||||
VERSION := 0.4.3
|
||||
DOWNLOADS := libspng.archive
|
||||
|
||||
BASE_URL := https://gitlab.com/randy408/libspng/-/archive
|
||||
URL(libspng) := $(BASE_URL)/v$(VERSION)/libspng-v$(VERSION).tar.gz
|
||||
SHA(libspng) := bc0046f7798d30f8aa061b157808b4acdb734f1f81154879f3b98c49136c1516
|
||||
DIR(libspng) := src/lib/libspng
|
||||
|
||||
DIRS := include/libspng
|
||||
DIR_CONTENT(include/libspng) := src/lib/libspng/src/spng.h
|
||||
13
recipes/api/libspng/content.mk
Normal file
13
recipes/api/libspng/content.mk
Normal file
@@ -0,0 +1,13 @@
|
||||
content: include/libspng lib/symbols/libspng LICENSE
|
||||
|
||||
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/libspng)
|
||||
|
||||
include/libspng:
|
||||
mkdir -p $@
|
||||
cp -r $(PORT_DIR)/$@/* $@
|
||||
|
||||
lib/symbols/libspng:
|
||||
$(mirror_from_rep_dir)
|
||||
|
||||
LICENSE:
|
||||
cp $(PORT_DIR)/src/lib/libspng/LICENSE $@
|
||||
1
recipes/api/libspng/hash
Normal file
1
recipes/api/libspng/hash
Normal file
@@ -0,0 +1 @@
|
||||
2019-02-04 87ce6cc5e0d0692163c7efa1a6a30fc4160b704b
|
||||
1
recipes/src/libspng/api
Normal file
1
recipes/src/libspng/api
Normal file
@@ -0,0 +1 @@
|
||||
libspng
|
||||
16
recipes/src/libspng/content.mk
Normal file
16
recipes/src/libspng/content.mk
Normal file
@@ -0,0 +1,16 @@
|
||||
MIRROR_FROM_REP_DIR = lib/import/import-libspng.mk lib/mk/libspng.mk
|
||||
|
||||
content: $(MIRROR_FROM_REP_DIR) src/lib/libspng/target.mk LICENSE
|
||||
|
||||
$(MIRROR_FROM_REP_DIR):
|
||||
$(mirror_from_rep_dir)
|
||||
|
||||
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/libspng)
|
||||
|
||||
src/lib/libspng/target.mk:
|
||||
mkdir -p src/lib/libspng
|
||||
cp -r $(PORT_DIR)/src/lib/libspng/* src/lib/libspng
|
||||
echo "LIBS := libspng" > $@
|
||||
|
||||
LICENSE:
|
||||
cp $(PORT_DIR)/src/lib/libspng/LICENSE $@
|
||||
1
recipes/src/libspng/hash
Normal file
1
recipes/src/libspng/hash
Normal file
@@ -0,0 +1 @@
|
||||
2019-02-04 444da905d43b075de9db80f0862991c61268332a
|
||||
3
recipes/src/libspng/used_apis
Normal file
3
recipes/src/libspng/used_apis
Normal file
@@ -0,0 +1,3 @@
|
||||
base
|
||||
libc
|
||||
zlib
|
||||
11
src/test/libspng/target.mk
Normal file
11
src/test/libspng/target.mk
Normal file
@@ -0,0 +1,11 @@
|
||||
TARGET := test-libspng
|
||||
SRC_C := example.c
|
||||
LIBS := libc libspng posix
|
||||
|
||||
LIBSPNG_DIR := $(call select_from_ports,libspng)
|
||||
|
||||
INC_DIR += $(LIBSPNG_DIR)/include/libspng
|
||||
|
||||
LIBSPNG_SRC_DIR := $(LIBSPNG_DIR)/src/lib/libspng
|
||||
|
||||
vpath %.c $(LIBSPNG_SRC_DIR)/examples
|
||||
Reference in New Issue
Block a user