freebsd-ports/graphics/libmng/files/Makefile.bsd
Mikhail Teterin 18ba7f40e2 Update from 1.0.8 to 1.0.9.
Add an option to turn on vendor's experimental optimizations.
Be sure to turn on MNG_BUILD_SO only for PIC-objects.

Prompted by:	edwin's port-version check
2005-10-18 04:42:30 +00:00

22 lines
494 B
Text

LIB= mng
LDADD= -lm -L${LIBDIR} -lz -llcms -ljpeg
NOPROFILE= yes
SHLIB_MAJOR?= 1
SHLIB_MINOR?= 0
SRCS!= ${MAKE} -f ${.CURDIR}/makefiles/makefile.unix -V SOURCES
CFLAGS+= -I${INCDIR}
.if ${WITH_MNG_OPTIMIZE} == "true"
.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>