mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
63 lines
1.7 KiB
Makefile
63 lines
1.7 KiB
Makefile
# Created by: Kimura Fuyuki <fuyuki@hadaly.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= stklos
|
|
PORTVERSION= 1.10
|
|
PORTREVISION= 2
|
|
CATEGORIES= lang scheme
|
|
MASTER_SITES= http://www.stklos.net/download/ \
|
|
ftp://kaolin.essi.fr/pub/STklos/
|
|
|
|
MAINTAINER= vmagerya@gmail.com
|
|
COMMENT= The successor of the STk Scheme interpreter
|
|
|
|
LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp \
|
|
pcre.3:${PORTSDIR}/devel/pcre \
|
|
ffi:${PORTSDIR}/devel/libffi \
|
|
gc-threaded.1:${PORTSDIR}/devel/boehm-gc-threaded
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
USE_GMAKE= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
PLIST_SUB= VERSION="${PORTVERSION}"
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-threads=posix
|
|
|
|
MAN1= stklos-compile.1 stklos-config.1 stklos-genlex.1 \
|
|
stklos-pkg.1 stklos.1
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 900000
|
|
BROKEN= does not build on FreeBSD 9.x - runaway process
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-lgc|-lgc-threaded|' \
|
|
-e 's|bdw-gc|bdw-gc-threaded|' \
|
|
-e 's|-lpthread|${PTHREAD_LIBS}|' \
|
|
${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|share/man|man|' \
|
|
-e 's|-@VERSION@||' \
|
|
-e 's|^man_MANS = |man_MANS = stklos-pkg.1 |' \
|
|
${WRKSRC}/doc/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|; make|; $$(MAKE)|' \
|
|
${WRKSRC}/doc/Makefile.in ${WRKSRC}/doc/Makefile.am \
|
|
${WRKSRC}/lib/Makefile.in ${WRKSRC}/lib/Makefile.am
|
|
|
|
.if !${PORT_OPTIONS:MDOCS}
|
|
@${REINPLACE_CMD} -E -e 's/^(install-data-am:).*/\1 install-man install-schemeDATA/' \
|
|
-e '/install-docpdfDATA install-man install-schemeDATA/d' \
|
|
${WRKSRC}/doc/Makefile.in
|
|
.endif
|
|
|
|
regression-test: build
|
|
(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
|
|
${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
|
|
|
|
.include <bsd.port.post.mk>
|