diff options
-rw-r--r-- | graphics/sdl2_image/Makefile | 17 | ||||
-rw-r--r-- | graphics/sdl_image/Makefile | 17 |
2 files changed, 24 insertions, 10 deletions
diff --git a/graphics/sdl2_image/Makefile b/graphics/sdl2_image/Makefile index 56e3b065be5f..b98dfcbab865 100644 --- a/graphics/sdl2_image/Makefile +++ b/graphics/sdl2_image/Makefile @@ -12,11 +12,6 @@ COMMENT= Simple library to load images of various formats as SDL surfaces LICENSE= ZLIB -LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \ - libpng.so:${PORTSDIR}/graphics/png \ - libtiff.so:${PORTSDIR}/graphics/tiff \ - libwebp.so:${PORTSDIR}/graphics/webp - USES= pkgconfig:build pathfix gmake libtool USE_SDL= sdl2 GNU_CONFIGURE= yes @@ -24,4 +19,16 @@ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -lm USE_LDCONFIG= yes +OPTIONS_DEFINE= JPEG PNG TIFF WEBP +OPTIONS_DEFAULT=JPEG PNG TIFF WEBP + +JPEG_LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg +JPEG_CONFIGURE_ENABLE= jpg +PNG_LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png +PNG_CONFIGURE_ENABLE= png +TIFF_LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff +TIFF_CONFIGURE_ENABLE= tif +WEBP_LIB_DEPENDS= libwebp.so:${PORTSDIR}/graphics/webp +WEBP_CONFIGURE_ENABLE= webp + .include <bsd.port.mk> diff --git a/graphics/sdl_image/Makefile b/graphics/sdl_image/Makefile index 84238bc32c74..91f340543b43 100644 --- a/graphics/sdl_image/Makefile +++ b/graphics/sdl_image/Makefile @@ -13,11 +13,6 @@ COMMENT= Simple library to load images of various formats as SDL surfaces LICENSE= LGPL21 -LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \ - libpng.so:${PORTSDIR}/graphics/png \ - libtiff.so:${PORTSDIR}/graphics/tiff \ - libwebp.so:${PORTSDIR}/graphics/webp - USES= gmake libtool pkgconfig pathfix USE_SDL= sdl GNU_CONFIGURE= yes @@ -25,6 +20,18 @@ CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib -lm USE_LDCONFIG= yes +OPTIONS_DEFINE= JPEG PNG TIFF WEBP +OPTIONS_DEFAULT=JPEG PNG TIFF WEBP + +JPEG_LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg +JPEG_CONFIGURE_ENABLE= jpg +PNG_LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png +PNG_CONFIGURE_ENABLE= png +TIFF_LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff +TIFF_CONFIGURE_ENABLE= tif +WEBP_LIB_DEPENDS= libwebp.so:${PORTSDIR}/graphics/webp +WEBP_CONFIGURE_ENABLE= webp + post-install: ${INSTALL_PROGRAM} ${WRKSRC}/.libs/showimage ${STAGEDIR}${PREFIX}/bin |