blob: 1e23511507cf8ed58e6617101cb158016e652116 (
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
|
# New ports collection makefile for: Ruby/PDFlib
# Date created: 21 February 2001
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= pdflib
PORTVERSION= 0.71
CATEGORIES= print ruby
MASTER_SITES= http://www-nh.scphys.kyoto-u.ac.jp/~thitoshi/ruby/pdflib/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff
.if defined(WITH_PDFLIB4)
LIB_DEPENDS+= pdf.4:${PORTSDIR}/print/pdflib
.else
LIB_DEPENDS+= pdf.3:${PORTSDIR}/print/pdflib3
.endif
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
.if !defined(NOPORTDOCS)
USE_RUBY_RD= yes
.endif
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
INSTALL_TARGET= site-install
DOCS_EN= ChangeLog README \
${RD_DOCS_EN} ${RD_DOCS_EN:S/.rd/.html/}
DOCS_JA= ChangeLog.jp README.jp \
${RD_DOCS_JA} ${RD_DOCS_JA:S/.rd/.html/}
RD_DOCS_EN= pdflib-api.rd
RD_DOCS_JA= pdflib-api-jp.rd
EXAMPLES_EN= hello.rb pdfclock.rb pdfgraph.rb \
pdfimage.rb text2pdf.rb
EXAMPLES_JA= jtext2pdf.rb
post-build:
.if !defined(NOPORTDOCS)
.for f in ${RD_DOCS_EN} ${RD_DOCS_JA}
cd ${WRKSRC}; \
${RUBY_RD} ${f} > ${f:S/.rd/.html/}
.endfor
.endif
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_EXAMPLESDIR}/pdflib/ja
.for f in ${EXAMPLES_EN}
${INSTALL_DATA} ${WRKSRC}/sample/${f} ${RUBY_EXAMPLESDIR}/pdflib/
.endfor
.for f in ${EXAMPLES_JA}
${INSTALL_DATA} ${WRKSRC}/sample/${f} ${RUBY_EXAMPLESDIR}/pdflib/ja/
.endfor
${MKDIR} ${RUBY_DOCDIR}/pdflib/ja
.for f in ${DOCS_EN}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/pdflib/
.endfor
.for f in ${DOCS_JA}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/pdflib/ja/
.endfor
.endif
.include <bsd.port.mk>
|