2010-12-23 12:44:24 +01:00
|
|
|
# $NetBSD: Makefile,v 1.36 2010/12/23 11:44:43 dsainty Exp $
|
2001-03-07 09:34:52 +01:00
|
|
|
|
2007-07-17 12:35:55 +02:00
|
|
|
DISTNAME= libmng-1.0.10
|
|
|
|
PKGNAME= mng-1.0.10
|
2010-01-18 10:58:37 +01:00
|
|
|
PKGREVISION= 2
|
2001-03-07 09:34:52 +01:00
|
|
|
CATEGORIES= graphics
|
2007-02-22 20:26:05 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libmng/} \
|
2001-03-07 09:34:52 +01:00
|
|
|
http://www.libmng.com/download/
|
|
|
|
|
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
|
|
|
|
|
2006-11-05 18:17:04 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
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
|
|
|
|
2010-12-23 12:44:24 +01:00
|
|
|
CONFIGURE_ARGS+= --with-jpeg=${JPEGBASE}
|
2002-08-25 20:38:05 +02:00
|
|
|
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
|
|
|
|
2006-11-05 18:17:04 +01:00
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man3 ${PKGMANDIR}/man5 ${DOCDIR}
|
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:
|
|
|
|
cd ${WRKSRC}/doc && \
|
2006-11-05 18:17:04 +01:00
|
|
|
${INSTALL_DATA} Plan1.png Plan2.png libmng.txt ${DESTDIR}${DOCDIR}
|
2002-12-02 16:20:07 +01:00
|
|
|
cd ${WRKSRC}/doc/man && \
|
2006-11-05 18:17:04 +01:00
|
|
|
${INSTALL_MAN} libmng.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
|
2002-12-02 16:20:07 +01:00
|
|
|
cd ${WRKSRC}/doc/man && \
|
2006-11-05 18:17:04 +01:00
|
|
|
${INSTALL_MAN} jng.5 mng.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
|
2002-12-02 16:20:07 +01:00
|
|
|
|
2004-01-24 01:56:37 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2010-12-23 12:44:24 +01:00
|
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
2004-01-24 01:56:37 +01:00
|
|
|
.include "../../graphics/lcms/buildlink3.mk"
|
2001-03-07 09:34:52 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|