mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-31 10:46:16 +00:00
Fix build with clang
This commit is contained in:
parent
d94900c472
commit
053c0b408f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=319202
@ -1,9 +1,5 @@
|
||||
# New ports collection makefile for: avbin
|
||||
# Date created: 03 Apr 2009
|
||||
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
||||
#
|
||||
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= avbin
|
||||
PORTVERSION= 7
|
||||
@ -32,7 +28,7 @@ CFLAGS+= -fPIC
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC} && \
|
||||
${CC} ${CFLAGS} -shared -soname ${LIBNAME} -o ${LIBNAME} \
|
||||
${CC} ${CFLAGS} -shared -Wl,-soname,${LIBNAME} -o ${LIBNAME} \
|
||||
src/avbin.c -Iinclude -I${LOCALBASE}/include \
|
||||
-DAVBIN_VERSION=${PORTVERSION} -DFFMPEG_REVISION=0 \
|
||||
-L${LOCALBASE}/lib -lavcodec -lavformat
|
||||
@ -41,7 +37,7 @@ do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/${LIBNAME} ${PREFIX}/lib
|
||||
${INSTALL_DATA} ${WRKSRC}/include/avbin.h ${PREFIX}/include
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${MKDIR} ${DOCSDIR}
|
||||
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} '*' ${DOCSDIR}/
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user