Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2001 12:15:19 +0300
From:      Peter Pentchev <roam@ringlet.net>
To:        ports@FreeBSD.org
Subject:   graphics/gd install documentation
Message-ID:  <20011022121519.A1755@straylight.oblivion.bg>

next in thread | raw e-mail | index | archive | help
Hi,

Would anyone object to committing the attached patch, which installs
the index.html manual for the graphics/gd port?

G'luck,
Peter

-- 
You have, of course, just begun reading the sentence that you have just finished reading.

Index: ports/graphics/gd/Makefile
===================================================================
RCS file: /home/ncvs/ports/graphics/gd/Makefile,v
retrieving revision 1.44
diff -u -r1.44 Makefile
--- ports/graphics/gd/Makefile	2001/10/21 07:09:39	1.44
+++ ports/graphics/gd/Makefile	2001/10/22 09:10:49
@@ -35,6 +35,8 @@
 
 INSTALLS_SHLIB=	yes
 
+DOCS=		index.html
+
 post-extract:
 	bzip2 -d < ${_DISTDIR}/gd_gif_in.c.bz2 > ${WRKSRC}/gd_gif_in.c
 
@@ -42,6 +44,12 @@
 .if !defined(WITH_X11)
 	@${ECHO_MSG} "If you want to compile in X support use "
 	@${ECHO_MSG} "'make -DWITH_X11' instead"
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
Index: ports/graphics/gd/pkg-plist
===================================================================
RCS file: /home/ncvs/ports/graphics/gd/pkg-plist,v
retrieving revision 1.10
diff -u -r1.10 pkg-plist
--- ports/graphics/gd/pkg-plist	2001/02/12 09:34:33	1.10
+++ ports/graphics/gd/pkg-plist	2001/10/22 09:09:11
@@ -17,4 +17,6 @@
 lib/libgd.a
 lib/libgd.so
 lib/libgd.so.2
+%%PORTDOCS%%share/doc/gd/index.html
+%%PORTDOCS%%@dirrm share/doc/gd
 @dirrm include/gd

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011022121519.A1755>