Index: head/lang/qscheme/Makefile =================================================================== --- head/lang/qscheme/Makefile (revision 444468) +++ head/lang/qscheme/Makefile (revision 444469) @@ -1,54 +1,41 @@ # Created by: erik@smluc.org # $FreeBSD$ PORTNAME= qscheme PORTVERSION= 0.5.1 -PORTREVISION= 9 +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 -BUILD_DEPENDS= ${LOCALBASE}/lib/libavcall.a:devel/ffcall \ - ${LOCALBASE}/lib/libpcre.a:devel/pcre \ - ${LOCALBASE}/lib/libgmp.a:math/gmp -LIB_DEPENDS= libgetline.so:devel/libgetline +LIB_DEPENDS= libavcall.so:devel/ffcall \ + libgmp.so:math/gmp \ + libpcre.so:devel/pcre -USES= gmake perl5 shebangfix +USES= gmake localbase perl5 shebangfix USE_PERL5= build SHEBANG_FILES= mkoptable -USE_GCC= any GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-pcre-dir=${LOCALBASE}/lib \ - --with-pcre-inc=${LOCALBASE}/include \ - --with-avcall-dir=${LOCALBASE}/lib \ - --with-avcall-inc=${LOCALBASE}/include \ - --with-gmp-dir=${LOCALBASE}/lib \ - --with-gmp-inc=${LOCALBASE}/include -CFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -lgetline +CFLAGS+= -fPIC +MAKE_ARGS= PCRE_LIB="-L${LOCALBASE}/lib -lpcre" PLIST_SUB= VERSION="${PORTVERSION}" PORTDOCS= * - -# because it uses static pcre lib, which is compiled without -fPIC. -# pcre problem likely. -BROKEN_amd64= Does not build on ${ARCH} -BROKEN_sparc64= Does not build on ${ARCH} 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 Index: head/lang/qscheme/files/patch-asm.c =================================================================== --- head/lang/qscheme/files/patch-asm.c (nonexistent) +++ head/lang/qscheme/files/patch-asm.c (revision 444469) @@ -0,0 +1,29 @@ +Fix build with clang + +asm.c:1343:21: error: function definition is not allowed here + SOBJ prim(char *x) { + ^ +--- asm.c.orig 2017-06-24 19:10:34 UTC ++++ asm.c +@@ -1334,16 +1334,17 @@ static SOBJ scm_compile_quote(SOBJ icode, SOBJ argl, S + return(icode); + } + ++static SOBJ prim(char *x) { ++ int dummy; ++ return(SCM_SYM_VALUE(lookup_atom(scm_mkatom(x),NULL,&dummy,FALSE))); ++} ++ + /*-- KKK: should try to compile parial constant list */ + SOBJ backquotify(SOBJ ic, SOBJ l, SOBJ env, int level) + { + static SOBJ sym_cons, sym_append, sym_list2, sym_list2vec; + + if (sym_cons == NULL) { +- SOBJ prim(char *x) { +- int dummy; +- return(SCM_SYM_VALUE(lookup_atom(scm_mkatom(x),NULL,&dummy,FALSE))); +- } + sym_cons = prim("cons"); + sym_list2 = prim("list2"); + sym_append = prim("qq-append2"); Property changes on: head/lang/qscheme/files/patch-asm.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property