aboutsummaryrefslogtreecommitdiffstats
path: root/x11/ruby-kde/Makefile
blob: f446fc5f457b510b716e627ed14fed86d49e5584 (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
# New ports collection makefile for:    Ruby-kde
# Date created:     14 Aug 2000
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   kde
PORTVERSION=    0.12
CATEGORIES= x11 kde ruby
MASTER_SITES=   http://sfns.u-shizuoka-ken.ac.jp/geneng/horie_hp/ruby/
PKGNAMEPREFIX=  ruby-
DISTNAME=   ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
DIST_SUBDIR=    ruby

MAINTAINER= knu@FreeBSD.org

BUILD_DEPENDS=  ruby:${PORTSDIR}/lang/ruby
LIB_DEPENDS=    kdecore.${KDELIB_SHLIBVER}:${PORTSDIR}/x11/${KDE_PORTNAME}
RUN_DEPENDS=    ruby:${PORTSDIR}/lang/ruby \
        ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}/qt.rb:${PORTSDIR}/x11-toolkits/${RUBY_QT_PORTNAME}

INSTALL_TARGET= site-install
CONFIGURE_ARGS= --with-x-dir=${X11BASE} \
        --with-qt-include=${X11BASE}/include/X11/qt \
        --with-qt-lib=${X11BASE}/lib \
        --with-kde-dir=${LOCALBASE}

WRKSRC=     ${WRKDIR}/${PORTNAME}
PLIST_SUB=  RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"

RUBY?=      ${LOCALBASE}/bin/ruby
RUBY_VER?=  1.4
RUBY_ARCH?= ${ARCH}-freebsd${OSREL}

.if defined(WITH_I18N)
QTLIB=      qti18n
KDELIB_SHLIBVER=    2
KDE_PORTNAME=   kdelibs11-i18n
RUBY_QT_PORTNAME=   ruby-qt-i18n
CONFIGURE_ARGS+=    --with-qti18n=qti18n
.else
QTLIB=      qt
KDELIB_SHLIBVER=    3
KDE_PORTNAME=   kdelibs11
RUBY_QT_PORTNAME=   ruby-qt
.endif

do-configure:
    @cd ${WRKSRC}; \
    ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/examples/ruby/kde
    ${CP} -R ${WRKSRC}/examples/ ${PREFIX}/share/examples/ruby/kde/
    ${MKDIR} ${PREFIX}/share/doc/ruby/kde/ja
    ${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/doc/ruby/kde/
    ${INSTALL_DATA} ${WRKSRC}/README.jp.txt ${PREFIX}/share/doc/ruby/kde/ja/
.endif

.include <bsd.port.mk>