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 |
|
12 |
|
13 |
USES= gmake libtool localbase pkgconfig pathfix sdl |
13 |
USES= gmake libtool localbase pkgconfig pathfix sdl |
14 |
USE_SDL= sdl2 |
14 |
USE_SDL= sdl2 |
15 |
GNU_CONFIGURE= yes |
15 |
GNU_CONFIGURE= yes |
16 |
CONFIGURE_ARGS= --disable-jpg-shared --disable-png-shared \ |
16 |
CONFIGURE_ARGS= --disable-avif-shared \ |
17 |
--disable-tif-shared --disable-webp-shared |
17 |
--disable-jpg-shared \ |
|
|
18 |
--disable-jxl-shared \ |
19 |
--disable-png-shared \ |
20 |
--disable-tif-shared \ |
21 |
--disable-webp-shared \ |
22 |
--disable-stb-image |
18 |
INSTALL_TARGET= install-strip |
23 |
INSTALL_TARGET= install-strip |
|
|
24 |
TEST_TARGET= check |
19 |
USE_LDCONFIG= yes |
25 |
USE_LDCONFIG= yes |
20 |
|
26 |
|
21 |
OPTIONS_DEFINE= JPEG PNG TIFF WEBP |
27 |
OPTIONS_DEFINE= AVIF JPEG JXL PNG TIFF WEBP |
22 |
OPTIONS_DEFAULT=JPEG PNG TIFF WEBP |
28 |
OPTIONS_DEFAULT=AVIF JPEG JXL PNG TIFF WEBP |
23 |
|
29 |
|
|
|
30 |
AVIF_LIB_DEPENDS= libavif.so:graphics/libavif |
31 |
AVIF_CONFIGURE_ENABLE= avif |
24 |
JPEG_USES= jpeg |
32 |
JPEG_USES= jpeg |
25 |
JPEG_CONFIGURE_ENABLE= jpg |
33 |
JPEG_CONFIGURE_ENABLE= jpg |
|
|
34 |
JXL_LIB_DEPENDS= libjxl.so:graphics/libjxl |
35 |
JXL_CONFIGURE_ENABLE= jxl |
26 |
PNG_LIB_DEPENDS= libpng.so:graphics/png |
36 |
PNG_LIB_DEPENDS= libpng.so:graphics/png |
27 |
PNG_CONFIGURE_ENABLE= png |
37 |
PNG_CONFIGURE_ENABLE= png |
28 |
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff |
38 |
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff |
Lines 33-36
WEBP_CONFIGURE_ENABLE= webp
Link Here
|
33 |
post-extract: |
43 |
post-extract: |
34 |
@${RM} -rf ${WRKSRC}/external |
44 |
@${RM} -rf ${WRKSRC}/external |
35 |
|
45 |
|
|
|
46 |
post-patch: |
47 |
# -lSDL2_test is a static library, so private dependencies leak into consumers |
48 |
# <libunwind.h> is provided by both base and ports, so requires guessing ABI |
49 |
@${REINPLACE_CMD} -e "s/-lSDL2_test/& `if [ -f ${LOCALBASE}/lib/libunwind.so ]; then echo -lunwind; else echo -lgcc_eh; fi`/" \ |
50 |
${WRKSRC}/test/Makefile.in |
51 |
|
52 |
pre-test: |
53 |
@if [ ! -e ${WRKDIR}/.autoconf_build_tests ]; then \ |
54 |
${RM} ${CONFIGURE_COOKIE} ${BUILD_COOKIE}; \ |
55 |
${MAKE} -C${.CURDIR} build CONFIGURE_ARGS="${CONFIGURE_ARGS} --enable-tests"; \ |
56 |
${TOUCH} ${WRKDIR}/.autoconf_build_tests; \ |
57 |
fi |
58 |
|
36 |
.include <bsd.port.mk> |
59 |
.include <bsd.port.mk> |