freebsd-ports/audio/id3lib/Makefile
Roman Bogorodskiy 332c216193 audio/id3lib: fix stack corruption bug
Add a patch to fix stack corruption bug when reading IDv3 tags
and VBR header information.

PR:		220374
Submitted by:	bob@eager.cx
Obtained from:	https://sourceforge.net/p/id3lib/bugs/189/
MFH:		2017Q3
Approved by:	maintainer timeout
2017-07-13 14:34:01 +00:00

31 lines
736 B
Makefile

# Created by: Roman Shterenzon <roman@xpert.com>
# $FreeBSD$
PORTNAME= id3lib
PORTVERSION= 3.8.3
PORTREVISION= 10
CATEGORIES= audio
MASTER_SITES= SF
MAINTAINER= kaeru@inigo-tech.com
COMMENT= Library for manipulating ID3v1/v1.1 and ID3v2 tags
GNU_CONFIGURE= yes
USES= iconv libtool
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
post-extract:
@${RM} -r ${WRKSRC}/zlib
post-patch:
@${REINPLACE_CMD} '/main/s/unsigned int/int/' \
${WRKSRC}/examples/demo_*.cpp
@${REINPLACE_CMD} 's/\(iomanip\)\.h/\1/' ${WRKSRC}/configure
@${REINPLACE_CMD} '/include.*/{ p; s//include <cstring>/; n;n;n; }' \
${WRKSRC}/include/id3/id3lib_strings.h \
${WRKSRC}/include/id3/writers.h
.include <bsd.port.mk>