2000-10-21 19:29:01 +00:00
|
|
|
# New ports collection makefile for: gforth
|
|
|
|
# Date created: 12 October 2000
|
|
|
|
# Whom: Cyrille Lefevre <clefevre@citeweb.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gforth
|
2011-12-11 17:17:01 +00:00
|
|
|
PORTVERSION= 0.7.0
|
2000-10-21 19:29:01 +00:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= gforth
|
|
|
|
|
2011-12-11 17:17:01 +00:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2003-02-21 12:35:09 +00:00
|
|
|
COMMENT= Fast and portable Forth system
|
2000-10-21 19:29:01 +00:00
|
|
|
|
2011-12-11 17:17:01 +00:00
|
|
|
LIB_DEPENDS= ffi:${PORTSDIR}/devel/libffi
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/avcall.h:${PORTSDIR}/devel/ffcall
|
|
|
|
|
2000-10-21 19:29:01 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2011-12-11 17:17:01 +00:00
|
|
|
CFLAGS+= -fno-reorder-blocks -fno-inline
|
2006-07-25 11:50:32 +00:00
|
|
|
USE_GMAKE= yes
|
2011-12-11 17:17:01 +00:00
|
|
|
USE_AUTOTOOLS= libtool libltdl
|
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/gforth/${PORTVERSION}/libcc-named
|
2011-12-30 20:06:57 +00:00
|
|
|
ALL_TARGET= kernel/version.fs more info
|
2011-12-13 21:42:13 +00:00
|
|
|
MAKE_JOBS_UNSAFE=yes
|
2006-07-25 11:50:32 +00:00
|
|
|
|
2006-10-21 13:08:53 +00:00
|
|
|
STRIP= #none
|
|
|
|
|
2004-03-17 20:03:17 +00:00
|
|
|
PLIST_SUB= PORTVERSION="${PORTVERSION}" \
|
|
|
|
WORDSIZE=${WORDSIZE} BYTEORDER=${BYTEORDER}
|
2000-10-21 19:29:01 +00:00
|
|
|
|
2006-07-25 11:50:32 +00:00
|
|
|
DOC_FILES= AUTHORS BUGS Benchres COPYING COPYING.DOC \
|
|
|
|
INSTALL INSTALL.BINDIST NEWS README \
|
|
|
|
NEWS.vmgen README.vmgen ToDo
|
|
|
|
|
2000-10-21 19:29:01 +00:00
|
|
|
MAN1= gforth.1
|
2005-12-04 10:06:24 +00:00
|
|
|
INFO= gforth vmgen
|
2006-07-25 11:50:32 +00:00
|
|
|
PORTDOCS= *
|
2000-10-21 19:29:01 +00:00
|
|
|
|
2006-07-25 11:50:32 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2001-03-23 03:05:35 +00:00
|
|
|
|
2012-06-17 21:14:36 +00:00
|
|
|
.if ${OSVERSION} < 800000
|
|
|
|
BROKEN= Does not build on FreeBSD < 8.x
|
|
|
|
.endif
|
|
|
|
|
2010-10-10 02:32:50 +00:00
|
|
|
.if ${ARCH} == i386 || ${ARCH} == "powerpc"
|
2004-03-17 20:03:17 +00:00
|
|
|
WORDSIZE=32
|
|
|
|
.else
|
|
|
|
WORDSIZE=64
|
|
|
|
.endif
|
|
|
|
|
2010-10-10 02:32:50 +00:00
|
|
|
.if ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
|
2004-03-17 20:03:17 +00:00
|
|
|
BYTEORDER=b
|
|
|
|
.else
|
|
|
|
BYTEORDER=l
|
|
|
|
.endif
|
|
|
|
|
2011-12-11 17:17:01 +00:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} 's:@CC@:& -I${LOCALBASE}/include -L${LOCALBASE}/lib:' \
|
|
|
|
${WRKSRC}/envos.fs.in
|
2012-01-07 16:07:10 +00:00
|
|
|
${REINPLACE_CMD} '/ checkone/d' ${WRKSRC}/Makefile.in
|
2011-12-11 17:17:01 +00:00
|
|
|
|
|
|
|
post-install: install-doc remove-empty-files remove-empty-dirs
|
2001-03-23 03:05:35 +00:00
|
|
|
|
2003-05-06 08:53:15 +00:00
|
|
|
install-doc:
|
2003-12-12 12:21:56 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-05-06 08:53:15 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2003-12-15 06:57:15 +00:00
|
|
|
.for filename in ${DOC_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${filename} ${DOCSDIR}
|
2001-03-23 03:05:35 +00:00
|
|
|
.endfor
|
2003-05-06 08:53:15 +00:00
|
|
|
.endif
|
2001-03-23 03:05:35 +00:00
|
|
|
|
2006-07-25 11:50:32 +00:00
|
|
|
# Remove unused file
|
2001-03-23 03:05:35 +00:00
|
|
|
remove-empty-files:
|
2006-07-25 11:50:32 +00:00
|
|
|
@${RM} -f ${DATADIR}/site-forth/siteinit.fs
|
2001-03-23 03:05:35 +00:00
|
|
|
|
2006-07-25 11:50:32 +00:00
|
|
|
# Remove unused directories
|
2001-03-23 03:05:35 +00:00
|
|
|
remove-empty-dirs:
|
2006-07-25 11:50:32 +00:00
|
|
|
@${FIND} -d ${DATADIR}/${PORTVERSION}/arch/ -type d -empty -delete
|
2003-05-06 08:53:15 +00:00
|
|
|
|
2006-07-25 11:50:32 +00:00
|
|
|
.include <bsd.port.post.mk>
|