blob: 02aa2c39bfef5166e948226cac196a06a6ce6345 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Created by: Ashish SHUKLA <ashish@FreeBSD.org>
# $FreeBSD$
PORTNAME= sagittarius
PORTVERSION= 0.8.8
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= https://bitbucket.org/ktakashi/sagittarius-scheme/downloads/ \
LOCAL/ashish
PKGNAMESUFFIX= -scheme
MAINTAINER= ashish@FreeBSD.org
COMMENT= R6RS/R7RS Scheme system
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/libffi.pc:devel/libffi
LIB_DEPENDS= libffi.so:devel/libffi \
libgc-threaded.so:devel/boehm-gc-threaded
USE_LDCONFIG= yes
USES= cmake pkgconfig
ONLY_FOR_ARCHS= amd64 i386
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= ODBC SIMD
PLIST_SUB= PORTNAME=sagittarius PORTVERSION=${PORTVERSION}
ODBC_LIB_DEPENDS= libiodbc.so:databases/libiodbc
ODBC_CMAKE_ON= -DODBC_INCLUDE_DIR:STRING=${LOCALBASE}/include/libiodbc
SIMD_CMAKE_BOOL= USE_SSE
OPTIONS_SUB= yes
.include <bsd.port.pre.mk>
.if ${ARCH}=="i386"
PLIST_ARCH= i386
USE_GCC= yes
.else
PLIST_ARCH= x86_64
.endif
PLIST_SUB+= PLIST_ARCH=${PLIST_ARCH}
pre-configure:
@${CC} ${CFLAGS} -o ${WRKDIR}/cpuid ${FILESDIR}/cpuid.c
@${REINPLACE_CMD} -e 's,cpuid,${WRKDIR}/cpuid,' ${WRKSRC}/cmake/FindSSE.cmake
post-patch-ODBC-off:
@${REINPLACE_CMD} -e '/odbc odbc/d' ${WRKSRC}/ext/CMakeLists.txt
post-install:
@${LN} -sf ${PREFIX}/bin/sagittarius ${STAGEDIR}${PREFIX}/bin/sash
.include <bsd.port.post.mk>
|