Lines 1-5
Link Here
|
1 |
PORTNAME= sdl2_image |
1 |
PORTNAME= sdl2_image |
2 |
PORTVERSION= 2.0.5 |
2 |
PORTVERSION= 2.6.2 |
3 |
CATEGORIES= graphics |
3 |
CATEGORIES= graphics |
4 |
MASTER_SITES= https://www.libsdl.org/projects/SDL_image/release/ |
4 |
MASTER_SITES= https://www.libsdl.org/projects/SDL_image/release/ |
5 |
DISTNAME= SDL2_image-${PORTVERSION} |
5 |
DISTNAME= SDL2_image-${PORTVERSION} |
Lines 8-28
MAINTAINER= amdmi3@FreeBSD.org
Link Here
|
8 |
COMMENT= Simple library to load images of various formats as SDL surfaces |
8 |
COMMENT= Simple library to load images of various formats as SDL surfaces |
9 |
|
9 |
|
10 |
LICENSE= ZLIB |
10 |
LICENSE= ZLIB |
11 |
LICENSE_FILE= ${WRKSRC}/COPYING.txt |
11 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
|
|
12 |
|
13 |
TEST_DEPENDS= libunwind>0:devel/libunwind |
12 |
|
14 |
|
13 |
USES= gmake libtool localbase pkgconfig pathfix sdl |
15 |
USES= gmake libtool localbase pkgconfig pathfix sdl |
14 |
USE_SDL= sdl2 |
16 |
USE_SDL= sdl2 |
15 |
GNU_CONFIGURE= yes |
17 |
GNU_CONFIGURE= yes |
16 |
CONFIGURE_ARGS= --disable-jpg-shared --disable-png-shared \ |
18 |
CONFIGURE_ARGS= --disable-avif-shared \ |
17 |
--disable-tif-shared --disable-webp-shared |
19 |
--disable-jpg-shared \ |
|
|
20 |
--disable-jxl-shared \ |
21 |
--disable-png-shared \ |
22 |
--disable-tif-shared \ |
23 |
--disable-webp-shared \ |
24 |
--disable-stb-image |
18 |
INSTALL_TARGET= install-strip |
25 |
INSTALL_TARGET= install-strip |
|
|
26 |
TEST_TARGET= check |
19 |
USE_LDCONFIG= yes |
27 |
USE_LDCONFIG= yes |
20 |
|
28 |
|
21 |
OPTIONS_DEFINE= JPEG PNG TIFF WEBP |
29 |
OPTIONS_DEFINE= AVIF JPEG JXL PNG TIFF WEBP |
22 |
OPTIONS_DEFAULT=JPEG PNG TIFF WEBP |
30 |
OPTIONS_DEFAULT=AVIF JPEG JXL PNG TIFF WEBP |
23 |
|
31 |
|
|
|
32 |
AVIF_LIB_DEPENDS= libavif.so:graphics/libavif |
33 |
AVIF_CONFIGURE_ENABLE= avif |
24 |
JPEG_USES= jpeg |
34 |
JPEG_USES= jpeg |
25 |
JPEG_CONFIGURE_ENABLE= jpg |
35 |
JPEG_CONFIGURE_ENABLE= jpg |
|
|
36 |
JXL_LIB_DEPENDS= libjxl.so:graphics/libjxl |
37 |
JXL_CONFIGURE_ENABLE= jxl |
26 |
PNG_LIB_DEPENDS= libpng.so:graphics/png |
38 |
PNG_LIB_DEPENDS= libpng.so:graphics/png |
27 |
PNG_CONFIGURE_ENABLE= png |
39 |
PNG_CONFIGURE_ENABLE= png |
28 |
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff |
40 |
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff |
Lines 33-36
WEBP_CONFIGURE_ENABLE= webp
Link Here
|
33 |
post-extract: |
45 |
post-extract: |
34 |
@${RM} -rf ${WRKSRC}/external |
46 |
@${RM} -rf ${WRKSRC}/external |
35 |
|
47 |
|
|
|
48 |
post-patch: |
49 |
# -lSDL_test is a static library, so needs private dependencies |
50 |
@${REINPLACE_CMD} 's/-lSDL2_test/& -lunwind/' \ |
51 |
${WRKSRC}/test/Makefile.in |
52 |
|
53 |
pre-test: |
54 |
@if [ ! -e ${WRKDIR}/.autoconf_build_tests ]; then \ |
55 |
${RM} ${CONFIGURE_COOKIE} ${BUILD_COOKIE}; \ |
56 |
${MAKE} -C${.CURDIR} build CONFIGURE_ARGS="${CONFIGURE_ARGS} --enable-tests"; \ |
57 |
${TOUCH} ${WRKDIR}/.autoconf_build_tests; \ |
58 |
fi |
59 |
|
36 |
.include <bsd.port.mk> |
60 |
.include <bsd.port.mk> |