1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/lang/yarv/Makefile

67 lines
1.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: yarv
# Date created: 24 Jul 2006
# Whom: Jun Mukai aka jmuk <mukai@jmuk.org>
#
# $FreeBSD$
#
PORTNAME= yarv
PORTVERSION= 0.4.1
CATEGORIES= lang ruby
MASTER_SITES= http://www.atdot.net/yarv/
DIST_SUBDIR= ruby
MAINTAINER= mukai@jmuk.org
COMMENT= Yet Another Ruby Virtual-machine
USE_GCC= 4.0+
USE_LDCONFIG= yes
USE_OPENSSL= yes
USE_RUBY= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} --program-suffix=20 \
--enable-shared --with-openssl-include=${OPENSSLINC}
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" LIBS="${PTHREAD_LIBS}"
OPTIONS= DEBUG "Enable debugging information" off \
THREADS "Enable threading support" off
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64"
BROKEN= does not build
.endif
.if ${OSVERSION} >= 400014
CONFIGURE_ARGS+=--enable-ipv6
.if ${OSVERSION} < 500000
CONFIGURE_ARGS+=--enable-wide-getaddrinfo
.endif
.endif
.if defined(NOPORTDOCS)
INSTALL_TARGET= install-nodoc
PLIST_SUB+= PORTSDOCS="@comment "
.else
INSTALL_TARGET= install
PLIST_SUB+= PORTSDOCS=""
.endif
.if defined(WITH_DEBUG)
CFLAGS+= -g
STRIP= # none
.endif
.if defined(WITH_THREADS)
CONFIGURE_ARGS+=--enable-pthread
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}+pthreads
.else
CONFIGURE_ARGS+=--disable-pthread
.endif
test:
@(cd ${WRKSRC}; ${MAKE} test)
.include <bsd.port.post.mk>