mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
78 lines
2.0 KiB
Makefile
78 lines
2.0 KiB
Makefile
# Created by: Ashish SHUKLA <ashish@FreeBSD.org>
|
|
|
|
PORTNAME= chez-scheme
|
|
PORTVERSION= 9.5.2
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= lang
|
|
MASTER_SITES= http://distfiles.pirateparty.in/ashish/:boot \
|
|
LOCAL/ashish:boot
|
|
DISTFILES= ${PORTNAME}-boot-a6fb-${PORTVERSION}.tar.xz:boot \
|
|
${PORTNAME}-boot-i3fb-${PORTVERSION}.tar.xz:boot
|
|
|
|
MAINTAINER= ashish@FreeBSD.org
|
|
COMMENT= Chez Scheme system
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
|
|
LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid
|
|
|
|
USES= gmake iconv:lib ncurses
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= cisco
|
|
GH_PROJECT= ChezScheme
|
|
GH_TUPLE= nanopass:nanopass-framework-scheme:v1.9:nanopass/nanopass \
|
|
madler:zlib:v1.2.11:zlib/zlib \
|
|
dybvig:stex:v1.2.1:stex/stex
|
|
|
|
OPTIONS_DEFAULT= X11
|
|
OPTIONS_DEFINE= X11
|
|
|
|
HAS_CONFIGURE= yes
|
|
ALL_TARGET= build
|
|
CONFLICTS_INSTALL= petite-chez-[0-9]*
|
|
STRIP_FILES= bin/petite bin/${PORTNAME} bin/${PORTNAME}-script
|
|
CHEZ_LIBDIR=lib/csv${PORTVERSION}
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib -luuid
|
|
CONFIGURE_ARGS= --installprefix=${PREFIX} \
|
|
--temproot=${STAGEDIR} \
|
|
--installschemename=${PORTNAME} \
|
|
--installscriptname=${PORTNAME}-script
|
|
PLIST_SUB= PORTNAME=${PORTNAME} \
|
|
CHEZ_ARCH=${CHEZ_ARCH} \
|
|
CHEZ_LIBDIR=${CHEZ_LIBDIR}
|
|
X11_USES= xorg
|
|
X11_USE= XORG=x11
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if (${ARCH} == "amd64")
|
|
CONFIGURE_ARGS+= --threads --64 -m=a6fb
|
|
CHEZ_ARCH= a6fb
|
|
.elif (${ARCH} == "i386")
|
|
CONFIGURE_ARGS+= --threads --32 -m=i3fb
|
|
CHEZ_ARCH= i3fb
|
|
.endif
|
|
|
|
post-patch:
|
|
${LN} -sf ${WRKDIR}/${CHEZ_ARCH} ${WRKSRC}/boot/
|
|
${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \
|
|
-e 's,/usr/local,${LOCALBASE},g' \
|
|
-e 's,-liconv,${ICONV_LIB},g' ${WRKSRC}/c/Mf-${CHEZ_ARCH}
|
|
|
|
pre-build-X11-off:
|
|
${ECHO_CMD} '#undef LIBX11' >>${WRKSRC}/c/version.h
|
|
|
|
post-install:
|
|
.for f in ${STRIP_FILES}
|
|
@${CHMOD} +w ${STAGEDIR}${PREFIX}/${f}
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${f}
|
|
@${CHMOD} -w ${STAGEDIR}${PREFIX}/${f}
|
|
.endfor
|
|
@${LN} -sf scheme.boot ${STAGEDIR}${PREFIX}/${CHEZ_LIBDIR}/${CHEZ_ARCH}/${PORTNAME}-script.boot
|
|
|
|
.include <bsd.port.post.mk>
|