svn commit: r474087 - head/audio/osalp

Dmitry Marakasov amdmi3 at FreeBSD.org
Sat Jul 7 14:14:07 UTC 2018


Author: amdmi3
Date: Sat Jul  7 14:14:06 2018
New Revision: 474087
URL: https://svnweb.freebsd.org/changeset/ports/474087

Log:
  - Switch to USES=localbase
  - Fix build with clang 6
  - Cosmetic fixes

Modified:
  head/audio/osalp/Makefile

Modified: head/audio/osalp/Makefile
==============================================================================
--- head/audio/osalp/Makefile	Sat Jul  7 13:52:59 2018	(r474086)
+++ head/audio/osalp/Makefile	Sat Jul  7 14:14:06 2018	(r474087)
@@ -14,13 +14,13 @@ RUN_DEPENDS=	mpg123:audio/mpg123
 LIB_DEPENDS=	libmp3lame.so:audio/lame \
 		libvorbis.so:audio/libvorbis
 
-USES=		libtool
+USES=		libtool localbase:ldflags
 GNU_CONFIGURE=	yes
-CFLAGS+=	-fPIC -DPIC
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
 CONFIGURE_ARGS=	--enable-all
 
+CFLAGS+=	-fPIC -DPIC
+CXXFLAGS+=	-Wno-c++11-narrowing
+
 USE_LDCONFIG=	yes
 
 PLIST_SUB=	VERSION=${PORTVERSION}
@@ -28,14 +28,14 @@ PLIST_SUB=	VERSION=${PORTVERSION}
 CONFLICTS=	libaudiofile-[0-9]*
 
 post-patch:
-	${FIND} ${WRKSRC} -name "*.cc" | ${XARGS} ${REINPLACE_CMD} -E \
+	@${FIND} ${WRKSRC} -name "*.cc" | ${XARGS} ${REINPLACE_CMD} -E \
 	    's|iostream.h|iostream|; \
 	     s|[[:space:]]cout| std::cout|g; \
 	     s|[[:space:]]endl| std::endl|g; \
 	     s|[[:space:]]cerr| std::cerr|g;'
 
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libaflib-${PORTVERSION}.so \
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libaflib-${PORTVERSION}.so \
 	    ${STAGEDIR}${PREFIX}/lib/aflib/lib*-${PORTVERSION}.so
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list