blob: 2b7f8114137ed9bc03ab26fcd73537c17944d17b (
plain)
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
|
# New ports collection makefile for: ruby-gtk
# Date created: 19 April 1999
# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
#
# $FreeBSD$
#
PORTNAME= gtk
PORTVERSION= 0.23
CATEGORIES= x11-toolkits ruby
MASTER_SITES= http://www.ruby-lang.org/gtk/download/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= yasuf@bsdclub.org
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
USE_XLIB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
CONFIGURE_ARGS= ${GTK_CONFIG}
INSTALL_TARGET= site-install
.if defined(WITHOUT_IMLIB)
GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
.else
LIB_DEPENDS+= Imlib.5:${PORTSDIR}/graphics/imlib
GTK_CONFIG?= ${X11BASE}/bin/imlib-config
.endif
post-configure:
${PERL} -i -pe 's/\binstall\b/site-install/g' ${WRKSRC}/Makefile
post-install:
${INSTALL_DATA} ${WRKSRC}/lib/*.rb ${RUBY_SITELIBDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_EXAMPLESDIR}/gtk
${INSTALL_DATA} ${WRKSRC}/sample/*.rb ${RUBY_EXAMPLESDIR}/gtk
${MKDIR} ${RUBY_EXAMPLESDIR}/gtk/browser
${INSTALL_DATA} ${WRKSRC}/doc/*.rb ${RUBY_EXAMPLESDIR}/gtk/browser
.if !defined(NO_IMLIB)
${MKDIR} ${RUBY_EXAMPLESDIR}/gtk/gdkimlib
${INSTALL_DATA} ${WRKSRC}/sample/gdkimlib/*.rb ${RUBY_EXAMPLESDIR}/gtk/gdkimlib
.endif
${MKDIR} ${RUBY_DOCDIR}/gtk/ja
${INSTALL_DATA} ${WRKSRC}/doc/api/* ${RUBY_DOCDIR}/gtk
${INSTALL_DATA} ${WRKSRC}/doc/api-ja/* ${RUBY_DOCDIR}/gtk/ja
.endif
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
.include <bsd.port.post.mk>
|