summaryrefslogtreecommitdiff
path: root/package/ruby/Makefile
blob: b9ccceb8f5de582b465598d76ff26c79958fa960 (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
# $Id$
#-
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		ruby
PKG_VERSION:=		1.9.1-p129
PKG_RELEASE:=		1
PKG_MD5SUM:=		c71f413514ee6341c627be2957023a5c
MASTER_SITES:=		ftp://ftp.ruby-lang.org/pub/ruby/1.9/

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,RUBY,ruby,${PKG_VERSION}-${PKG_RELEASE}))

MAKE_FILE:=		GNUmakefile
XAKE_FLAGS+=		optflags='' debugflags=''
CONFIGURE_STYLE:=	gnu
CONFIGURE_ARGS+=	--enable-wide-getaddrinfo
CONFIGURE_ENV+=         ac_cv_func_setpgrp_void=yes
BUILD_STYLE:=		auto
INSTALL_STYLE:=		auto
INSTALL_TARGET:=	install-nodoc

# Enable some ruby extension / options
post-configure:
	#echo "option nodynamic" >> ${WRKBUILD}/ext/Setup
	echo "socket" >> ${WRKBUILD}/ext/Setup

post-install:
	rm -rf ${WRKINST}/usr/lib/site_ruby
	find ${WRKINST}/usr -name "*.h" -delete
	cp -a ${WRKINST}/usr ${IDIR_RUBY}

include ${TOPDIR}/mk/pkg-bottom.mk