summaryrefslogtreecommitdiff
path: root/lang/gforth/Makefile
diff options
context:
space:
mode:
authorJohan van Selst <johans@FreeBSD.org>2011-12-11 17:17:01 +0000
committerJohan van Selst <johans@FreeBSD.org>2011-12-11 17:17:01 +0000
commited159cd4eb0cee7eecf5ce2caa97ebaff34385fe (patch)
tree9ff8932ce7684032bb22c574583a9f1f31fe12e7 /lang/gforth/Makefile
parent- Update to 0.110 (diff)
- Update GNU Forth to 0.7.0
- Remove patches (and autoconf run) that are no longer needed - Fix build with ffcall and libffi (requires libtool, libltdl) - Remove emacs config file for now (will try and fix this soon) - Adopt port Feature safe: yes
Notes
Notes: svn path=/head/; revision=287190
Diffstat (limited to 'lang/gforth/Makefile')
-rw-r--r--lang/gforth/Makefile37
1 files changed, 13 insertions, 24 deletions
diff --git a/lang/gforth/Makefile b/lang/gforth/Makefile
index 36370159ab8c..f4f190fd4f32 100644
--- a/lang/gforth/Makefile
+++ b/lang/gforth/Makefile
@@ -6,32 +6,29 @@
#
PORTNAME= gforth
-PORTVERSION= 0.6.2
-PORTREVISION= 3
+PORTVERSION= 0.7.0
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= gforth
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= johans@FreeBSD.org
COMMENT= Fast and portable Forth system
+LIB_DEPENDS= ffi:${PORTSDIR}/devel/libffi
+BUILD_DEPENDS= ${LOCALBASE}/include/avcall.h:${PORTSDIR}/devel/ffcall
+
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-CFLAGS+= -I${LOCALBASE}/include
+CFLAGS+= -fno-reorder-blocks -fno-inline
USE_GMAKE= yes
+USE_AUTOTOOLS= libtool libltdl
+USE_LDCONFIG= ${PREFIX}/lib/gforth/${PORTVERSION}/libcc-named
ALL_TARGET= all info
-USE_EMACS= yes
-EMACS_NO_BUILD_DEPENDS= yes
-EMACS_NO_RUN_DEPENDS= yes
-OPTIONS= FFCALL "Use ffcall" on
-
-CFLAGS+= -fno-reorder-blocks -fno-inline
STRIP= #none
PLIST_SUB= PORTVERSION="${PORTVERSION}" \
- EMACS_DIR="${EMACS_SITE_LISPDIR}" \
WORDSIZE=${WORDSIZE} BYTEORDER=${BYTEORDER}
DOC_FILES= AUTHORS BUGS Benchres COPYING COPYING.DOC \
@@ -44,14 +41,6 @@ PORTDOCS= *
.include <bsd.port.pre.mk>
-.if !defined(WITHOUT_FFCALL)
-BUILD_DEPENDS= ${LOCALBASE}/include/avcall.h:${PORTSDIR}/devel/ffcall
-.endif
-
-.if ${ARCH} == "amd64" || ${ARCH} == "sparc64"
-BROKEN= Does not compile
-.endif
-
.if ${ARCH} == i386 || ${ARCH} == "powerpc"
WORDSIZE=32
.else
@@ -64,7 +53,11 @@ BYTEORDER=b
BYTEORDER=l
.endif
-post-install: install-doc install-el remove-empty-files remove-empty-dirs
+post-patch:
+ ${REINPLACE_CMD} 's:@CC@:& -I${LOCALBASE}/include -L${LOCALBASE}/lib:' \
+ ${WRKSRC}/envos.fs.in
+
+post-install: install-doc remove-empty-files remove-empty-dirs
install-doc:
.if !defined(NOPORTDOCS)
@@ -74,10 +67,6 @@ install-doc:
.endfor
.endif
-# Install Emacs syntax file
-install-el:
- @${INSTALL_DATA} ${WRKSRC}/gforth.el ${PREFIX}/${EMACS_SITE_LISPDIR}
-
# Remove unused file
remove-empty-files:
@${RM} -f ${DATADIR}/site-forth/siteinit.fs