102 lines
3.1 KiB
Makefile
102 lines
3.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.13 2014/05/14 17:51:40 juanfra Exp $
|
|
|
|
BROKEN-hppa = error: struct Scheme_Cont has no member named buf (setjmpup.c)
|
|
|
|
SHARED_ONLY = Yes
|
|
ONLY_FOR_ARCHS = i386 amd64 hppa
|
|
|
|
COMMENT = multi-paradigm programming language
|
|
|
|
V = 6.0.1
|
|
PKGNAME = racket-$V
|
|
DISTNAME = racket-$V-src-builtpkgs
|
|
|
|
# Each new version of racket is incompatible with the previous one.
|
|
# Increase always the major number.
|
|
# http://article.gmane.org/gmane.comp.lang.racket.devel/9872
|
|
SHARED_LIBS += racket3m 2.0 # 6.0.1
|
|
|
|
CATEGORIES = lang
|
|
HOMEPAGE = http://racket-lang.org/
|
|
MAINTAINER = Juan Francisco Cantero Hurtado <juanfra@openbsd.org>
|
|
|
|
# LGPLv3
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MASTER_SITES = https://www.cs.utah.edu/plt/installers/${V}/ \
|
|
http://mirror.racket-lang.org/installers/${V}/ \
|
|
http://www.eecs.northwestern.edu/racket/${V}/ \
|
|
http://mirror.informatik.uni-tuebingen.de/mirror/racket/${V}/ \
|
|
http://racket.infogroep.be/${V}/ \
|
|
http://pre.racket-lang.org/release/installers/ \
|
|
http://pre.racket-lang.org/installers/ \
|
|
http://download.tuxfamily.org/jod/lang/racket/ \
|
|
ftp://download.tuxfamily.org/jod/lang/racket/
|
|
EXTRACT_SUFX = .tgz
|
|
|
|
MODULES += converters/libiconv
|
|
|
|
# http://docs.racket-lang.org/draw/libs.html
|
|
# http://docs.racket-lang.org/gui/libs.html
|
|
# Some deps are listed in the README, others in the doc and others
|
|
# are called by ffi.
|
|
LIB_DEPENDS = databases/iodbc,-main \
|
|
devel/libffi>=3.0.9p2 \
|
|
devel/libunique \
|
|
x11/gtkglext
|
|
BUILD_DEPENDS = devel/pango \
|
|
graphics/jpeg
|
|
RUN_DEPENDS = devel/desktop-file-utils
|
|
|
|
WANTLIB += c m pthread ffi iodbc unique-1.0 gtkglext-x11-1.0 gdkglext-x11-1.0
|
|
|
|
WRKDIST = ${WRKDIR}/racket-$V
|
|
WRKSRC = ${WRKDIST}/src
|
|
|
|
# The tests are installed from raco as a package
|
|
NO_TEST = Yes
|
|
SEPARATE_BUILD = Yes
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ARGS += ${CONFIGURE_SHARED} \
|
|
--enable-libffi \
|
|
--enable-gracket \
|
|
--enable-jit \
|
|
--enable-foreign \
|
|
--enable-float \
|
|
--enable-docs \
|
|
--enable-lt=${LIBTOOL}
|
|
# "backtrace" is expensive.
|
|
# http://article.gmane.org/gmane.comp.lang.racket.devel/6700
|
|
# "places" and "futures" require thread-local storage and atomic CAS
|
|
# http://article.gmane.org/gmane.comp.lang.racket.user/16723
|
|
CONFIGURE_ARGS += --disable-backtrace \
|
|
--disable-places \
|
|
--disable-futures
|
|
|
|
CONFIGURE_ENV = LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
|
|
CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
LIBracket3m_MAJOR=${LIBracket3m_VERSION:R} \
|
|
LIBracket3m_MINOR=${LIBracket3m_VERSION:E}
|
|
|
|
FLAVORS = debug
|
|
FLAVOR ?=
|
|
.if ${FLAVOR:Mdebug}
|
|
CONFIGURE_ARGS += --disable-strip \
|
|
--enable-noopt
|
|
.endif
|
|
|
|
post-install:
|
|
@mv ${WRKINST}/etc/racket ${PREFIX}/share/examples
|
|
|
|
# Since 5.3.4 if __SSE_MATH__ is defined (C_COMPILER_USES_SSE) and
|
|
# MZ_TRY_EXTFLONUMS enabled, MZ_LONG_DOUBLE (extflonum) is turned on. Also
|
|
# C_COMPILER_USES_SSE turn on MZ_USE_JIT_SSE.
|
|
# "-msse -mfpmath=sse" required by extflonum on i386.
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
|
|
CONFIGURE_ENV += CFLAGS="${CFLAGS} -msse -mfpmath=sse"
|
|
CONFIGURE_ARGS += --enable-extflonum
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|