Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jan 2001 12:01:08 -0800 (PST)
From:      tkato@prontomail.ne.jp
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/24352: Update port: audio/cmp3
Message-ID:  <200101152001.f0FK18503764@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         24352
>Category:       ports
>Synopsis:       Update port: audio/cmp3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 15 12:10:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.2-RELEASE i386
>Organization:
>Environment:
>Description:
- Fix for respecting HOME properly

New file:
files/patch-ae

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/audio/cmp3/Makefile audio/cmp3/Makefile
--- /usr/ports/audio/cmp3/Makefile	Thu Dec 28 01:02:07 2000
+++ audio/cmp3/Makefile	Fri Jan 12 02:45:01 2001
@@ -7,6 +7,7 @@
 
 PORTNAME=	cmp3
 PORTVERSION=	2.0.p5
+PORTREVISION=	1
 CATEGORIES=	audio
 MASTER_SITES=	http://www.personal.psu.edu/users/n/k/nkk104/cmp3/
 DISTNAME=	${PORTNAME}-${PORTVERSION:S/.p/pre/}
diff -urN /usr/ports/audio/cmp3/files/patch-aa audio/cmp3/files/patch-aa
--- /usr/ports/audio/cmp3/files/patch-aa	Thu Dec 28 01:02:08 2000
+++ audio/cmp3/files/patch-aa	Fri Jan 12 03:02:31 2001
@@ -1,6 +1,6 @@
 --- Makefile.orig	Fri Mar 17 10:35:33 2000
-+++ Makefile	Sat Dec 23 10:34:05 2000
-@@ -3,19 +3,19 @@
++++ Makefile	Fri Jan 12 03:02:20 2001
+@@ -3,22 +3,22 @@
  #
  #  initial_directory is now set in the config file
  mpg123_location   := "mpg123"
@@ -11,7 +11,7 @@
  #  Location of config file - Please edit this file before installing
  #
 -config_file       := "$(HOME)/.cmp3rc"
-+config_file       := "$$\(HOME)/.cmp3rc"
++#config_file       := "$(HOME)/.cmp3rc"
  
  #
  #  Uncomment and set if desired
@@ -19,10 +19,14 @@
  
  ## An ass repository is a nice thing to have. See README
 -ass_repository := "$(HOME)/.cmp3ass"
-+ass_repository := "$$\(HOME)/.cmp3ass"
++#ass_repository := "$(HOME)/.cmp3ass"
  
  ## Define this for bufferring or add other parameters to mpg123
- mpg123_params := -b 320
+-mpg123_params := -b 320
++#mpg123_params := -b 320
+ 
+ # You need debugging info? Uncomment this and check /tmp/cmp3log
+ #debugging := 1
 @@ -38,8 +38,8 @@
  # stands. Change the code to do something else you want it to do...
  #PARAMS +=-DMY_CD
diff -urN /usr/ports/audio/cmp3/files/patch-ae audio/cmp3/files/patch-ae
--- /usr/ports/audio/cmp3/files/patch-ae	Thu Jan  1 09:00:00 1970
+++ audio/cmp3/files/patch-ae	Fri Jan 12 02:17:33 2001
@@ -0,0 +1,22 @@
+--- cmp3main.c.orig	Fri Mar 17 08:40:00 2000
++++ cmp3main.c	Fri Jan 12 02:16:41 2001
+@@ -33,13 +33,18 @@
+     int         lastleftline = 0;
+     int         lastrightline = 0;
+     char       *init_dir = NULL;
++    char       *home_dir = NULL;
++    char       cmp3_config[4096];
+ 
+     if (argc > 1)
+         docmdline(argc, argv);
+     shm_init();
+ 
+     cmp3rc = ini_create();
+-    if (ini_load(cmp3rc, CMP3_CONFIG) == INI_FAIL)
++    home_dir = getenv("HOME");
++    strcpy (cmp3_config, home_dir);
++    strcat (cmp3_config, "/.cmp3rc");
++    if (ini_load(cmp3rc, cmp3_config) == INI_FAIL)
+     {
+         ini_destroy(cmp3rc);
+         cmp3rc = NULL;


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101152001.f0FK18503764>