blob: 213ba3e470833236218c700870a661d93b8d81ac (
plain) (
blame)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# New ports collection makefile for: gimp-manual-1.0.0
# Date created: 5 June 1998
# Whom: Brett Taylor
#
# $FreeBSD$
#
PORTNAME= GimpUserManual
PORTVERSION= 1.0.0
CATEGORIES= graphics
MASTER_SITES= ftp://manual.gimp.org/pub/manual/ \
http://peloton.runet.edu/distfiles/
PKGNAMESUFFIX= -${DOCFORMAT}
DISTNAME= GimpUserManual-${PORTVERSION}
MAINTAINER= brett@peloton.runet.edu
.if !defined(DOCFORMAT)
DOCFORMAT=HTML
.else
.if ${DOCFORMAT} != "HTML" && ${DOCFORMAT} != "PDF" && ${DOCFORMAT} != "PS"
.BEGIN:
@${ECHO} "ERROR: invalid value for DOCFORMAT: \"${DOCFORMAT}\""
@${ECHO} "Possible values are: HTML, PDF, PS."
@${FALSE}
.endif
.endif
PLIST= ${PKGDIR}/pkg-plist_${DOCFORMAT}
pre-fetch:
@${ECHO} "This manual is available in three formats: HTML, PDF, and"
@${ECHO} "PS (PostScript). Note that the manual is pretty darn big."
@${ECHO} "The gzip'ed PS version is 44 MB (unpacks to 173 MB),"
@${ECHO} "the PDF version is 14 MB and the HTML tar-bzip'ed"
@${ECHO} "version is 16 MB (unpacks to 18.7 MB)."
.if ${DOCFORMAT} == "HTML"
EXTRACT_SUFX= -html.tar.bz2
WRKSRC= ${WRKDIR}/GimpUserManaul_v1.0.0
USE_BZIP2= yes
PREFIX?= ${X11BASE} # This port itself does not require Xlib
NO_BUILD= yes
do-install:
@${MKDIR} ${PREFIX}/share/doc/gimp
@${CP} ${WRKSRC}/* ${PREFIX}/share/doc/gimp
.endif
.if ${DOCFORMAT} == "PDF"
DISTFILES= GimpUserManual-1.0.0-pdf
EXTRACT_ONLY= #empty
NO_BUILD= yes
do-install:
@${MKDIR} ${PREFIX}/share/doc/gimp
@${CP} ${DISTDIR}/GimpUserManual-1.0.0-pdf ${PREFIX}/share/doc/gimp
.endif
.if ${DOCFORMAT} == "PS"
DISTNAME= GimpUserManual-1.0.0-ps
EXTRACT_SUFX= .gz
EXTRACT_CMD= ${GZIP_CMD}
EXTRACT_BEFORE_ARGS= -cd
EXTRACT_AFTER_ARGS= > ${DISTNAME}
NO_CDROM= "too big"
NO_BUILD= yes
do-install:
@${MKDIR} ${PREFIX}/share/doc/gimp
@${CP} ${WRKDIR}/GimpUserManual-1.0.0-ps ${PREFIX}/share/doc/gimp
.endif
.include <bsd.port.mk>
|