aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ruby-libexif/Makefile
blob: 395254d29154ed9b9f967869087d7e2898705695 (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
# New ports collection makefile for:    ruby-libexif
# Date created:     6 October 2002
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   libexif
PORTVERSION=    0.1
CATEGORIES= graphics ruby
MASTER_SITES=   http://tam.0xfa.com/ruby-libexif/pkg/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DISTNAME=   ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR=    ruby

MAINTAINER= knu@FreeBSD.org

LIB_DEPENDS=    exif.8:${PORTSDIR}/graphics/libexif

USE_RUBY=   yes
USE_RUBY_EXTCONF=   yes
USE_RUBY_RDTOOL=    yes

WRKSRC=     ${WRKDIR}/ruby-${PORTNAME}
INSTALL_TARGET= site-install

DOCS_EN=    README  exif.rd.en  exif.en.html
DOCS_JA=        exif.rd.ja  exif.ja.html

.if !defined(NOPORTDOCS)
post-build:
.for lang in en ja
    cd ${WRKSRC}; ${RUBY_RD2} exif.rd.${lang} > exif.${lang}.html
.endfor
.endif

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${RUBY_MODDOCDIR}/ja
.for f in ${DOCS_EN}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.for f in ${DOCS_JA}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
.endfor
.endif

.include <bsd.port.mk>