summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/ruby-tk/Makefile
blob: 6cf0fed4418c6fb183fbf782c8a7d52659f4272e (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
# New ports collection makefile for:	ruby-tk
# Date created:		15 March 1999
# Whom:			Yasuhiro Fukuma <yasuf@big.or.jp>
#
# $FreeBSD$
#

PORTNAME=	tk
PORTVERSION=	${RUBY_VERSION}
CATEGORIES+=	x11-toolkits ruby tk${TK_VERSION}
MASTER_SITES=	${MASTER_SITE_RUBY}
MASTER_SITE_SUBDIR=	${RUBY_VER}
DISTNAME=	ruby-${PORTVERSION}
DIST_SUBDIR=	ruby

MAINTAINER?=	yasuf@bsdclub.org

RUN_DEPENDS=	${RUBY_ARCHLIBDIR}/tcltklib.so:${PORTSDIR}/${TCLTKLIB_CATEGORY}/ruby-tcltklib

WRKSRC=		${WRKDIR}/${DISTNAME}/ext/tk

USE_RUBY=	yes
USE_RUBY_EXTCONF=	yes

TK_VERSION?=	82
.if defined(WITH_TCLTK_JP)
TCLTKLIB_CATEGORY?=	japanese
.else
TCLTKLIB_CATEGORY?=	lang
.endif

.include <bsd.port.pre.mk>

.if defined(PKGNAMEPREFIX)
PKGNAMEPREFIX:=	${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
.else
PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
.endif

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${RUBY_EXAMPLESDIR}/tk
	${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/tk/
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud