337b8bde3e
id3edit is a command line editor to edit and debug ID3v2 tags (ID3v2.3.0 & ID3v2.4.0 of mp3 files with full Unicode support. Its main features are: - Show all frames of the ID3 tag (colloquial "mp3 tags") - Get/Add/Edit specific frames (see Name Definitions) - Get/Add artworks (Support for jpeg and png. Create an issue if you need more types.) - Remove frames or the whole tag - Print hex-dump of a specific frame - You can overwrite the input file or write to a new path - It is made to handle invalid tags and headers and debug them - Can print a detailed list of all frames with comments when they are invalid - Supports Unicode correctly! - It works from command line - Support for ID3v2.3.0 (most common) and ID3v2.4.0 (latest) - All encodings supported (ISO 8859-1, UTF-16 with BOM, UTF-16BE, UTF-8) - Partial support of extended header: CRC feature supported!
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
PORTNAME= id3edit
|
|
PORTVERSION= 2.2.1
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= audio
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= CLI tool to edit and debug ID3v2 tags of mp3 files
|
|
WWW= https://github.com/rstemmer/id3edit
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libprinthex.so:devel/libprinthex
|
|
|
|
USES= iconv localbase:ldflags
|
|
|
|
CFLAGS+= -DVERSION="\"${PORTVERSION}\"" -Wno-multichar
|
|
LDFLAGS+= -lprinthex -lz
|
|
|
|
PLIST_FILES= bin/id3dump \
|
|
bin/id3edit \
|
|
bin/id3frames \
|
|
bin/id3show
|
|
|
|
FILES= crc32 extheader frameflags id3v2 id3v2frame main rawfile \
|
|
encoding/crc encoding/size encoding/text
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= rstemmer
|
|
|
|
do-build:
|
|
.for file in ${FILES}
|
|
@${CC} ${CFLAGS} -I${WRKSRC} -c ${WRKSRC}/${file}.c -o ${WRKSRC}/${file}.o
|
|
.endfor
|
|
@${CC} ${LDFLAGS} ${FILES:C|.*|${WRKSRC}/&.o|} -o ${WRKSRC}/id3edit
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/id3dump ${STAGEDIR}${PREFIX}/bin/id3dump
|
|
${INSTALL_PROGRAM} ${WRKSRC}/id3edit ${STAGEDIR}${PREFIX}/bin/id3edit
|
|
${INSTALL_SCRIPT} ${WRKSRC}/id3frames ${STAGEDIR}${PREFIX}/bin/id3frames
|
|
${INSTALL_SCRIPT} ${WRKSRC}/id3show ${STAGEDIR}${PREFIX}/bin/id3show
|
|
|
|
.include <bsd.port.mk>
|