1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-07 11:49:40 +00:00
Alexey Dokuchaev 1b90a9d903 - Unbreak the build on Tier-2 systems (PowerPC and SPARC)
- Define LICENSE and move PROJECTHOST where it logically belongs
- Propagate available SIMD support down to the compiler (x86 only)
- Do not enforce -O3; update/improve `x-generate-plist' target
- Provide a better port description text while I am here

Tested on:	local Mac mini G4 (powerpc), flame (sparc64)
2015-09-09 17:26:13 +00:00

47 lines
1.1 KiB
Makefile

# 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
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \
libonig.so:${PORTSDIR}/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>