1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/multimedia/l-smash/Makefile

36 lines
806 B
Makefile

# $FreeBSD$
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>