diff -urNd lang/ficl.orig/Makefile lang/ficl/Makefile --- lang/ficl.orig/Makefile 2018-11-03 07:29:22.344572000 +0000 +++ lang/ficl/Makefile 2018-11-04 10:41:19.139540000 +0000 @@ -3,7 +3,7 @@ PORTNAME= ficl PORTVERSION= 4.1.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= lang MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-all/${PORTNAME}${PORTVERSION:C/([[:digit:]]+\.[[:digit:]]+)\.0/\1/} @@ -15,10 +15,12 @@ LICENSE_TEXT= Description of the license can be obtained from the following URL: http://ficl.sourceforge.net/license.html LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -OPTIONS_DEFINE= DOCS +ONLY_FOR_ARCHS= amd64 i386 +ONLY_FOR_ARCHS_REASON= this port is not tested on anything other than amd64 and i386 -ONLY_FOR_ARCHS= i386 amd64 -ONLY_FOR_ARCHS_REASON= this port is not tested on anything other than i386 and amd64 +OPTIONS_DEFINE= API3 DOCS MINI +API3_DESC= Compatible with Ficl 3 API +MINI_DESC= Smallest possible Ficl interpreter USE_LDCONFIG= YES @@ -32,6 +34,18 @@ PORTDOCS= * PORTDATA= * +post-patch: + ${REINPLACE_CMD} "/FICL_PLATFORM_OS/s!unix!${OPSYS}!; /FICL_PLATFORM_ARCHITECTURE/s!unknown!${ARCH}!" ${WRKSRC}/ficlplatform/unix.h + +post-patch-API3-on: + ${ECHO_CMD} '#define FICL_WANT_COMPATIBILITY (1)' >> ${WRKSRC}/ficllocal.h + +post-patch-API3-off: + ${ECHO_CMD} '#define FICL_WANT_COMPATIBILITY (0)' >> ${WRKSRC}/ficllocal.h + +post-patch-MINI-on: + ${ECHO_CMD} '#define FICL_WANT_MINIMAL (1)' >> ${WRKSRC}/ficllocal.h + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}*.h ${STAGEDIR}${PREFIX}/include