aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ruby-sdl/Makefile
blob: 617f60dc087a213fcfb0075b76c2137ffefb2c65 (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
# New ports collection makefile for:    Ruby/SDL
# Date created:     27 Mar 2001
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   sdl
PORTVERSION=    0.4
PORTREVISION=   1
CATEGORIES= devel graphics audio ruby
MASTER_SITES=   http://www.kmc.kyoto-u.ac.jp/~ohai/rubysdl/
PKGNAMEPREFIX=  ${RUBY_PKGNAMEPREFIX}
DISTNAME=   ruby${PORTNAME}-${PORTVERSION}
DIST_SUBDIR=    ruby

MAINTAINER= knu@FreeBSD.org

LIB_DEPENDS=    SDL-1.1.3:${PORTSDIR}/devel/sdl12 \
        SDL_image.10:${PORTSDIR}/graphics/sdl_image \
        SDL_ttf.2:${PORTSDIR}/graphics/sdl_ttf \
        SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer

USE_RUBY=   yes
USE_RUBY_EXTCONF=   yes
.if !defined(NOPORTDOCS)
USE_RUBY_RD=    yes
.endif

CONFIGURE_ARGS= --with-sdl-config="sdl11-config"
INSTALL_TARGET= site-install

RD_DOCS_EN= rubysdl_doc.en.rd
RD_DOCS_JA= rubysdl_doc.rd

DOCS_EN=    README.en ${RD_DOCS_EN} ${RD_DOCS_EN:S/.rd$/.html/}
DOCS_JA=    README.ja ${RD_DOCS_JA} ${RD_DOCS_JA:S/.rd$/.html/}

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}/${PORTNAME}
    ${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/
    ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
.for f in ${DOCS_EN}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
.endfor
.for f in ${DOCS_JA}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/
.endfor
.endif

.include <bsd.port.mk>