aboutsummaryrefslogtreecommitdiffstats
path: root/lang/mosh/Makefile
blob: e4344b0021d5158893aa2071cffcb5a6b75ccb2a (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
# Created by: Katsuji ISHIKAWA <katsuji.ishikawa@gmail.com>
# $FreeBSD$

PORTNAME=   mosh
PORTVERSION=    0.2.7
PORTREVISION=   2
CATEGORIES= lang
MASTER_SITES=   GOOGLE_CODE
PROJECTHOST=    mosh-scheme
PKGNAMESUFFIX=  -scheme

MAINTAINER= mjt@cltn.org
COMMENT=    Fast R6RS Scheme interpreter

LICENSE=    BSD2CLAUSE

BROKEN=     Unfetchable (google code has gone away)
DEPRECATED= Unfetchable for more than six months (google code has gone away)
EXPIRATION_DATE=    2017-04-30

LIB_DEPENDS=    libgmp.so:math/gmp \
        libonig.so:devel/oniguruma5

CONFLICTS_INSTALL=  mosh-1.[0-9].*

USES=       gmake
USE_OPENSSL=    yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --datadir=${PREFIX}/lib

CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

.if ${MACHINE_CPU:Msse3}
CONFIGURE_ENV+= MOSH_OPTS="-msse3 -mfpmath=sse"
.elif ${MACHINE_CPU:Msse2}
CONFIGURE_ENV+= MOSH_OPTS="-msse2 -mfpmath=sse"
.elif ${MACHINE_CPU:Msse}
CONFIGURE_ENV+= MOSH_OPTS="-msse -mfpmath=sse"
.elif ${MACHINE_CPU:Mmmx}
CONFIGURE_ENV+= MOSH_OPTS="-mmmx"
.endif

x-generate-plist: stage
    @(${FIND} ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/man -name \
        '*mosh*' ; ${FIND} ${STAGEDIR}${PREFIX}/lib/mosh -type f) \
        | ${SORT} | ${SED} -e 's,^${STAGEDIR}${PREFIX}/,,' \
        > pkg-plist.new

.include <bsd.port.mk>