Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Apr 1999 22:47:13 -0700 (PDT)
From:      cpiazza@home.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/11076: New port: cmp3 
Message-ID:  <19990411054713.E42A1161E@norn.ca.eu.org>

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

>Number:         11076
>Category:       ports
>Synopsis:       New port: 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:   Sat Apr 10 22:50:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Chris Piazza
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
n/a 
>Environment:

4.0-CURRENT post-egcs.

>Description:

A(nother) frontend to mpg123.  Uses ncurses.
Portlint: 1 warning.
CFLAGS/PREFIX: respected

>How-To-Repeat:

>Fix:
	
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	cmp3
#	cmp3/Makefile
#	cmp3/files
#	cmp3/files/md5
#	cmp3/pkg
#	cmp3/pkg/COMMENT
#	cmp3/pkg/DESCR
#	cmp3/pkg/PLIST
#	cmp3/patches
#	cmp3/patches/patch-aa
#	cmp3/patches/patch-ab
#	cmp3/patches/patch-ac
#
echo c - cmp3
mkdir -p cmp3 > /dev/null 2>&1
echo x - cmp3/Makefile
sed 's/^X//' >cmp3/Makefile << 'END-of-cmp3/Makefile'
X# New ports collection makefile for:   cmp3
X# Version required:    2.0pre3
X# Date created:        10 April 1999
X# Whom:                Chris Piazza <cpiazza@home.net>
X#
X# $Id$
X#
X
XDISTNAME=	cmp3-2.0pre3
XPKGNAME=	cmp3-2.0p3
XCATEGORIES=	audio
XMASTER_SITES=	http://nkk104.rh.psu.edu/cmp3/
X
XMAINTAINER=	cpiazza@home.net
X
XRUN_DEPENDS= 	mpg123:${PORTSDIR}/audio/mpg123
X
XUSE_GMAKE=	YES
X
XWRKSRC=	${WRKDIR}/cmp3
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/cmp3 ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/rnmp3 ${PREFIX}/bin
X	${MKDIR} ${PREFIX}/share/cmp3
X	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/cmp3
X
Xpost-install:
X	@${ECHO_MSG} "*****NOTE*****"
X	@${ECHO_MSG} "Please read ${PREFIX}/share/cmp3/README before \
X		      using cmp3"
X	@${ECHO_MSG} "*****NOTE*****" 
X
X.include <bsd.port.mk>
END-of-cmp3/Makefile
echo c - cmp3/files
mkdir -p cmp3/files > /dev/null 2>&1
echo x - cmp3/files/md5
sed 's/^X//' >cmp3/files/md5 << 'END-of-cmp3/files/md5'
XMD5 (cmp3-2.0pre3.tar.gz) = 5f2014ded170a67577ce8323312ce451
END-of-cmp3/files/md5
echo c - cmp3/pkg
mkdir -p cmp3/pkg > /dev/null 2>&1
echo x - cmp3/pkg/COMMENT
sed 's/^X//' >cmp3/pkg/COMMENT << 'END-of-cmp3/pkg/COMMENT'
XAn ncurses based frontend to mpg123.
END-of-cmp3/pkg/COMMENT
echo x - cmp3/pkg/DESCR
sed 's/^X//' >cmp3/pkg/DESCR << 'END-of-cmp3/pkg/DESCR'
XA simple yet featureful ncurses frontend to mpg123.
XIncludes playlist support, volume control and tools to help
Xwith file management.
X
XHomepage:
Xhttp://nkk104.rh.psu.edu/cmp3/
XAuthor:
XNeville Kadwa <pandama@psu.edu>
X
X-Chris Piazza
Xcpiazza@home.net
END-of-cmp3/pkg/DESCR
echo x - cmp3/pkg/PLIST
sed 's/^X//' >cmp3/pkg/PLIST << 'END-of-cmp3/pkg/PLIST'
Xbin/cmp3
Xbin/rnmp3
Xshare/cmp3/README
X@dirrm share/cmp3
END-of-cmp3/pkg/PLIST
echo c - cmp3/patches
mkdir -p cmp3/patches > /dev/null 2>&1
echo x - cmp3/patches/patch-aa
sed 's/^X//' >cmp3/patches/patch-aa << 'END-of-cmp3/patches/patch-aa'
X--- Makefile.orig	Sat Apr 10 12:40:57 1999
X+++ Makefile	Sat Apr 10 22:21:27 1999
X@@ -30,8 +30,9 @@
X # stands. Change the code to do something else you want it to do...
X #PARAMS +=-DMY_CD
X LIBS= -lncurses
X-CFLAGS= -Wall -O2 -g
X-CC= gcc
X+CFLAGS?= -O2
X+CFLAGS+= -Wall -g
X+CC?= gcc
X OBJS= llist.o cmp3fileio.o cmp3manager.o cmp3curses.o cmp3llist.o \
X       cmp3main.o cmp3listfiles.o cmp3playlist.o
X 
X@@ -43,7 +44,6 @@
X endif
X 
X all: rnmp3 cmp3
X-	@echo -e "\n\nCmp3 is ready! Please read the README before proceeding.\n"
X 
X clean: 
X 	rm -f *.o *~ DEADJOE core cmp3 rnmp3
END-of-cmp3/patches/patch-aa
echo x - cmp3/patches/patch-ab
sed 's/^X//' >cmp3/patches/patch-ab << 'END-of-cmp3/patches/patch-ab'
X--- cmp3.h.orig	Sat Apr 10 21:49:16 1999
X+++ cmp3.h	Sat Apr 10 21:54:51 1999
X@@ -1,7 +1,7 @@
X #ifndef _CMP3_H
X #define _CMP3_H
X 
X-#include<curses.h>
X+#include<ncurses.h>
X 
X #ifndef NCURSES_VERSION
X   #error "This program requires ncurses to function"
X@@ -15,7 +15,7 @@
X #include<sys/wait.h>
X #include<sys/ioctl.h>
X #include<sys/stat.h>
X-#include<sys/soundcard.h>
X+#include<machine/soundcard.h>
X #include<fcntl.h>
X #include<stdio.h>
X #include<stdlib.h>
END-of-cmp3/patches/patch-ab
echo x - cmp3/patches/patch-ac
sed 's/^X//' >cmp3/patches/patch-ac << 'END-of-cmp3/patches/patch-ac'
X--- cmp3manager.c.orig	Sat Apr 10 21:49:37 1999
X+++ cmp3manager.c	Sat Apr 10 21:50:06 1999
X@@ -37,7 +37,7 @@
X void manageit()
X {
X 
X-    setpgrp();
X+    setpgid(0,0);
X     shmptr = (shmdata_t*) shmat(shmid,NULL,0);
X     if (shmptr < 0) {
X         perror("can't attach shared memory");
END-of-cmp3/patches/patch-ac
exit


-Chris

>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?19990411054713.E42A1161E>