openbsd-ports/devel/sdl2-image/Makefile

39 lines
918 B
Makefile

V = 2.0.5
COMMENT = SDL2 image library
DISTNAME = SDL2_image-${V}
PKGNAME = sdl2-image-${V}
CATEGORIES = devel graphics
REVISION = 0
SHARED_LIBS += SDL2_image 0.1 # 0.4
HOMEPAGE = https://www.libsdl.org/projects/SDL_image/
MAINTAINER = Thomas Frohwein <thfr@openbsd.org>
# zlib
PERMIT_PACKAGE = Yes
WANTLIB += SDL2 jpeg m png pthread samplerate sndio tiff usbhid webp z
WANTLIB += X11 Xcursor Xext Xfixes Xi Xinerama Xrandr Xrender Xss Xxf86vm
WANTLIB += lzma xcb zstd
MASTER_SITES = https://www.libsdl.org/projects/SDL_image/release/
LIB_DEPENDS = devel/sdl2>=2.0.8 \
graphics/jpeg \
graphics/libwebp \
graphics/png \
graphics/tiff
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += --disable-jpg-shared \
--disable-png-shared \
--disable-tif-shared \
--disable-webp-shared
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
OBJC="${CC}"
.include <bsd.port.mk>