2006-03-04 22:28:51 +01:00
|
|
|
# $NetBSD: Makefile,v 1.29 2006/03/04 21:29:50 jlam Exp $
|
2001-03-07 09:34:52 +01:00
|
|
|
|
2005-02-20 01:51:27 +01:00
|
|
|
DISTNAME= lm1009
|
|
|
|
PKGNAME= mng-1.0.9
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 1
|
2001-03-07 09:34:52 +01:00
|
|
|
CATEGORIES= graphics
|
2004-04-06 11:17:56 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libmng/} \
|
|
|
|
http://www.3-t.com/libmng/download/ \
|
2001-03-07 09:34:52 +01:00
|
|
|
http://www.libmng.com/download/
|
2005-02-20 01:51:27 +01:00
|
|
|
# this is just a workaround because the 1.0.9 tar.gz is broken
|
|
|
|
EXTRACT_SUFX= .zip
|
2001-03-07 09:34:52 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2001-03-07 09:34:52 +01:00
|
|
|
HOMEPAGE= http://www.libmng.com/
|
|
|
|
COMMENT= Multiple-image Network Graphics (MNG) reference library
|
|
|
|
|
2004-12-05 21:19:50 +01:00
|
|
|
# Waiting for automake to be pkgviews-enabled
|
|
|
|
#PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2004-01-24 01:56:37 +01:00
|
|
|
|
2001-03-07 09:34:52 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LIBTOOL= yes
|
2005-06-01 22:07:59 +02:00
|
|
|
USE_TOOLS+= automake
|
2001-03-07 09:34:52 +01:00
|
|
|
|
2005-02-20 01:51:27 +01:00
|
|
|
# only needed as long as we use the zip distfile
|
2006-01-21 00:41:29 +01:00
|
|
|
EXTRACT_OPTS_ZIP?= -aqo
|
2005-02-20 01:51:27 +01:00
|
|
|
WRKSRC= ${WRKDIR}/libmng
|
|
|
|
|
2002-08-25 20:38:05 +02:00
|
|
|
CONFIGURE_ARGS+= --with-jpeg=${BUILDLINK_PREFIX.jpeg}
|
|
|
|
CONFIGURE_ARGS+= --with-lcms=${BUILDLINK_PREFIX.lcms}
|
2002-10-31 09:01:21 +01:00
|
|
|
CPPFLAGS+= ${BUILDLINK_CPPFLAGS.lcms}
|
2002-08-25 20:38:05 +02:00
|
|
|
|
2002-12-23 17:14:38 +01:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/mng
|
2002-12-02 16:20:07 +01:00
|
|
|
|
2005-12-28 05:54:17 +01:00
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man3 ${PKGMANDIR}/man5
|
2004-03-07 15:37:02 +01:00
|
|
|
|
2004-04-06 11:17:56 +02:00
|
|
|
pre-configure:
|
2005-06-01 22:07:59 +02:00
|
|
|
cd ${WRKSRC}; \
|
2004-12-02 18:42:18 +01:00
|
|
|
${RM} -f configure.in && ${LN} -sf makefiles/configure.in .; \
|
|
|
|
${RM} -f Makefile.am && ${LN} -sf makefiles/Makefile.am .; \
|
2005-06-01 22:07:59 +02:00
|
|
|
aclocal; \
|
|
|
|
${LOCALBASE}/bin/libtoolize --automake; \
|
|
|
|
automake -a --foreign -i; \
|
|
|
|
autoconf
|
2004-04-06 11:17:56 +02:00
|
|
|
|
2002-12-02 16:20:07 +01:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
cd ${WRKSRC}/doc && \
|
|
|
|
${INSTALL_DATA} Plan1.png Plan2.png libmng.txt ${DOCDIR}
|
|
|
|
cd ${WRKSRC}/doc/man && \
|
2005-12-28 05:54:17 +01:00
|
|
|
${INSTALL_MAN} libmng.3 ${PREFIX}/${PKGMANDIR}/man3
|
2002-12-02 16:20:07 +01:00
|
|
|
cd ${WRKSRC}/doc/man && \
|
2005-12-28 05:54:17 +01:00
|
|
|
${INSTALL_MAN} jng.5 mng.5 ${PREFIX}/${PKGMANDIR}/man5
|
2002-12-02 16:20:07 +01:00
|
|
|
|
2004-01-24 01:56:37 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../graphics/jpeg/buildlink3.mk"
|
|
|
|
.include "../../graphics/lcms/buildlink3.mk"
|
2001-03-07 09:34:52 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|