ports/69185: Update port: audio/mp3stat to 2.5.10

KATO Tsuguru tkato432 at yahoo.com
Sat Jul 17 14:10:09 UTC 2004


>Number:         69185
>Category:       ports
>Synopsis:       Update port: audio/mp3stat to 2.5.10
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 17 14:10:09 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.10-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Update to version 2.5.10

Remove file:
patch-Makefile
files/patch-Makefile.rules

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/audio/mp3stat/Makefile audio/mp3stat/Makefile
--- /usr/ports/audio/mp3stat/Makefile	Fri Feb  6 10:07:55 2004
+++ audio/mp3stat/Makefile	Fri Jul 16 22:12:59 2004
@@ -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 at FreeBSD.org
@@ -18,20 +17,31 @@
 
 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}"
+
+PORTDOCS=	README
+PLIST_FILES=	bin/mp3stat
 
-.if defined(WITH_VORBIS)
-LIB_DEPENDS=	vorbis.2:${PORTSDIR}/audio/libvorbis
-MAKE_ENV+=	WITH_VORBIS="${WITH_VORBIS}"
+.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>
diff -urN /usr/ports/audio/mp3stat/distinfo audio/mp3stat/distinfo
--- /usr/ports/audio/mp3stat/distinfo	Wed Jan 28 18:45:04 2004
+++ audio/mp3stat/distinfo	Fri Jul 16 22:13:44 2004
@@ -1,2 +1,2 @@
-MD5 (mp3stat_2.5.6.tar.gz) = 1d865b3d0d6c048e6f2f03ddaeff3854
-SIZE (mp3stat_2.5.6.tar.gz) = 25952
+MD5 (mp3stat_2.5.10.tar.gz) = aa5bcec33729883ebbe2ce42d1982e55
+SIZE (mp3stat_2.5.10.tar.gz) = 28367
diff -urN /usr/ports/audio/mp3stat/files/patch-Makefile audio/mp3stat/files/patch-Makefile
--- /usr/ports/audio/mp3stat/files/patch-Makefile	Tue Mar 26 15:22:58 2002
+++ audio/mp3stat/files/patch-Makefile	Thu Jan  1 09:00:00 1970
@@ -1,42 +0,0 @@
---- Makefile.orig	Tue Mar 26 14:15:51 2002
-+++ Makefile	Tue Mar 26 14:20:29 2002
-@@ -6,24 +6,26 @@
- 
- BFLAGS		   = $(CXXFLAGS)
- 
--BUILDFLAGS         = -Wall -lvorbis -lvorbisfile -logg `glib-config --cflags` `gtk-config --cflags` `gtk-config --libs` `glib-config --libs` -lm $(BFLAGS)
-+BUILDFLAGS         = -L${LOCALBASE}/lib -lvorbis -lvorbisfile -logg `${GTK_CONFIG} --cflags` `${GTK_CONFIG} --libs` -lm $(BFLAGS)
- #comment out below to enable experimental gtk2 ui
- #BUILDFLAGS         = -Wall -lvorbis -lvorbisfile -logg `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0` -lm $(BFLAGS)
- 
--BUILD2FLAGS	   = -Wall `glib-config --cflags` `gtk-config --cflags` `gtk-config --libs` `glib-config --libs` -lm $(BFLAGS)
-+BUILD2FLAGS	   = `${GTK_CONFIG} --cflags` `${GTK_CONFIG} --libs` -lm $(BFLAGS)
- #comment out below to enable experimental gtk2 ui
- #BUILD2FLAGS        = -Wall `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0` -lm $(BFLAGS)
- 
- #To disable Vorbis support, comment out next line
--VORBIS		 = -DVORBIS
-+ifdef WITH_VORBIS
-+VORBIS		 = -DVORBIS -I${LOCALBASE}/include
-+endif
- 
- #To compile text only utility, comment out next line
- GTK		 = -DGTK
- 
- 
- #Text ui for win32 and *nix  (only built when GTK is commented out)
--TBUILDFLAGS	   = -Wall -lvorbis -lvorbisfile -lm $(BFLAGS)
--TBUILD2FLAGS	   = -Wall -lm $(BFLAGS)
-+TBUILDFLAGS	   = -L${LOCALBASE}/lib -lvorbis -lvorbisfile -lm $(BFLAGS)
-+TBUILD2FLAGS	   = -lm $(BFLAGS)
- 
- #Win32 gtk build flags.  Uncomment these when building in win32  (only tested with gtk2)
- #prebuilt vorbis and ogg libs found at xiph.org do not seem to work when used with cygwin
-@@ -38,6 +40,6 @@
- 
- CPPFLAGS         = -Wall -DVERSION=\"$(VER)\" $(VORBIS) $(WIN32)
- 
--CXX              = g++
-+#CXX              = g++
- 
- include Makefile.rules
diff -urN /usr/ports/audio/mp3stat/files/patch-Makefile.rules audio/mp3stat/files/patch-Makefile.rules
--- /usr/ports/audio/mp3stat/files/patch-Makefile.rules	Tue Mar 26 15:22:58 2002
+++ audio/mp3stat/files/patch-Makefile.rules	Thu Jan  1 09:00:00 1970
@@ -1,83 +0,0 @@
---- Makefile.rules.orig	Tue Mar 26 14:21:02 2002
-+++ Makefile.rules	Tue Mar 26 14:22:36 2002
-@@ -18,63 +18,25 @@
- WEBPAGE  = "http://safemode.homeip.net"
- 
- all:
--	@if test -n "$(VORBIS)"; then \
--	    echo "";\
--	    echo "___ building backend ___";\
--	    echo "Using flags: $(BFLAGS)";\
--	    echo "";\
--	    echo "building $(OBJ)";\
--	    $(CXX) $(BFLAGS) $(CPPFLAGS) -c -o $(OBJ) $(OBJSRC);\
--	    echo "building $(OBJ2)";\
--	    $(CXX) $(BFLAGS) $(CPPFLAGS) -c -o $(OBJ2) $(OBJ2SRC);\
--	    echo "";\
--	    echo "___ building frontend ___";\
--	    if test -n "$(GTK)"; then \
--		echo "Using flags: $(BUILDFLAGS)";\
--	        echo "";\
--	        echo "building and linking $(TARGET)";\
--	        $(CXX) $(CPPFLAGS) -o $(TARGET) $(SRC) $(OBJ) $(OBJ2) $(BUILDFLAGS);\
--	    else \
--		echo "Using flags: $(TBUILDFLAGS)";\
--		echo "";\
--		echo "building and linking $(TARGET)";\
--		$(CXX) $(CPPFLAGS) -o $(TARGET) $(TSRC) $(OBJ) $(OBJ2) $(TBUILDFLAGS);\
--	    fi\
--	else \
--	    echo "";\
--	    echo "___ building backend ___";\
--	    echo "Using flags: $(CXXFLAGS)";\
--	    echo "";\
--	    echo "building $(OBJ)";\
--	    $(CXX) $(BFLAGS) $(CPPFLAGS) -c -o $(OBJ) $(OBJSRC);\
--	    echo "";\
--	    echo "___ building frontend ___";\
--	    if test -n "$(GTK)"; then \
--		echo "Using flags: $(BUILD2FLAGS)";\
--		echo "";\
--		echo "building and linking $(TARGET)";\
--		$(CXX) $(CPPFLAGS) -o $(TARGET) $(SRC) $(OBJ) $(BUILD2FLAGS);\
--	    else \
--		echo "Using flags: $(TBUILD2FLAGS)";\
--		echo "";\
--		echo "building and linking $(TARGET)";\
--		$(CXX) $(CPPFLAGS) -o $(TARGET) $(TSRC) $(OBJ) $(TBUILD2FLAGS);\
--	    fi\
--	fi
--	@echo " "
--	@echo "-------------------------------------------"
--	@echo "Vorbis support is set by default."
--	@echo "to disable edit Makefile and comment VORBIS"
--	@echo " "
--	@echo "gtk 1.2 ui built by default, to enable"
--	@echo "gtk 2.0 ui read the Makefile"
--	@echo "To disable, edit Makefile and comment GTK"
--	@echo "-------------------------------------------"
-+ifdef VORBIS
-+	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $(OBJ) $(OBJSRC)
-+	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $(OBJ2) $(OBJ2SRC)
-+ifdef GTK
-+		$(CXX) $(BUILDFLAGS) $(CPPFLAGS) -o $(TARGET) $(SRC) $(OBJ) $(OBJ2)
-+else
-+		$(CXX) $(TBUILDFLAGS) $(CPPFLAGS) -o $(TARGET) $(TSRC) $(OBJ) $(OBJ2)
-+endif
-+else
-+	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $(OBJ) $(OBJSRC)
-+ifdef GTK
-+		$(CXX) $(BUILD2FLAGS) $(CPPFLAGS) -o $(TARGET) $(SRC) $(OBJ)
-+else
-+		$(CXX) $(TBUILD2FLAGS) $(CPPFLAGS) -o $(TARGET) $(TSRC) $(OBJ)
-+endif
-+endif
- 
- clean:
- 	rm -f *.o mp3stat
- 
- install:
--	strip $(TARGET)
--	cp $(TARGET) /usr/local/bin
--
-+	${BSD_INSTALL_PROGRAM} $(TARGET) ${PREFIX}/bin
diff -urN /usr/ports/audio/mp3stat/pkg-descr audio/mp3stat/pkg-descr
--- /usr/ports/audio/mp3stat/pkg-descr	Thu Dec 26 23:10:35 2002
+++ audio/mp3stat/pkg-descr	Tue Jul 13 18:25:54 2004
@@ -9,3 +9,5 @@
 output of 3 pieces of info, name, runtime, avgerage bitrate. The batch mode
 can take mp3s and oggs in the same directory but it cannot (not yet at least)
 recursively run into subdirectories.
+
+WWW: https://signal-lost.homeip.net/
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list