2000-10-21 21:29:01 +02:00
|
|
|
# New ports collection makefile for: gforth
|
|
|
|
# Date created: 12 October 2000
|
|
|
|
# Whom: Cyrille Lefevre <clefevre@citeweb.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gforth
|
2003-05-06 10:53:15 +02:00
|
|
|
PORTVERSION= 0.6.1
|
2004-03-17 21:03:17 +01:00
|
|
|
PORTREVISION= 2
|
2000-10-21 21:29:01 +02:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= gforth
|
|
|
|
|
2005-12-02 03:05:39 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 13:35:09 +01:00
|
|
|
COMMENT= Fast and portable Forth system
|
2000-10-21 21:29:01 +02:00
|
|
|
|
2004-03-17 21:03:17 +01:00
|
|
|
# BROKEN= 0.6.2 runtime does Segmentation Fault at compilation time !
|
|
|
|
# so, no update is planned right now... sorry.
|
|
|
|
|
|
|
|
#ONLY_FOR_ARCHS= i386 amd64 ia64
|
2003-12-15 07:57:15 +01:00
|
|
|
|
2001-03-23 04:05:35 +01:00
|
|
|
# Global variables
|
|
|
|
#
|
|
|
|
|
2000-10-21 21:29:01 +02:00
|
|
|
STRIP= #none
|
2002-06-24 06:44:17 +02:00
|
|
|
USE_REINPLACE= yes
|
2000-10-21 21:29:01 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2001-03-23 04:05:35 +01:00
|
|
|
USE_GMAKE= yes
|
2004-03-17 21:03:17 +01:00
|
|
|
CONFIGURE_ENV= CFLAGS=${CFLAGS:N-O*:N-f*}
|
|
|
|
MAKE_ENV= CFLAGS=${CFLAGS:N-O*:N-f*}
|
2001-03-23 04:05:35 +01:00
|
|
|
ALL_TARGET= all info
|
2004-03-17 21:03:17 +01:00
|
|
|
PLIST_SUB= PORTVERSION="${PORTVERSION}" \
|
|
|
|
EMACS_DIR="${EMACS_DIR:S,^${PREFIX}/,,}" \
|
|
|
|
FORTH_DIR="${FORTH_DIR:S,^${PREFIX}/,,}" \
|
|
|
|
LIB_DIR="${LIB_DIR:S,^${PREFIX}/,,}" \
|
|
|
|
WORDSIZE=${WORDSIZE} BYTEORDER=${BYTEORDER}
|
2000-10-21 21:29:01 +02:00
|
|
|
|
|
|
|
MAN1= gforth.1
|
2005-12-04 11:06:24 +01:00
|
|
|
INFO= gforth vmgen
|
2000-10-21 21:29:01 +02:00
|
|
|
|
2001-03-23 04:05:35 +01:00
|
|
|
# Local variables
|
|
|
|
#
|
|
|
|
|
2005-04-12 05:26:56 +02:00
|
|
|
.if ${MACHINE_ARCH} == i386
|
2004-03-17 21:03:17 +01:00
|
|
|
WORDSIZE=32
|
|
|
|
.else
|
|
|
|
WORDSIZE=64
|
|
|
|
.endif
|
|
|
|
|
2005-04-12 05:26:56 +02:00
|
|
|
.if ${MACHINE_ARCH} == sparc64
|
2004-03-17 21:03:17 +01:00
|
|
|
BYTEORDER=b
|
|
|
|
.else
|
|
|
|
BYTEORDER=l
|
|
|
|
.endif
|
|
|
|
|
2003-05-06 10:53:15 +02:00
|
|
|
DOC_FILES= AUTHORS BUGS Benchres COPYING COPYING.DOC \
|
|
|
|
INSTALL INSTALL.BINDIST NEWS README \
|
|
|
|
NEWS.vmgen README.vmgen ToDo
|
2001-03-23 04:05:35 +01:00
|
|
|
|
2004-03-17 21:03:17 +01:00
|
|
|
LIB_DIR= ${PREFIX}/lib/${PKGBASE}
|
|
|
|
|
2001-03-23 04:05:35 +01:00
|
|
|
EMACS_FILES= gforth.el
|
|
|
|
EMACS_DIR= ${PREFIX}/share/emacs/site-lisp
|
|
|
|
|
|
|
|
EMPTY_FILES= siteinit.fs
|
2001-07-10 15:54:22 +02:00
|
|
|
FORTH_DIR= ${DATADIR}/site-forth
|
2001-03-23 04:05:35 +01:00
|
|
|
|
2004-03-17 21:03:17 +01:00
|
|
|
EMPTY_DIRS= generic hppa ia64 m68k power sparc
|
|
|
|
EMPTY_DIRS+= 4stack 6502 8086 avr c165 h8 misc sharc shboom
|
2001-07-10 15:54:22 +02:00
|
|
|
ARCH_DIR= ${DATADIR}/${PORTVERSION}/arch
|
2001-03-23 04:05:35 +01:00
|
|
|
|
|
|
|
# Post-extract
|
|
|
|
#
|
|
|
|
|
|
|
|
post-extract: remove-info-files
|
|
|
|
|
|
|
|
remove-info-files:
|
2003-05-06 10:53:15 +02:00
|
|
|
@${RM} -f ${WRKSRC}/doc/*.info*
|
2001-03-23 04:05:35 +01:00
|
|
|
|
|
|
|
# Post-patch
|
|
|
|
#
|
|
|
|
|
|
|
|
post-patch: patch-makefiles
|
|
|
|
|
|
|
|
patch-makefiles:
|
2002-06-24 06:44:17 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|makeinfo|makeinfo --no-split|g' \
|
2001-03-23 04:05:35 +01:00
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
|
|
|
|
#
|
|
|
|
# Post-install
|
|
|
|
#
|
|
|
|
|
2003-05-06 10:53:15 +02:00
|
|
|
post-install: install-doc install-el remove-empty-files remove-empty-dirs
|
2001-03-23 04:05:35 +01:00
|
|
|
|
2003-05-06 10:53:15 +02:00
|
|
|
install-doc:
|
2003-12-12 13:21:56 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-05-06 10:53:15 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2003-12-15 07:57:15 +01:00
|
|
|
.for filename in ${DOC_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${filename} ${DOCSDIR}
|
2001-03-23 04:05:35 +01:00
|
|
|
.endfor
|
2003-05-06 10:53:15 +02:00
|
|
|
.endif
|
2001-03-23 04:05:35 +01:00
|
|
|
|
|
|
|
install-el:
|
2003-12-15 07:57:15 +01:00
|
|
|
.for filename in ${EMACS_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${filename} ${EMACS_DIR}
|
2001-03-23 04:05:35 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
remove-empty-files:
|
2003-12-15 07:57:15 +01:00
|
|
|
.for filename in ${EMPTY_FILES}
|
|
|
|
@${RM} -f ${FORTH_DIR}/${filename}
|
2001-03-23 04:05:35 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
remove-empty-dirs:
|
|
|
|
.for dir in ${EMPTY_DIRS}
|
|
|
|
@${RMDIR} ${ARCH_DIR}/${dir}
|
|
|
|
.endfor
|
2000-10-21 21:29:01 +02:00
|
|
|
|
2004-08-17 12:28:21 +02:00
|
|
|
.include <bsd.port.mk>
|
2003-05-06 10:53:15 +02:00
|
|
|
|
|
|
|
CONFIGURE_TARGET:= --build=${CONFIGURE_TARGET}
|