aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ficl
diff options
context:
space:
mode:
authorrakuco <rakuco@FreeBSD.org>2014-01-05 23:43:27 +0800
committerrakuco <rakuco@FreeBSD.org>2014-01-05 23:43:27 +0800
commite1f03af1a1a6a4c4234d6a8783451ea0b0ee16aa (patch)
treed684e8c310c65daf41d68362bef45ae1763a80fe /lang/ficl
parent51291fbb6459881007781cedf339862a3c168422 (diff)
downloadfreebsd-ports-gnome-e1f03af1a1a6a4c4234d6a8783451ea0b0ee16aa.tar.gz
freebsd-ports-gnome-e1f03af1a1a6a4c4234d6a8783451ea0b0ee16aa.tar.zst
freebsd-ports-gnome-e1f03af1a1a6a4c4234d6a8783451ea0b0ee16aa.zip
- Update maintainer's email address
- Add stage support - Cleaning the warnings during compilation PR: ports/185489 Submitted by: Pavel I Volkov <pavelivolkov@gmail.com> (maintainer)
Diffstat (limited to 'lang/ficl')
-rw-r--r--lang/ficl/Makefile27
-rw-r--r--lang/ficl/files/patch-primitives.c20
2 files changed, 36 insertions, 11 deletions
diff --git a/lang/ficl/Makefile b/lang/ficl/Makefile
index 23514ee2aa40..d967b101c5d9 100644
--- a/lang/ficl/Makefile
+++ b/lang/ficl/Makefile
@@ -6,7 +6,7 @@ PORTVERSION= 4.1.0
CATEGORIES= lang
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-all/${PORTNAME}${PORTVERSION:C/([[:digit:]]+\.[[:digit:]]+)\.0/\1/}
-MAINTAINER= pavelivolkov@googlemail.com
+MAINTAINER= pavelivolkov@gmail.com
COMMENT= Forth Inspired Command Language
LICENSE= unknown
@@ -14,6 +14,8 @@ LICENSE_NAME= BSD-style
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
+
MAKE_JOBS_UNSAFE= YES
ONLY_FOR_ARCHS= i386 amd64
@@ -27,17 +29,20 @@ PLIST_FILES= bin/${PORTNAME} lib/lib${PORTNAME}.so lib/lib${PORTNAME}.so.${PORTV
PORTDOCS= *
-NO_STAGE= yes
+.include <bsd.port.options.mk>
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- ${INSTALL_LIB} ${WRKSRC}/lib${PORTNAME}.a ${PREFIX}/lib
- ${INSTALL_LIB} ${WRKSRC}/lib${PORTNAME}.so.${PORTVERSION} ${PREFIX}/lib
- cd ${PREFIX}/lib && ${LN} -sf lib${PORTNAME}.so.${PORTVERSION} lib${PORTNAME}.so
-.if !defined(NOPORTDOCS)
- ${INSTALL_DATA} -d -m 0755 ${DOCSDIR} ${DOCSDIR}/articles ${DOCSDIR}/graphics
- ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.ico ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/articles/* ${DOCSDIR}/articles
- ${INSTALL_DATA} ${WRKSRC}/doc/graphics/* ${DOCSDIR}/graphics
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_LIB} ${WRKSRC}/lib${PORTNAME}.a ${STAGEDIR}${PREFIX}/lib
+ ${INSTALL_LIB} ${WRKSRC}/lib${PORTNAME}.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib
+ cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf lib${PORTNAME}.so.${PORTVERSION} lib${PORTNAME}.so
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/articles ${STAGEDIR}${DOCSDIR}/graphics; \
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.ico ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/articles/* ${STAGEDIR}${DOCSDIR}/articles
+ ${INSTALL_DATA} ${WRKSRC}/doc/graphics/* ${STAGEDIR}${DOCSDIR}/graphics
.endif
.include <bsd.port.mk>
diff --git a/lang/ficl/files/patch-primitives.c b/lang/ficl/files/patch-primitives.c
new file mode 100644
index 000000000000..5dedf4e1836c
--- /dev/null
+++ b/lang/ficl/files/patch-primitives.c
@@ -0,0 +1,20 @@
+--- primitives.c.orig 2014-01-05 15:25:11.000000000 +0400
++++ primitives.c 2014-01-05 16:00:30.000000000 +0400
+@@ -487,7 +487,7 @@
+
+ ficlStackPushPointer(vm->dataStack, bufferStart);
+ ficlStackPushInteger(vm->dataStack, buffer - bufferStart);
+- ficlStackPushInteger(vm->dataStack, append && FICL_TRUE);
++ ficlStackPushInteger(vm->dataStack, FICL_BOOL(!append));
+ }
+
+
+@@ -1350,7 +1350,7 @@
+
+ static void ficlPrimitiveIsObject(ficlVm *vm)
+ {
+- int flag;
++ ficlInteger flag;
+ ficlWord *word = (ficlWord *)ficlStackPopPointer(vm->dataStack);
+
+ flag = ((word != NULL) && (word->flags & FICL_WORD_OBJECT)) ? FICL_TRUE : FICL_FALSE;