freebsd-ports/graphics/libmng/files/Makefile.bsd
Brooks Davis f2ab442843 Fix build with src r354909 applied.
The referenced change made NO_INSTALLLIB, NO_MAN, and NO_PROFILE into
errors causing these ports that declare them and use the FreeBSD make
infrastructure as part of their build to fail.

When the offending variables occur in a BSD Makefile, NO_MAN becomes
MAN= and NO_INSTALLLIB and NO_PROFILE become MK_INSTALLLIB=no and
MK_PROFILE=no respectively.  When declared in the environment they
become WITHOUT_<FOO>.
2019-11-25 23:25:52 +00:00

22 lines
494 B
Text

LIB= mng
LDADD= -lm -L${LIBDIR} -lz -llcms -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} == "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>