e32afb6fea
first component is now a package name+version/pattern, no more executable/patchname/whatnot. While there, introduce BUILD_USES_MSGFMT as shorthand to pull in devel/gettext unless /usr/bin/msgfmt exists (i.e. on post-1.5 -current). Patch by Alistair Crooks <agc@netbsd.org>
48 lines
1.4 KiB
Makefile
48 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.20 2001/03/27 03:20:03 hubertf Exp $
|
|
#
|
|
|
|
DISTNAME= ruby-1.4.6
|
|
CATEGORIES= lang
|
|
MASTER_SITES= ftp://ftp.TokyoNet.AD.JP/pub/misc/ruby/ \
|
|
ftp://ftp.iij.ad.jp/pub/lang/ruby/ \
|
|
ftp://ftp.netlab.co.jp/pub/lang/ruby/ \
|
|
ftp://blade.nagaokaut.ac.jp/pub/lang/ruby/ \
|
|
ftp://ftp.krnet.ne.jp/pub/ruby/ \
|
|
ftp://ftp.mirror.nucba.ac.jp/mirror/ruby/ \
|
|
http://mirror.nucba.ac.jp/mirror/ruby/
|
|
|
|
MAINTAINER= sakamoto@netbsd.org
|
|
HOMEPAGE= http://www.ruby-lang.org/
|
|
COMMENT= the Object-Oriented Script Language
|
|
|
|
BUILD_DEPENDS= bison-*:../../devel/bison
|
|
DEPENDS+= gdbm>=1.7.3:../../databases/gdbm
|
|
DEPENDS+= readline>=4.0:../../devel/readline
|
|
|
|
BUILD_DEFS+= USE_INET6
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --enable-shared
|
|
.if defined(USE_INET6) && ${USE_INET6} == YES
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
.endif
|
|
MAKE_ENV+= XLDFLAGS="${LDFLAGS}" DLDFLAGS="-L${LOCALBASE}/lib -R${LOCALBASE}/lib -L${X11BASE}/lib -R${X11BASE}/lib"
|
|
|
|
PLIST_SUBST= RUBY_VERSION=1.4
|
|
|
|
post-patch:
|
|
${RM} -f ${WRKSRC}/ext/tcltklib/MANIFEST
|
|
${RM} -f ${WRKSRC}/ext/tk/MANIFEST
|
|
|
|
post-install:
|
|
strip ${PREFIX}/bin/ruby
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ruby
|
|
${INSTALL_DATA} ${WRKSRC}/sample/* ${PREFIX}/share/examples/ruby
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ruby/misc
|
|
${INSTALL_DATA} ${WRKSRC}/misc/* ${PREFIX}/share/examples/ruby/misc
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|