ports/graphics/libmng/files/Makefile.bsd
Mikhail Teterin daa103d826 graphics/libmng: upgrade from 1.0.10 to 2.0.3
Despite the seemingly large version jump, the sole change is
the compatibility with lcms-2.x.

I'm now also adding fixes for some compiler-warnings raised
by the modern clang. These suggest, certain parts of the code
aren't even really excercised.

Neither API nor ABI are changing, so no shared library
version-bump.
2024-01-12 16:53:24 -05:00

22 lines
496 B
Text

LIB= mng
LDADD= -lm -L${LIBDIR} -lz -llcms2 -ljpeg
MK_PROFILE= no
SHLIB_MAJOR?= 1
SHLIB_MINOR?= 0
SRCS!= ${MAKE} -f ${.CURDIR}/makefiles/makefile.unix -V SOURCES
CFLAGS+= -I${INCDIR}
.if ${WITH_MNG_OPTIMIZE} == "truex"
.for f in CHUNKINITFREE OBJCLEANUP CHUNKASSIGN CHUNKREADER
CFLAGS+= -DMNG_OPTIMIZE_$f
.endfor
.endif
INCS= libmng.h libmng_conf.h libmng_types.h
INCSDIR= ${LOCALBASE}/include
INCDIR= ${INCSDIR} # for pre-bsd.incs.mk API
LIBDIR= ${LOCALBASE}/lib
.include <bsd.lib.mk>