1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/audio/mp3stat/Makefile
Pawel Pekala e4d3fabab0 - Fix build with clang
- Update MASTER_SITES
- Support staging

PR:		ports/184863
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-12-20 16:21:19 +00:00

71 lines
1.8 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= mp3stat
PORTVERSION= 2.6.01
PORTREVISION= 11
CATEGORIES= audio
MASTER_SITES= https://signal-lost.homeip.net/files/ \
http://www.sourcefiles.org/Multimedia/MP3/Tools/Processing/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Read information about mp3s and oggs bitstream
LICENSE= GPLv2
OPTIONS_DEFINE= VORBIS DOCS
OPTIONS_DEFAULT= VORBIS
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USES= dos2unix gmake pkgconfig
DOS2UNIX_FILES= ui/console/cli.cpp
USE_GNOME= gtk20
CXXFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -Wl,--rpath,${LOCALBASE}/lib
PORTDOCS= README
PLIST_FILES= bin/mp3stat \
lib/mp3stat/input_mp3.so \
lib/mp3stat/ui_gtk2.so \
lib/mp3stat/ui_console.so
PLIST_DIRS= lib/mp3stat
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MVORBIS}
LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis
PLIST_FILES+= lib/mp3stat/input_vorb.so
.else
MAKE_ARGS+= VORBIS=""
.endif
post-patch:
@${FIND} ${WRKSRC} -name "Makefile*" | ${XARGS} ${REINPLACE_CMD} -e \
's|@$${CXX}|$${CXX}|g ; \
s|-ldl|-lz|g ; \
s|-lc|$${LDFLAGS}|g ; \
s|-Wl,-soname,.*\.so\.1||g ; \
s|-fpic|-fPIC|g ; \
s|^CXX|#CXX|g'
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} mp3stat ${STAGEDIR}${PREFIX}/bin)
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/mp3stat
(cd ${WRKSRC}/ui/gtk && ${INSTALL_DATA} ui_gtk2.so \
${STAGEDIR}${PREFIX}/lib/mp3stat)
(cd ${WRKSRC}/ui/console && ${INSTALL_DATA} ui_console.so \
${STAGEDIR}${PREFIX}/lib/mp3stat)
(cd ${WRKSRC}/input/mp3 && ${INSTALL_DATA} input_mp3.so \
${STAGEDIR}${PREFIX}/lib/mp3stat)
.if ${PORT_OPTIONS:MVORBIS}
(cd ${WRKSRC}/input/vorbis && ${INSTALL_DATA} input_vorb.so \
${STAGEDIR}${PREFIX}/lib/mp3stat)
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>