blob: ee53f1f45c67e3a3c45ff62f1ad46c26cc727791 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
PORTNAME= sdl2_image
DISTVERSIONPREFIX= release-
DISTVERSION= 2.6.3
PORTREVISION= 4
CATEGORIES= graphics
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Simple library to load images of various formats as SDL surfaces
WWW= https://github.com/libsdl-org/SDL_image
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= cmake sdl
USE_GITHUB= yes
GH_ACCOUNT= libsdl-org
GH_PROJECT= SDL_image
USE_SDL= sdl2
CMAKE_OFF= SDL2IMAGE_DEPS_SHARED \
SDL2IMAGE_SAMPLES \
SDL2IMAGE_BACKEND_STB
CMAKE_ARGS= -DSDL2IMAGE_DEBUG_POSTFIX:STRING=
USE_LDCONFIG= yes
OPTIONS_DEFINE= AVIF JPEG JXL PNG TIFF WEBP TEST
OPTIONS_DEFAULT=AVIF JPEG JXL PNG WEBP
JPEG_USES= jpeg
JPEG_CMAKE_BOOL= SDL2IMAGE_JPG
PNG_LIB_DEPENDS= libpng.so:graphics/png
PNG_CMAKE_BOOL= SDL2IMAGE_PNG
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff
TIFF_CMAKE_BOOL= SDL2IMAGE_TIF
WEBP_LIB_DEPENDS= libwebp.so:graphics/webp
WEBP_CMAKE_BOOL= SDL2IMAGE_WEBP
AVIF_LIB_DEPENDS= libavif.so:graphics/libavif
AVIF_CMAKE_BOOL= SDL2IMAGE_AVIF
JXL_LIB_DEPENDS= libjxl.so:graphics/libjxl
JXL_CMAKE_BOOL= SDL2IMAGE_JXL
TEST_CMAKE_BOOL= SDL2IMAGE_TESTS
TEST_CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
TEST_LIB_DEPENDS= libunwind.so:devel/libunwind
TEST_TEST_TARGET= test
TEST_IMPLIES= PNG JPEG # does not build otherwise
TEST_BROKEN= does not build # XXX: probably devel/sdl20 problem
post-extract:
@${RM} -rf ${WRKSRC}/external
.include <bsd.port.mk>
|