freebsd-ports/lang/qscheme/Makefile
Tobias Kortkamp c3168d40f9 - Fix build with clang and remove USE_GCC
- Link dynamically with libavcall, libpcre and libgmp and fix build on
  amd64 (and optimistically sparc64 too)
- Remove the devel/libgetline dependency and don't link with libgetline:
  While libgetline provides getline() it has an entirely different
  signature than getline(3).  This make the fgetline builtin function
  unusable and causes e.g. the cat.scm example to segfault.

Approved by:	mat (mentor)
Differential Revision:	https://reviews.freebsd.org/D11352
2017-06-27 15:34:17 +00:00

41 lines
823 B
Makefile

# Created by: erik@smluc.org
# $FreeBSD$
PORTNAME= qscheme
PORTVERSION= 0.5.1
PORTREVISION= 10
CATEGORIES= lang scheme
MASTER_SITES= http://www.sof.ch/dan/qscheme/files/
MAINTAINER= ports@FreeBSD.org
COMMENT= Small and fast Scheme interpreter
LICENSE= GPLv2
LIB_DEPENDS= libavcall.so:devel/ffcall \
libgmp.so:math/gmp \
libpcre.so:devel/pcre
USES= gmake localbase perl5 shebangfix
USE_PERL5= build
SHEBANG_FILES= mkoptable
GNU_CONFIGURE= yes
CFLAGS+= -fPIC
MAKE_ARGS= PCRE_LIB="-L${LOCALBASE}/lib -lpcre"
PLIST_SUB= VERSION="${PORTVERSION}"
PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
's|-lpthread|-pthread| ; \
/SCM_DEFAULT_LIB_PATH/s|$$datadir|$$prefix/lib|' \
${WRKSRC}/configure
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/qscheme/*/*.so
.include <bsd.port.mk>