aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Phillips <matthew@matthewphillips.info>2024-02-07 07:47:49 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2024-02-08 16:57:39 +0000
commit9250636afac175988c15f82bb09f976ebd17c84b (patch)
tree696e7374d17f98fa289f4344903b2a816a1617ff
parent061a7bb000be4f4e3259f0346a62d8b9deb8a788 (diff)
downloadports-9250636afac175988c15f82bb09f976ebd17c84b.tar.gz
ports-9250636afac175988c15f82bb09f976ebd17c84b.zip
audio/cutmp3: update to 3.0.3
ChangeLog: https://github.com/tarjanm-movidius/cutmp3/releases/tag/v3.0.3 Submitter becomes maintainer for the first time. PR: 276780 Reported by: matthew@matthewphillips.info Reviewed by: diizzy@
-rw-r--r--audio/cutmp3/Makefile17
-rw-r--r--audio/cutmp3/distinfo5
-rw-r--r--audio/cutmp3/files/patch-Makefile54
3 files changed, 38 insertions, 38 deletions
diff --git a/audio/cutmp3/Makefile b/audio/cutmp3/Makefile
index 4e29ccddc72f..414f057d5357 100644
--- a/audio/cutmp3/Makefile
+++ b/audio/cutmp3/Makefile
@@ -1,20 +1,21 @@
PORTNAME= cutmp3
-PORTVERSION= 3.0.1
-PORTREVISION= 2
+DISTVERSIONPREFIX= v
+DISTVERSION= 3.0.3
CATEGORIES= audio
-MASTER_SITES= http://www.puchalla-online.de/ \
- http://mirror.mcx2.org/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= matthew@matthewphillips.info
COMMENT= Small and fast command line MP3 editor
-WWW= https://www.puchalla-online.de/cutmp3.html
+WWW= https://github.com/tarjanm-movidius/cutmp3
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
-USES= tar:bzip2 readline
+USES= readline
+USE_GITHUB= yes
+GH_ACCOUNT= tarjanm-movidius
-PLIST_FILES= bin/cutmp3 man/man1/cutmp3.1.gz
+PLIST_FILES= bin/cutmp3 \
+ share/man/man1/cutmp3.1.gz
PORTDOCS= README README.timetable USAGE
diff --git a/audio/cutmp3/distinfo b/audio/cutmp3/distinfo
index a7a814fecb38..6dc6f952d0c1 100644
--- a/audio/cutmp3/distinfo
+++ b/audio/cutmp3/distinfo
@@ -1,2 +1,3 @@
-SHA256 (cutmp3-3.0.1.tar.bz2) = 7dc97fe8511e099a09e7107e573bd619ed527ada61fb24692c3963499c5b91b5
-SIZE (cutmp3-3.0.1.tar.bz2) = 48167
+TIMESTAMP = 1706809820
+SHA256 (tarjanm-movidius-cutmp3-v3.0.3_GH0.tar.gz) = 7fde60cbf9c57b1697cb86f9f95d073dbabb4281df2a3899861e0bd1531cbd01
+SIZE (tarjanm-movidius-cutmp3-v3.0.3_GH0.tar.gz) = 55030
diff --git a/audio/cutmp3/files/patch-Makefile b/audio/cutmp3/files/patch-Makefile
index 01b95c0bda38..187f4273fda1 100644
--- a/audio/cutmp3/files/patch-Makefile
+++ b/audio/cutmp3/files/patch-Makefile
@@ -1,33 +1,33 @@
---- Makefile.orig 2015-07-13 10:22:29 UTC
+--- Makefile.orig 2024-02-04 18:59:38 UTC
+++ Makefile
-@@ -1,42 +1,37 @@
- NAME=cutmp3
- VERSION=3.0.1
--PREFIX=/usr
-+PREFIX?=/usr/local
+@@ -3,37 +3,34 @@ DATADIR=${PREFIX}/share
+ PREFIX?=/usr/local
BINDIR=${PREFIX}/bin
DATADIR=${PREFIX}/share
-MANDIR=${PREFIX}/share/man/man1
--DOCDIR=${DATADIR}/doc/${NAME}-${VERSION}
-+MANDIR=${PREFIX}/man/man1
-+DOCDIR=${DATADIR}/doc/${NAME}
++MANDIR=${DATADIR}/man/man1
+ DOCDIR=${DATADIR}/doc/${NAME}-${VERSION}
+-CFLAGS?=-Wall -Wformat-security -Wunused-result
++CFLAGS+=-Wall -Wformat-security -Wunused-result
+ #CFLAGS+=-DDEBUG
all:
-- @echo -e "\n\n*** You need readline-devel, ncurses-devel or similar to compile ${NAME} ***\n*** Maybe you want to try the binary on compile failures? ***\n\n"
-- gcc -O ${CFLAGS} -c mpglib.c
-- gcc -O ${CFLAGS} -c main.c
-- gcc main.o mpglib.o -o ${NAME} -lm -lreadline -lncurses
+ @echo -e "\n\n*** You need readline-devel, ncurses-devel or similar to compile ${NAME} ***\n*** Maybe you want to try the binary on compile failures? ***\n\n"
+- gcc -O2 ${CFLAGS} -c mpglib.c
+- gcc -O2 ${CFLAGS} -c main.c
+- gcc main.o mpglib.o -o ${NAME} -lm -lreadline
+ ${CC} ${CFLAGS} ${CPPFLAGS} -c mpglib.c
+ ${CC} ${CFLAGS} ${CPPFLAGS} -c main.c
-+ ${CC} ${CFLAGS} main.o mpglib.o -o ${NAME} ${LDFLAGS} -lm -lreadline -lncurses
++ ${CC} ${CFLAGS} main.o mpglib.o -o ${NAME} ${LDFLAGS} -lm -lreadline
+ #-lncurses
i386:
-- gcc -Wall -O -c mpglib.c
-- gcc -Wall -O -c main.c
-- gcc main.o mpglib.o -o ${NAME} -lm -lreadline -lncurses
-+ cc -Wall -O -c mpglib.c
-+ cc -Wall -O -c main.c
-+ cc main.o mpglib.o -o ${NAME} -lm -lreadline -lncurses
+- gcc -Wall -O2 -c mpglib.c
+- gcc -Wall -O2 -c main.c
+- gcc main.o mpglib.o -o ${NAME} -lm -lreadline
++ ${CC} ${CFLAGS} -c mpglib.c
++ ${CC} ${CFLAGS} -c main.c
++ ${CC} main.o mpglib.o -o ${NAME} ${LDFLAGS} -lm -lreadline
clean:
rm -f *.o
@@ -36,25 +36,23 @@
install:
- install -d ${BINDIR}
- install ${NAME} ${BINDIR}
+- strip ${BINDIR}/${NAME}
+ install -d $(DESTDIR)${BINDIR}
+ install ${NAME} $(DESTDIR)${BINDIR}
++ strip $(DESTDIR)${BINDIR}/${NAME}
if [ ! -z "${KDEDIR}" ]; then install -m 644 ${NAME}.desktop ${KDEDIR}/share/apps/konqueror/servicemenus; elif [ -d /usr/share/apps/konqueror/servicemenus ]; then install -m 644 ${NAME}.desktop /usr/share/apps/konqueror/servicemenus; elif [ -d /opt/kde/share/apps/konqueror/servicemenus ]; then install -m 644 ${NAME}.desktop /opt/kde/share/apps/konqueror/servicemenus; elif [ -d /opt/kde3/share/apps/konqueror/servicemenus ]; then install -m 644 ${NAME}.desktop /opt/kde3/share/apps/konqueror/servicemenus; fi
- install -d ${DOCDIR}/${NAME}
- install -m 644 README* USAGE ${DOCDIR}/${NAME}
- install -d ${MANDIR}
gzip ${NAME}.1
- install -m 644 ${NAME}.1.gz ${MANDIR}
-- gunzip ${NAME}.1.gz
+ install -m 644 ${NAME}.1.gz $(DESTDIR)${MANDIR}
+ gunzip ${NAME}.1.gz
uninstall:
- rm -f ${BINDIR}/${NAME}
+@@ -41,4 +38,4 @@ debug:
rm -f ${KDEDIR}/share/apps/konqueror/servicemenus/${NAME}.desktop
debug:
-- gcc -g -Wall -O -c mpglib.c
-- gcc -g -Wall -O -c main.c
-- gcc main.o mpglib.o -o ${NAME} -lm -lreadline -lncurses
-+ cc -g -Wall -O -c mpglib.c
-+ cc -g -Wall -O -c main.c
-+ cc main.o mpglib.o -o ${NAME} -lm -lreadline -lncurses
+- gcc ${CFLAGS} -DDEBUG -g mpglib.c main.c -o ${NAME} -lm -lreadline
++ ${CC} ${CFLAGS} -DDEBUG -g mpglib.c main.c -o ${NAME} -lm -lreadline