aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/l-smash/Makefile
blob: bda0bc9841d2f695eb6120b4504d3d61b47ab507 (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
# $FreeBSD$

PORTNAME=   l-smash
PORTVERSION=    2.9.1
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' \
        ${WRKSRC}/configure
    @${REINPLACE_CMD} -e '/SHARED/,/^$$/ { /STRIP/s/-x //; }' \
        ${WRKSRC}/${MAKEFILE}

.include <bsd.port.mk>