summaryrefslogtreecommitdiff
path: root/graphics/giflib-util/Makefile
blob: 2cf183da2e76955953fda2c5daa190815f9f5e98 (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
# $NetBSD: Makefile,v 1.3 2012/10/03 21:56:09 wiz Exp $
#

.include "../../graphics/giflib/Makefile.common"

PKGNAME=	giflib-util-4.1.6
PKGREVISION=	1

COMMENT=	GIF image format utility

CONFLICTS+=	libungif-[0-9]*
PKG_DESTDIR_SUPPORT=	user-destdir

USE_TOOLS+=	perl:run
REPLACE_PERL+=	util/gifburst

INSTALL_DIRS+=	util doc
HTMLDIR=	${PREFIX}/share/doc/html/giflib

post-patch:
	${RM} ${WRKSRC}/doc/gif2x11.html

do-build:
	(cd ${WRKSRC}/lib && ${SETENV} ${BUILD_ENV} ${MAKE} libgetarg.a)
	(cd ${WRKSRC}/util && ${SETENV} ${BUILD_ENV} ${MAKE})
	(cd ${WRKSRC}/doc && ${SETENV} ${BUILD_ENV} ${MAKE})

post-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${HTMLDIR}
	cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.txt *.png ${DESTDIR}${HTMLDIR}

.include "../../mk/giflib.buildlink3.mk"
.if ${GIFLIB_IMPLEMENTATION} == "libungif"
PKG_FAIL_REASON= "please use graphics/libungif"
.endif
.include "../../mk/bsd.pkg.mk"