blob: 8e19f4c61b2caf05222287d44a1d466ab471078d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# $NetBSD: Makefile,v 1.30 2006/11/05 17:23:45 joerg Exp $
DISTNAME= lm1009
PKGNAME= mng-1.0.9
PKGREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libmng/} \
http://www.3-t.com/libmng/download/ \
http://www.libmng.com/download/
# this is just a workaround because the 1.0.9 tar.gz is broken
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.libmng.com/
COMMENT= Multiple-image Network Graphics (MNG) reference library
PKG_DESTDIR_SUPPORT= user-destdir
# Waiting for automake to be pkgviews-enabled
#PKG_INSTALLATION_TYPES= overwrite pkgviews
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= automake
# only needed as long as we use the zip distfile
EXTRACT_OPTS_ZIP?= -aqo
WRKSRC= ${WRKDIR}/libmng
CONFIGURE_ARGS+= --with-jpeg=${BUILDLINK_PREFIX.jpeg}
CONFIGURE_ARGS+= --with-lcms=${BUILDLINK_PREFIX.lcms}
CPPFLAGS+= ${BUILDLINK_CPPFLAGS.lcms}
DOCDIR= ${PREFIX}/share/doc/mng
INSTALLATION_DIRS= ${PKGMANDIR}/man3 ${PKGMANDIR}/man5 ${DOCDIR}
pre-configure:
cd ${WRKSRC}; \
${RM} -f configure.in && ${LN} -sf makefiles/configure.in .; \
${RM} -f Makefile.am && ${LN} -sf makefiles/Makefile.am .; \
aclocal; \
${LOCALBASE}/bin/libtoolize --automake; \
automake -a --foreign -i; \
autoconf
post-install:
cd ${WRKSRC}/doc && \
${INSTALL_DATA} Plan1.png Plan2.png libmng.txt ${DESTDIR}${DOCDIR}
cd ${WRKSRC}/doc/man && \
${INSTALL_MAN} libmng.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
cd ${WRKSRC}/doc/man && \
${INSTALL_MAN} jng.5 mng.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/lcms/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|