summaryrefslogtreecommitdiff
path: root/graphics/giflib/Makefile
diff options
context:
space:
mode:
authorobache <obache>2011-09-03 15:25:01 +0000
committerobache <obache>2011-09-03 15:25:01 +0000
commitedcc940580f5144a4eba8007466c8d73b51827c5 (patch)
tree94253d32ed0cb8ce179ae01ff91afbb41c7f9c54 /graphics/giflib/Makefile
parent734cfb04ffcaea1e0ffe12af71e4419aaf08b2bb (diff)
downloadpkgsrc-edcc940580f5144a4eba8007466c8d73b51827c5.tar.gz
Install utils and docs.
Based on PR pkg/45321 by Uwe Klaus. While here, set LICENSE=mit. Bump PKGREVISION.
Diffstat (limited to 'graphics/giflib/Makefile')
-rw-r--r--graphics/giflib/Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/graphics/giflib/Makefile b/graphics/giflib/Makefile
index ef21feb49d4..17b82f9c234 100644
--- a/graphics/giflib/Makefile
+++ b/graphics/giflib/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.41 2011/01/18 11:57:53 drochner Exp $
+# $NetBSD: Makefile,v 1.42 2011/09/03 15:25:01 obache Exp $
#
DISTNAME= giflib-4.1.6
+PKGREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=giflib/}
EXTRACT_SUFX= .tar.bz2
@@ -9,7 +10,7 @@ EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://giflib.sourceforge.net/
COMMENT= GIF image format library
-#LICENSE= # TODO: (see mk/license.mk)
+LICENSE= mit
CONFLICTS+= libungif-[0-9]*
PKG_DESTDIR_SUPPORT= user-destdir
@@ -17,5 +18,19 @@ PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
+USE_TOOLS+= perl:run
+DOCDIR= ${PREFIX}/share/doc/giflib
+HTMLDIR= ${PREFIX}/share/doc/html/giflib
+
+REPLACE_PERL+= util/gifburst
+
+post-patch:
+ ${RM} ${WRKSRC}/doc/gif2x11.html
+
+post-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
+ cd ${WRKSRC}; ${INSTALL_DATA} COPYING ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${HTMLDIR}
+ cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.txt *.png ${DESTDIR}${HTMLDIR}
.include "../../mk/bsd.pkg.mk"