48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.46 2015/03/08 16:30:37 taca Exp $
|
|
|
|
DISTNAME= ${RUBY_DISTNAME}
|
|
PKGNAME= ${RUBY_PKGPREFIX}-${RUBY_EXTNAME}-${RUBY_VERSION_FULL}
|
|
PKGREVISION= 4
|
|
RUBY_EXTNAME= tk
|
|
CATEGORIES= x11 ruby
|
|
MASTER_SITES= ${MASTER_SITE_RUBY}
|
|
|
|
MAINTAINER= taca@NetBSD.org
|
|
HOMEPAGE= ${RUBY_HOMEPAGE}
|
|
COMMENT= Ruby interface to the Tk widget set
|
|
|
|
RUBY_VERSION_SUPPORTED= 22 21 200 193 18
|
|
USE_LANGUAGES= c
|
|
USE_TOOLS+= pax
|
|
USE_RUBY_EXTCONF= yes
|
|
RUBY_EXTCONF_SUBDIRS= . tkutil
|
|
EXTRACT_ELEMENTS= ${RUBY_DISTNAME}/ext/tk
|
|
WRKSRC= ${RUBY_WRKSRC}/ext/tk
|
|
CONFIGURE_ARGS+= --with-X11-dir=${X11BASE:Q} \
|
|
--with-X11-lib=${BUILDLINK_PREFIX.libX11}/lib
|
|
|
|
REPLACE_RUBY= lib/tkextlib/pkg_checker.rb
|
|
REPLACE_RUBY_DIRS= sample
|
|
INSTALLATION_DIRS= ${RUBY_EG}/tk
|
|
|
|
post-extract:
|
|
${CHMOD} ${SHAREMODE} ${WRKSRC}/sample/tkextlib/tktable/tcllogo.gif
|
|
|
|
pre-install:
|
|
cd ${WRKSRC}; \
|
|
${FIND} . \( -name '*.bak' -o -name '*.orig' -o \
|
|
-name '*.orig_dist' \) -exec ${RM} -f {} \;
|
|
|
|
post-install:
|
|
cd ${WRKSRC}/sample; ${PAX} -rw . ${DESTDIR}${PREFIX}/${RUBY_EG}/tk
|
|
|
|
.include "../../lang/ruby/modules.mk"
|
|
.include "../../lang/ruby/Makefile.common"
|
|
.if ${RUBY_VER} == "18"
|
|
.include "../../lang/tcl85/buildlink3.mk"
|
|
.include "../../x11/tk85/buildlink3.mk"
|
|
.else
|
|
.include "../../lang/tcl/buildlink3.mk"
|
|
.include "../../x11/tk/buildlink3.mk"
|
|
.endif
|
|
.include "../../mk/bsd.pkg.mk"
|