freebsd-ports/graphics/gimp-manual-html/Makefile

66 lines
1.6 KiB
Makefile
Raw Normal View History

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