summaryrefslogtreecommitdiff
path: root/audio/minimp3/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/minimp3/Makefile')
-rw-r--r--audio/minimp3/Makefile22
1 files changed, 17 insertions, 5 deletions
diff --git a/audio/minimp3/Makefile b/audio/minimp3/Makefile
index 7ba47f6ee289..b13158ef1045 100644
--- a/audio/minimp3/Makefile
+++ b/audio/minimp3/Makefile
@@ -1,7 +1,13 @@
PORTNAME= minimp3
-PORTVERSION= g20211130
+DISTVERSION= g20211130
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= audio
+# Use direct link to 126KB files instead of 19+MB tarball:
+# https://github.com/${GH_ACCOUNT}/${PORTNAME}/tar.gz/${GH_TAGNAME}?dummy=/${GH_ACCOUNT}-${PORTNAME}-${DISTVERSION}-${GH_TAGNAME}_GH0.tar.gz
+MASTER_SITES= https://raw.githubusercontent.com/${GH_ACCOUNT}/${PORTNAME}/${GH_TAGNAME}/
+DISTFILES= LICENSE minimp3.h minimp3_ex.h
+DIST_SUBDIR= ${PORTNAME}-${DISTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= C++ single-header, minimalistic library for decoding MP3
@@ -10,16 +16,22 @@ WWW= https://github.com/lieff/minimp3
LICENSE= CC0-1.0
LICENSE_FILE= ${WRKSRC}/LICENSE
-USE_GITHUB= yes
+USE_GITHUB= nodefault
GH_ACCOUNT= lieff
GH_TAGNAME= afb604c06bc8beb145fecd42c0ceb5bda8795144
-NO_BUILD= yes
+EXTRACT_CMD= ${CP}
+EXTRACT_BEFORE_ARGS= #
+EXTRACT_AFTER_ARGS= ${WRKSRC}
+
NO_ARCH= yes
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
-PLIST_FILES= include/minimp3.h
+PLIST_FILES= ${DISTFILES:M*.h:C|^|include/|}
do-install:
- ${INSTALL_DATA} ${WRKSRC}/minimp3.h ${STAGEDIR}${PREFIX}/include
+ ${INSTALL_DATA} ${DISTFILES:M*.h:C|^|${WRKSRC}/|} \
+ ${STAGEDIR}${PREFIX}/include
.include <bsd.port.mk>