Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 2013 10:18:00 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r319202 - head/multimedia/avbin
Message-ID:  <201305271018.r4RAI0xL039764@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Mon May 27 10:17:59 2013
New Revision: 319202
URL: http://svnweb.freebsd.org/changeset/ports/319202

Log:
  Fix build with clang

Modified:
  head/multimedia/avbin/Makefile

Modified: head/multimedia/avbin/Makefile
==============================================================================
--- head/multimedia/avbin/Makefile	Mon May 27 10:15:47 2013	(r319201)
+++ head/multimedia/avbin/Makefile	Mon May 27 10:17:59 2013	(r319202)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305271018.r4RAI0xL039764>