summaryrefslogtreecommitdiff
path: root/multimedia/l-smash/Makefile
blob: bb395ba0985268aee2c73cb53e781326fa4104f0 (plain)
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

PORTNAME=	l-smash
PORTVERSION=	2.14.5
DISTVERSIONPREFIX=	v
CATEGORIES=	multimedia

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	MP4 muxer and other tools

LICENSE=	ISCL
LICENSE_FILE=	${WRKSRC}/LICENSE

USE_GITHUB=	yes

USES=		gmake pathfix
PATHFIX_MAKEFILEIN=	Makefile
HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--prefix="${PREFIX}" \
		--cc="${CC}" \
		--extra-cflags="${CPPFLAGS} ${CFLAGS}" \
		--extra-ldflags="${LDFLAGS}" \
		--extra-libs="${LIBS}" \
		--enable-shared
MAKE_ARGS=	STRIP="${STRIP_CMD}"
USE_LDCONFIG=	yes

post-patch:
	@${REINPLACE_CMD} -e 's/-Os //; /=.*-fexcess-precision/d' \
		-e '/sed/{s/-i/& ""/; s/i \\/&\\"$$'"'\\\n'"'"/; s/%"/&$$'"'\\\012'"'/;}' \
		${WRKSRC}/configure
	@${REINPLACE_CMD} -e '/SHARED/,/^$$/ { /STRIP/s/-x //; }' \
		${WRKSRC}/${MAKEFILE}

.include <bsd.port.mk>