View | Details | Raw Unified | Return to bug 187304
Collapse All | Expand All

(-)Makefile (-3 / +13 lines)
Lines 13-19 Link Here
13
LICENSE=	BSD
13
LICENSE=	BSD
14
LICENSE_FILE=	${WRKSRC}/LICENSE
14
LICENSE_FILE=	${WRKSRC}/LICENSE
15
15
16
BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash \
16
BUILD_DEPENDS=	${SHELL}:${PORTSDIR}/shells/${SHELL} \
17
		yasm:${PORTSDIR}/devel/yasm
17
		yasm:${PORTSDIR}/devel/yasm
18
18
19
USES=		gmake perl5
19
USES=		gmake perl5
Lines 22-32 Link Here
22
USE_PERL5=	build
22
USE_PERL5=	build
23
USE_LDCONFIG=	yes
23
USE_LDCONFIG=	yes
24
24
25
OPTIONS_DEFINE=	DEBUG POSTPROC RUNTIME THREADS SHARED
25
OPTIONS_DEFINE=	DEBUG POSTPROC RUNTIME THREADS SHARED EXAMPLES
26
OPTIONS_DEFAULT=	POSTPROC RUNTIME THREADS SHARED
26
OPTIONS_DEFAULT=	POSTPROC RUNTIME THREADS SHARED
27
POSTPROC_DESC=	Enable postprocessing
27
POSTPROC_DESC=	Enable postprocessing
28
RUNTIME_DESC=	Enable runtime CPU detection
28
RUNTIME_DESC=	Enable runtime CPU detection
29
SHARED_DESC=	Enable shared-library support
29
SHARED_DESC=	Enable shared-library support
30
EXAMPLES_DESC=	Build and/or install examples (requires Bash)
30
31
31
WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
32
WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
32
ALL_TARGET=
33
ALL_TARGET=
Lines 46-54 Link Here
46
RUNTIME_CONFIGURE_ON=	--enable-runtime-cpu-detect
47
RUNTIME_CONFIGURE_ON=	--enable-runtime-cpu-detect
47
THREADS_CONFIGURE_OFF=	--disable-multithread
48
THREADS_CONFIGURE_OFF=	--disable-multithread
48
SHARED_CONFIGURE_ON=	--enable-shared
49
SHARED_CONFIGURE_ON=	--enable-shared
50
EXAMPLES_CONFIGURE_OFF=	--disable-examples
49
51
50
.include <bsd.port.options.mk>
52
.include <bsd.port.options.mk>
51
53
54
.if ${PORT_OPTIONS:MEXAMPLES}
55
SHELL=		bash
56
.elif exists(${LOCALBASE}/bin/zsh)
57
SHELL=		zsh
58
.else
59
SHELL=		bash
60
.endif
61
52
.if ${OSVERSION}  < 900000
62
.if ${OSVERSION}  < 900000
53
.if ${ARCH} == "amd64"
63
.if ${ARCH} == "amd64"
54
USE_GCC=	yes
64
USE_GCC=	yes
Lines 85-91 Link Here
85
	@${REINPLACE_CMD} -e 's|%%DESTDIR%%|${STAGEDIR}|g' \
95
	@${REINPLACE_CMD} -e 's|%%DESTDIR%%|${STAGEDIR}|g' \
86
	       	${WRKSRC}/build/make/Makefile ${WRKSRC}/libs.mk
96
	       	${WRKSRC}/build/make/Makefile ${WRKSRC}/libs.mk
87
	@${GREP} -Rl '^#!/bin/bash' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} \
97
	@${GREP} -Rl '^#!/bin/bash' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} \
88
		-e 's,#!/bin/bash,#!/usr/bin/env bash,g'
98
		-e 's,#!/bin/bash,#!/usr/bin/env ${SHELL},g'
89
	@${GREP} -Rl -- '-l\?pthread' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} -E \
99
	@${GREP} -Rl -- '-l\?pthread' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} -E \
90
		-e 's/-l?pthread/${PTHREAD_LIBS}/g'
100
		-e 's/-l?pthread/${PTHREAD_LIBS}/g'

Return to bug 187304