2003-02-17 17:02:07 +00:00
|
|
|
# New ports collection makefile for: gimp-manual
|
1998-06-10 13:57:13 +00:00
|
|
|
# Date created: 5 June 1998
|
|
|
|
# Whom: Brett Taylor
|
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
1998-06-10 13:57:13 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 10:48:02 +00:00
|
|
|
PORTNAME= GimpUserManual
|
2003-02-17 17:02:07 +00:00
|
|
|
PORTVERSION= 2
|
1998-06-10 13:57:13 +00:00
|
|
|
CATEGORIES= graphics
|
2005-02-08 20:57:34 +00:00
|
|
|
MASTER_SITES= http://kefk.net/Open_Source/FS/GIMP/Download/GUM/ \
|
|
|
|
http://ftp.nluug.nl/ftp/graphics/gimp/manual/
|
2000-04-14 10:48:02 +00:00
|
|
|
PKGNAMESUFFIX= -${DOCFORMAT}
|
1998-06-10 13:57:13 +00:00
|
|
|
|
2003-12-21 00:23:25 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 12:17:17 +00:00
|
|
|
COMMENT= The user manual for the GNU Image Manipulation Program (GIMP)
|
1998-06-10 13:57:13 +00:00
|
|
|
|
|
|
|
.if !defined(DOCFORMAT)
|
|
|
|
DOCFORMAT=HTML
|
|
|
|
.else
|
2003-04-29 22:14:05 +00:00
|
|
|
.if ${DOCFORMAT} != "HTML" && ${DOCFORMAT} != "PDF"
|
1998-11-20 04:15:15 +00:00
|
|
|
.BEGIN:
|
2003-09-27 00:45:43 +00:00
|
|
|
@${ECHO_MSG} "ERROR: invalid value for DOCFORMAT: \"${DOCFORMAT}\""
|
|
|
|
@${ECHO_MSG} "Possible values are: HTML, PDF."
|
1998-11-20 04:15:15 +00:00
|
|
|
@${FALSE}
|
1998-06-10 13:57:13 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2000-10-08 01:14:54 +00:00
|
|
|
PLIST= ${PKGDIR}/pkg-plist_${DOCFORMAT}
|
1998-10-30 11:21:54 +00:00
|
|
|
|
2003-09-27 00:45:43 +00:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} "This manual is available in two formats: HTML and PDF."
|
|
|
|
@${ECHO_MSG} "Note that the manual is pretty darn big."
|
1998-06-10 13:57:13 +00:00
|
|
|
|
2001-01-21 19:26:19 +00:00
|
|
|
PREFIX?= ${X11BASE} # This port itself does not require Xlib
|
2003-02-17 17:02:07 +00:00
|
|
|
EXTRACT_ONLY= #empty
|
1998-06-10 13:57:13 +00:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
2003-03-02 09:21:53 +00:00
|
|
|
.if ${DOCFORMAT} == "HTML"
|
|
|
|
DISTFILES= GimpUsersManual_SecondEdition-HTML_Color.tar.gz \
|
|
|
|
GimpUsersManual_SecondEdition-HTML_Search.tar.gz
|
|
|
|
|
1998-06-10 13:57:13 +00:00
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/gimp
|
2003-02-17 17:02:07 +00:00
|
|
|
for file in ${DISTFILES} ; do \
|
|
|
|
cd ${PREFIX}/share/doc/gimp; \
|
|
|
|
${TAR} -zxf ${DISTDIR}/$${file}; \
|
2003-03-02 17:39:01 +00:00
|
|
|
${CHOWN} -R root:wheel ${PREFIX}/share/doc/gimp; \
|
2003-02-17 17:02:07 +00:00
|
|
|
done
|
1998-06-10 13:57:13 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${DOCFORMAT} == "PDF"
|
2003-02-17 17:02:07 +00:00
|
|
|
DISTFILES= GimpUsersManual_SecondEdition-PDF_Color.pdf \
|
|
|
|
GimpUsersManual_SecondEdition-PDF.pdf
|
1998-06-10 13:57:13 +00:00
|
|
|
|
1998-06-16 11:29:43 +00:00
|
|
|
EXTRACT_ONLY= #empty
|
1998-06-10 13:57:13 +00:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/gimp
|
2003-02-17 17:02:07 +00:00
|
|
|
for file in ${DISTFILES} ; do \
|
2003-03-02 09:21:53 +00:00
|
|
|
${INSTALL_DATA} ${DISTDIR}/$${file} ${PREFIX}/share/doc/gimp/ ; \
|
2003-02-17 17:02:07 +00:00
|
|
|
done
|
1998-06-10 13:57:13 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|