blob: 2624aa690329f0683919cf05fb2989ef4d9a5b04 (
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
|
# $FreeBSD$
PORTNAME= qtruby
PORTVERSION= ${KDE4_VERSION}
CATEGORIES= devel kde ruby
MASTER_SITES= KDE/${KDE4_BRANCH}/${PORTVERSION}/src
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= KDE/${PORTVERSION}
MAINTAINER= kde@FreeBSD.org
COMMENT= Ruby bindings for Qt
LIB_DEPENDS= libqwt.so:${PORTSDIR}/x11-toolkits/qwt5 \
libqscintilla2.so:${PORTSDIR}/devel/qscintilla2
USE_KDE4= kdehier kdeprefix smokeqt
USE_QT4= corelib dbus declarative gui network phonon script webkit xml \
qmake_build moc_build uic_build rcc_build
USE_RUBY= yes
USE_XZ= yes
USES= cmake:outsource
USE_LDCONFIG= yes
SUB_FILES= ruby-kdebindings-env.sh pkg-message
SUB_LIST+= RUBY_SITELIBDIR=${RUBY_SITELIBDIR} \
RUBY_SITEARCHLIBDIR=${RUBY_SITEARCHLIBDIR}
CMAKE_ARGS+= -DRUBY_LIBRARY=${LOCALBASE}/lib/lib${RUBY_NAME}.so \
-DRUBY_INCLUDE_PATH=${LOCALBASE}/lib/ruby/${RUBY_VER}/${RUBY_ARCH} \
-DCUSTOM_RUBY_SITE_LIB_DIR=${RUBY_SITELIBDIR} \
-DCUSTOM_RUBY_SITE_ARCH_DIR=${RUBY_SITEARCHLIBDIR}
post-patch:
${REINPLACE_CMD} -e 's|QWT_FOUND|Qwt5_FOUND|g' \
${WRKSRC}/src/CMakeLists.txt
${REINPLACE_CMD} -e 's|share/qtruby4/cmake|lib/cmake/qtruby4|g' \
${WRKSRC}/cmake/CMakeLists.txt \
${WRKSRC}/src/CMakeLists.txt
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/env
${INSTALL_SCRIPT} ${WRKDIR}/ruby-kdebindings-env.sh ${STAGEDIR}${PREFIX}/env
.include <bsd.port.mk>
|