2001-04-06 13:21:47 +02:00
|
|
|
# New ports collection makefile for: Ruby/Tgif
|
|
|
|
# Date created: 6 April 2001
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tgif
|
2001-04-08 10:54:49 +02:00
|
|
|
PORTVERSION= 20010408
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 12
|
2001-04-06 13:21:47 +02:00
|
|
|
CATEGORIES= graphics ruby
|
|
|
|
MASTER_SITES= http://www2s.biglobe.ne.jp/~Nori/ruby/dist/
|
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2001-04-08 15:47:21 +02:00
|
|
|
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}-2
|
2001-04-06 13:21:47 +02:00
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
2009-06-16 17:53:25 +02:00
|
|
|
MAINTAINER= ruby@FreeBSD.org
|
2003-02-18 06:20:09 +01:00
|
|
|
COMMENT= A Ruby extension library to draw Tgif graphics
|
2001-04-06 13:21:47 +02:00
|
|
|
|
2006-02-03 11:24:56 +01:00
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/${TGIF_PORT}:build \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
imake:${PORTSDIR}/devel/imake
|
2006-02-03 11:24:56 +01:00
|
|
|
|
|
|
|
# NB not USE_IMAKE; this is required for the tgif build but this
|
|
|
|
# port doesn't use it directly.
|
2001-04-06 13:21:47 +02:00
|
|
|
|
2004-02-04 05:36:30 +01:00
|
|
|
USE_GETTEXT= yes
|
2001-04-06 13:21:47 +02:00
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
|
|
|
|
2007-06-09 15:13:22 +02:00
|
|
|
TGIF_PORT= graphics/tgif
|
2001-04-06 13:21:47 +02:00
|
|
|
|
2001-04-08 15:47:21 +02:00
|
|
|
WRKSRC= ${WRKDIR}/ruby-${PORTNAME}-${PORTVERSION}
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ARGS= --with-x-dir="${LOCALBASE}" \
|
2002-03-30 13:12:53 +01:00
|
|
|
--with-ldflags=" `cd ${WRKSRC}/tgif; ${MAKE} -V LDOPTIONS -V LOCAL_LIBRARIES -V LDLIBS -V EXTRA_LOAD_FLAGS | paste -s -`"
|
2001-04-06 13:21:47 +02:00
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
|
|
|
|
DOCS_EN= README
|
|
|
|
DOCS_JA= ChangeLog.ja README.ja
|
|
|
|
|
2004-05-30 09:10:47 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-01-23 04:34:48 +01:00
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
|
|
BROKEN= Does not build on amd64 or ia64 (missing -fPIC)
|
2004-05-30 09:10:47 +02:00
|
|
|
.endif
|
|
|
|
|
2001-04-06 13:21:47 +02:00
|
|
|
post-extract:
|
2002-03-30 13:12:53 +01:00
|
|
|
${LN} -sf `cd ${PORTSDIR}/${TGIF_PORT}; ${MAKE} -V WRKSRC` ${WRKSRC}/tgif
|
2001-04-06 13:21:47 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${RUBY} -i -pe 'gsub %r|\.\./|, "tgif/"' ${WRKSRC}/extconf.rb ${WRKSRC}/*.c
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-06 23:08:30 +02:00
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}/ja
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/test??.rb ${RUBY_MODEXAMPLESDIR}/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/test??_ja.rb ${RUBY_MODEXAMPLESDIR}/ja/
|
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}/ja
|
2001-04-06 13:21:47 +02:00
|
|
|
.for f in ${DOCS_EN}
|
2002-10-06 23:08:30 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
2001-04-06 13:21:47 +02:00
|
|
|
.endfor
|
|
|
|
.for f in ${DOCS_JA}
|
2002-10-06 23:08:30 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
|
2001-04-06 13:21:47 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2004-05-30 09:10:47 +02:00
|
|
|
.include <bsd.port.post.mk>
|