openbsd-ports/graphics/libmng/Makefile

42 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.6 2001/12/25 09:10:05 pvalchev Exp $
COMMENT= "Multiple-image Network Graphics (MNG) reference library"
DISTNAME= libmng-1.0.3
CATEGORIES= graphics
NEED_VERSION= 1.500
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= libmng
HOMEPAGE= http://www.libmng.com/
LIB_DEPENDS= jpeg.62::graphics/jpeg \
lcms::graphics/lcms
MAINTAINER= Brad Smith <brad@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --enable-static \
--with-jpeg="${LOCALBASE}"
CONFIGURE_ENV= CFLAGS="${CFLAGS} -DMNG_FULL_CMS" \
CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -llcms -lm"
PATCH_LIST= ${PORTSDIR}/infrastructure/patches/patch-lt1.3.4-ltconfig \
${PORTSDIR}/infrastructure/patches/patch-lt1.3.4-ltmain_sh \
patch-*
post-install:
@cd ${WRKSRC}/doc/man && \
${INSTALL_MAN} libmng.3 ${PREFIX}/man/man3 && \
${INSTALL_MAN} mng.5 jng.5 ${PREFIX}/man/man5
.include <bsd.port.mk>