aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorjhale <jhale@FreeBSD.org>2014-10-05 07:54:47 +0800
committerjhale <jhale@FreeBSD.org>2014-10-05 07:54:47 +0800
commit5e9baa01e9a789f4a98799c5e9b40bb870830f6f (patch)
tree424efa150f96b8ea58c7c3ac1f2f119c51da4de0 /audio
parent8a8afb834f0fe7a3739b5bca37c6fde2221d72c1 (diff)
downloadfreebsd-ports-gnome-5e9baa01e9a789f4a98799c5e9b40bb870830f6f.tar.gz
freebsd-ports-gnome-5e9baa01e9a789f4a98799c5e9b40bb870830f6f.tar.zst
freebsd-ports-gnome-5e9baa01e9a789f4a98799c5e9b40bb870830f6f.zip
- Convert to USES=python, limit to 2.x
- Add LICENSE - USES=shebangfix instead of post-patch - Simplify DOCS install
Diffstat (limited to 'audio')
-rw-r--r--audio/dir2ogg/Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/audio/dir2ogg/Makefile b/audio/dir2ogg/Makefile
index b58dc28940fa..7e1b5e0a650c 100644
--- a/audio/dir2ogg/Makefile
+++ b/audio/dir2ogg/Makefile
@@ -11,12 +11,16 @@ MASTER_SITE_SUBDIR= ${PORTVERSION:R}
MAINTAINER= ports@FreeBSD.org
COMMENT= Command-line {wav,mp3,m4a} to ogg converter
+LICENSE= GPLv2
+
RUN_DEPENDS= faad:${PORTSDIR}/audio/faad \
mutagen-inspect:${PORTSDIR}/audio/py-mutagen \
mplayer:${PORTSDIR}/multimedia/mplayer \
oggenc:${PORTSDIR}/audio/vorbis-tools
-USE_PYTHON= yes
+USES= python:2 shebangfix
+
+SHEBANG_FILES= ${PORTNAME}
NO_BUILD= yes
PORTDOCS= NEWS README
@@ -25,16 +29,10 @@ PLIST_FILES= bin/${PORTNAME} \
OPTIONS_DEFINE= DOCS
-post-patch:
- @${REINPLACE_CMD} -e \
- '/^#!/s|/.*python|${SETENV} python|g' ${WRKSRC}/${PORTNAME}
-
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for doc in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
-.endfor
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>