- Switch to USES=localbase
- Fix build with clang 6 - Cosmetic fixes
This commit is contained in:
parent
c42413aa97
commit
509edf59ed
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=474087
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user