summaryrefslogtreecommitdiffstats
path: root/audio/mp3stat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/mp3stat/Makefile')
-rw-r--r--audio/mp3stat/Makefile32
1 files changed, 21 insertions, 11 deletions
diff --git a/audio/mp3stat/Makefile b/audio/mp3stat/Makefile
index 23e1489..6898950 100644
--- a/audio/mp3stat/Makefile
+++ b/audio/mp3stat/Makefile
@@ -7,10 +7,9 @@
#
PORTNAME= mp3stat
-PORTVERSION= 2.5.6
-PORTREVISION= 2
+PORTVERSION= 2.5.10
CATEGORIES= audio
-MASTER_SITES= ftp://ftp.cronyx.ru/pub/FreeBSD/ports/distfiles/
+MASTER_SITES= https://signal-lost.homeip.net/files/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
@@ -18,20 +17,31 @@ COMMENT= Read information about mp3s and oggs bitstream
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-PLIST_FILES= bin/mp3stat
-USE_GNOME= gtk12
+USE_GNOME= gtk20
USE_GMAKE= yes
-MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
+MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
-.if defined(WITH_VORBIS)
-LIB_DEPENDS= vorbis.2:${PORTSDIR}/audio/libvorbis
-MAKE_ENV+= WITH_VORBIS="${WITH_VORBIS}"
+PORTDOCS= README
+PLIST_FILES= bin/mp3stat
+
+.if defined(WITHOUT_VORBIS)
+MAKE_ARGS+= VORBIS=""
+.else
+LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis
+CXXFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
+.endif
pre-everything::
@${ECHO_MSG}
- @${ECHO_MSG} "If you want to compile with Ogg/Vorbis support,"
- @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_VORBIS=yes\""
+ @${ECHO_MSG} "If you want to compile without Ogg/Vorbis support,"
+ @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITHOUT_VORBIS=yes\""
@${ECHO_MSG}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/mp3stat ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>
OpenPOWER on IntegriCloud