mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
88c67cd38c
- Patch libtool so it uses the same library version specification as on Darwin, Linux and other systems. Given the version current:revision:age a library will be given the extension .so.major.age.revision with major equal to current-age. Before libtool would use .so.current on FreeBSD. - Patch libtoolize to remove two cases of umask 0 that caused libltdl files to be copied world writable (--ltdl option) - Let USES=libtool patch this new version correctly - Adjust all ports with USES=libtool:build and bump PORTREVISION on their dependent ports if a library version changed PR: 194068 Exp-run by: antoine Approved by: portmgr (antoine)
80 lines
1.8 KiB
Makefile
80 lines
1.8 KiB
Makefile
# Created by: Cyrille Lefevre <clefevre@citeweb.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gforth
|
|
PORTVERSION= 0.7.3
|
|
PORTREVISION= 3
|
|
CATEGORIES= lang
|
|
MASTER_SITES= http://www.complang.tuwien.ac.at/forth/gforth/ \
|
|
GNU
|
|
|
|
MAINTAINER= johans@FreeBSD.org
|
|
COMMENT= Fast and portable Forth system
|
|
|
|
LIB_DEPENDS= libffi.so.6:${PORTSDIR}/devel/libffi \
|
|
libltdl.so:${PORTSDIR}/devel/libltdl
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/avcall.h:${PORTSDIR}/devel/ffcall
|
|
|
|
GNU_CONFIGURE= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LIBS+= -L${LOCALBASE}/lib
|
|
CONFIGURE_ENV+= GFORTHHIST=${WRKSRC}
|
|
MAKE_ENV+= GFORTHHIST=${WRKSRC}
|
|
USES= gmake libtool:build makeinfo
|
|
USE_GCC= any
|
|
USE_LDCONFIG= ${PREFIX}/lib/gforth/${PORTVERSION}/libcc-named
|
|
ALL_TARGET= kernel/version.fs more info
|
|
MAKE_JOBS_UNSAFE=yes
|
|
|
|
STRIP= #none
|
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION} \
|
|
WORDSIZE=${WORDSIZE} BYTEORDER=${BYTEORDER}
|
|
|
|
PORTDOCS= AUTHORS BUGS Benchres COPYING COPYING.DOC \
|
|
INSTALL INSTALL.BINDIST NEWS README \
|
|
NEWS.vmgen README.vmgen ToDo
|
|
|
|
INFO= gforth vmgen
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == i386 || ${ARCH} == powerpc
|
|
WORDSIZE=32
|
|
.else
|
|
WORDSIZE=64
|
|
.endif
|
|
|
|
.if ${ARCH} == powerpc || ${ARCH} == sparc64
|
|
BYTEORDER=b
|
|
.else
|
|
BYTEORDER=l
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} 's:@CC@:& -I${LOCALBASE}/include -L${LOCALBASE}/lib:' \
|
|
${WRKSRC}/envos.fs.in
|
|
${REINPLACE_CMD} '/ checkone/d' ${WRKSRC}/Makefile.in
|
|
|
|
post-install: install-doc remove-empty-files remove-empty-dirs
|
|
|
|
install-doc:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
. for filename in ${PORTDOCS}
|
|
@${INSTALL_DATA} ${WRKSRC}/${filename} ${STAGEDIR}${DOCSDIR}
|
|
. endfor
|
|
.endif
|
|
|
|
# Remove unused file
|
|
remove-empty-files:
|
|
@${RM} -f ${STAGEDIR}${DATADIR}/site-forth/siteinit.fs
|
|
|
|
# Remove unused directories
|
|
remove-empty-dirs:
|
|
@${FIND} -d ${STAGEDIR}${DATADIR}/${PORTVERSION}/arch/ -type d -empty -delete
|
|
|
|
.include <bsd.port.post.mk>
|