60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
35 lines
868 B
Makefile
35 lines
868 B
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mp32ogg
|
|
PORTVERSION= 0.11
|
|
PORTREVISION= 2
|
|
CATEGORIES= audio perl5
|
|
MASTER_SITES= ftp://ftp.faceprint.com/pub/software/scripts/ \
|
|
LOCAL/uqs
|
|
EXTRACT_SUFX= # empty
|
|
|
|
MAINTAINER= uqs@FreeBSD.org
|
|
COMMENT= Convert MP3 files to Ogg Vorbis files
|
|
|
|
RUN_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123 \
|
|
oggenc:${PORTSDIR}/audio/vorbis-tools \
|
|
p5-MP3-Info>=0:${PORTSDIR}/audio/p5-MP3-Info \
|
|
p5-String-ShellQuote>=0:${PORTSDIR}/textproc/p5-String-ShellQuote
|
|
|
|
USES= shebangfix perl5
|
|
SHEBANG_FILES= mp32ogg
|
|
NO_WRKSUBDIR= yes
|
|
NO_BUILD= yes
|
|
EXTRACT_CMD= ${CP}
|
|
EXTRACT_BEFORE_ARGS= #
|
|
EXTRACT_AFTER_ARGS= ${WRKSRC}/${PORTNAME}
|
|
PLIST_FILES= bin/mp32ogg
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -i '' -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/mp32ogg
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/mp32ogg ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|