ports/lang/gforth/Makefile
Martin Wilke cc23ff42d8 - Unbreak for 7.X build
PR:		ports/101800
Submitted by:	Stanislav Sedov <ssedov(at)mbsd.msk.ru>
Approved by:	krion (mentor)
2006-08-12 18:29:25 +00:00

85 lines
1.7 KiB
Makefile

# New ports collection makefile for: gforth
# Date created: 12 October 2000
# Whom: Cyrille Lefevre <clefevre@citeweb.net>
#
# $FreeBSD$
#
PORTNAME= gforth
PORTVERSION= 0.6.2
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= gforth
MAINTAINER= ssedov@mbsd.msk.ru
COMMENT= Fast and portable Forth system
STRIP= #none
GNU_CONFIGURE= yes
CONFIGURE_ENV= CFLAGS=${CFLAGS:N-O*:N-f*}
USE_GMAKE= yes
ALL_TARGET= all info
USE_GNOME= gnometarget
USE_EMACS= yes
EMACS_PORT_NAME?= emacs22
EMACS_NO_BUILD_DEPENDS= yes
EMACS_NO_RUN_DEPENDS= yes
PLIST_SUB= PORTVERSION="${PORTVERSION}" \
EMACS_DIR="${EMACS_SITE_LISPDIR}" \
WORDSIZE=${WORDSIZE} BYTEORDER=${BYTEORDER}
DOC_FILES= AUTHORS BUGS Benchres COPYING COPYING.DOC \
INSTALL INSTALL.BINDIST NEWS README \
NEWS.vmgen README.vmgen ToDo
MAN1= gforth.1
INFO= gforth vmgen
PORTDOCS= *
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 700000
BROKEN= does not build on pointyhat, report if you have similar problems
.endif
.if ${ARCH} == i386
WORDSIZE=32
.else
WORDSIZE=64
.endif
.if ${ARCH} == sparc64
BYTEORDER=b
.else
BYTEORDER=l
.endif
.if ${OSVERSION} < 500000
BROKEN= Does not compile on 4.x
.endif
post-install: install-doc install-el remove-empty-files remove-empty-dirs
install-doc:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for filename in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/${filename} ${DOCSDIR}
.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
# Remove unused directories
remove-empty-dirs:
@${FIND} -d ${DATADIR}/${PORTVERSION}/arch/ -type d -empty -delete
.include <bsd.port.post.mk>