import of ksmp3play-0.4
ncurses-based mp3 player using smpeg
This commit is contained in:
parent
d001029af7
commit
3d867d92c7
31
audio/ksmp3play/Makefile
Normal file
31
audio/ksmp3play/Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2001/07/18 18:19:18 pvalchev Exp $
|
||||
|
||||
COMMENT= "curses-based mp3 player"
|
||||
|
||||
DISTNAME= ksmp3play-0.4
|
||||
CATEGORIES= audio
|
||||
NEED_VERSION= 1.424
|
||||
|
||||
HOMEPAGE= http://www.xanadunet.net/ksmp3play/index.html
|
||||
|
||||
MAINTAINER= Peter Valchev <pvalchev@openbsd.org>
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
LIB_DEPENDS= SDL.0.2:sdl-*:devel/sdl \
|
||||
smpeg.1.3:smpeg-*:devel/smpeg
|
||||
|
||||
MASTER_SITES= http://www.xanadunet.net/ksmp3play/
|
||||
|
||||
SEPARATE_BUILD= concurrent
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ENV= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS} -liberty"
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ksmp3play
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ksmp3play
|
||||
|
||||
.include <bsd.port.mk>
|
3
audio/ksmp3play/files/md5
Normal file
3
audio/ksmp3play/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (ksmp3play-0.4.tar.gz) = e45661c51592856fe76039db3d303ebd
|
||||
RMD160 (ksmp3play-0.4.tar.gz) = 4eb698320d2cc12b01ae8714f6c5f9219df0fe3b
|
||||
SHA1 (ksmp3play-0.4.tar.gz) = 37ac023d9771ce448db674a43c1d218d759fedf4
|
177
audio/ksmp3play/patches/patch-configure
Normal file
177
audio/ksmp3play/patches/patch-configure
Normal file
@ -0,0 +1,177 @@
|
||||
$OpenBSD: patch-configure,v 1.1.1.1 2001/07/18 18:19:18 pvalchev Exp $
|
||||
--- configure.orig Tue Jul 10 13:26:43 2001
|
||||
+++ configure Tue Jul 10 13:27:06 2001
|
||||
@@ -2536,8 +2536,55 @@ else
|
||||
echo "$ac_t""no" 1>&6
|
||||
fi
|
||||
|
||||
+echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
|
||||
+echo "configure:2541: checking for initscr in -lcurses" >&5
|
||||
+ac_lib_var=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
|
||||
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
+ echo $ac_n "(cached) $ac_c" 1>&6
|
||||
+else
|
||||
+ ac_save_LIBS="$LIBS"
|
||||
+LIBS="-lcurses $LIBS"
|
||||
+cat > conftest.$ac_ext <<EOF
|
||||
+#line 2549 "configure"
|
||||
+#include "confdefs.h"
|
||||
+/* Override any gcc2 internal prototype to avoid an error. */
|
||||
+/* We use char because int might match the return type of a gcc2
|
||||
+ builtin and then its argument prototype would still apply. */
|
||||
+char initscr();
|
||||
+
|
||||
+int main() {
|
||||
+initscr()
|
||||
+; return 0; }
|
||||
+EOF
|
||||
+if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
+ rm -rf conftest*
|
||||
+ eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
+else
|
||||
+ echo "configure: failed program was:" >&5
|
||||
+ cat conftest.$ac_ext >&5
|
||||
+ rm -rf conftest*
|
||||
+ eval "ac_cv_lib_$ac_lib_var=no"
|
||||
+fi
|
||||
+rm -f conftest*
|
||||
+LIBS="$ac_save_LIBS"
|
||||
+
|
||||
+fi
|
||||
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
||||
+ echo "$ac_t""yes" 1>&6
|
||||
+ ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
|
||||
+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
|
||||
+ cat >> confdefs.h <<EOF
|
||||
+#define $ac_tr_lib 1
|
||||
+EOF
|
||||
+
|
||||
+ LIBS="-lcurses $LIBS"
|
||||
+
|
||||
+else
|
||||
+ echo "$ac_t""no" 1>&6
|
||||
+fi
|
||||
+
|
||||
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
|
||||
-echo "configure:2541: checking for pthread_create in -lpthread" >&5
|
||||
+echo "configure:2588: checking for pthread_create in -lpthread" >&5
|
||||
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
@@ -2545,7 +2592,7 @@ else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-lpthread $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
-#line 2549 "configure"
|
||||
+#line 2596 "configure"
|
||||
#include "confdefs.h"
|
||||
/* Override any gcc2 internal prototype to avoid an error. */
|
||||
/* We use char because int might match the return type of a gcc2
|
||||
@@ -2556,7 +2603,7 @@ int main() {
|
||||
pthread_create()
|
||||
; return 0; }
|
||||
EOF
|
||||
-if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
+if { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
else
|
||||
@@ -2584,7 +2631,7 @@ else
|
||||
fi
|
||||
|
||||
echo $ac_n "checking for SMPEG_play in -lsmpeg""... $ac_c" 1>&6
|
||||
-echo "configure:2588: checking for SMPEG_play in -lsmpeg" >&5
|
||||
+echo "configure:2635: checking for SMPEG_play in -lsmpeg" >&5
|
||||
ac_lib_var=`echo smpeg'_'SMPEG_play | sed 'y%./+-%__p_%'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
@@ -2592,7 +2639,7 @@ else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-lsmpeg $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
-#line 2596 "configure"
|
||||
+#line 2643 "configure"
|
||||
#include "confdefs.h"
|
||||
/* Override any gcc2 internal prototype to avoid an error. */
|
||||
/* We use char because int might match the return type of a gcc2
|
||||
@@ -2603,7 +2650,7 @@ int main() {
|
||||
SMPEG_play()
|
||||
; return 0; }
|
||||
EOF
|
||||
-if { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
+if { (eval echo configure:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
else
|
||||
@@ -2634,7 +2681,7 @@ fi
|
||||
|
||||
|
||||
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
||||
-echo "configure:2638: checking for dlopen in -ldl" >&5
|
||||
+echo "configure:2685: checking for dlopen in -ldl" >&5
|
||||
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
@@ -2642,7 +2689,7 @@ else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-ldl $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
-#line 2646 "configure"
|
||||
+#line 2693 "configure"
|
||||
#include "confdefs.h"
|
||||
/* Override any gcc2 internal prototype to avoid an error. */
|
||||
/* We use char because int might match the return type of a gcc2
|
||||
@@ -2653,7 +2700,7 @@ int main() {
|
||||
dlopen()
|
||||
; return 0; }
|
||||
EOF
|
||||
-if { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
+if { (eval echo configure:2704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
else
|
||||
@@ -2678,7 +2725,7 @@ fi
|
||||
|
||||
|
||||
echo $ac_n "checking for shl_unload in -ldld""... $ac_c" 1>&6
|
||||
-echo "configure:2682: checking for shl_unload in -ldld" >&5
|
||||
+echo "configure:2729: checking for shl_unload in -ldld" >&5
|
||||
ac_lib_var=`echo dld'_'shl_unload | sed 'y%./+-%__p_%'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
@@ -2686,7 +2733,7 @@ else
|
||||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-ldld $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
-#line 2690 "configure"
|
||||
+#line 2737 "configure"
|
||||
#include "confdefs.h"
|
||||
/* Override any gcc2 internal prototype to avoid an error. */
|
||||
/* We use char because int might match the return type of a gcc2
|
||||
@@ -2697,7 +2744,7 @@ int main() {
|
||||
shl_unload()
|
||||
; return 0; }
|
||||
EOF
|
||||
-if { (eval echo configure:2701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
+if { (eval echo configure:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
else
|
||||
@@ -2738,7 +2785,7 @@ all_includes="$all_includes $USER_INCLUD
|
||||
|
||||
|
||||
echo $ac_n "checking for extra includes""... $ac_c" 1>&6
|
||||
-echo "configure:2742: checking for extra includes" >&5
|
||||
+echo "configure:2789: checking for extra includes" >&5
|
||||
# Check whether --with-extra-includes or --without-extra-includes was given.
|
||||
if test "${with_extra_includes+set}" = set; then
|
||||
withval="$with_extra_includes"
|
||||
@@ -2769,7 +2816,7 @@ echo "$ac_t""$kde_use_extra_includes" 1>
|
||||
|
||||
kde_extra_libs=
|
||||
echo $ac_n "checking for extra libs""... $ac_c" 1>&6
|
||||
-echo "configure:2773: checking for extra libs" >&5
|
||||
+echo "configure:2820: checking for extra libs" >&5
|
||||
# Check whether --with-extra-libs or --without-extra-libs was given.
|
||||
if test "${with_extra_libs+set}" = set; then
|
||||
withval="$with_extra_libs"
|
11
audio/ksmp3play/patches/patch-configure_in
Normal file
11
audio/ksmp3play/patches/patch-configure_in
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-configure_in,v 1.1.1.1 2001/07/18 18:19:18 pvalchev Exp $
|
||||
--- configure.in.orig Tue Jul 10 13:26:39 2001
|
||||
+++ configure.in Tue Jul 10 13:27:03 2001
|
||||
@@ -61,6 +61,7 @@ dnl Replace `main' with a function in -l
|
||||
AC_CHECK_LIB(SDL, SDL_Init)
|
||||
dnl Replace `main' with a function in -lncurses:
|
||||
AC_CHECK_LIB(ncurses, initscr)
|
||||
+AC_CHECK_LIB(curses, initscr)
|
||||
dnl Replace `main' with a function in -lpthread:
|
||||
AC_CHECK_LIB(pthread, pthread_create)
|
||||
dnl Replace `main' with a function in -lsmpeg:
|
12
audio/ksmp3play/patches/patch-ksmp3play_Makefile_in
Normal file
12
audio/ksmp3play/patches/patch-ksmp3play_Makefile_in
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-ksmp3play_Makefile_in,v 1.1.1.1 2001/07/18 18:19:18 pvalchev Exp $
|
||||
--- ksmp3play/Makefile.in.orig Tue Jul 10 13:55:15 2001
|
||||
+++ ksmp3play/Makefile.in Tue Jul 10 13:56:22 2001
|
||||
@@ -218,7 +218,7 @@ CFLAGS = @CFLAGS@
|
||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
-LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
+LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
DIST_COMMON = Makefile.am Makefile.in
|
||||
|
||||
|
24
audio/ksmp3play/patches/patch-ksmp3play_ksmp3play_h
Normal file
24
audio/ksmp3play/patches/patch-ksmp3play_ksmp3play_h
Normal file
@ -0,0 +1,24 @@
|
||||
$OpenBSD: patch-ksmp3play_ksmp3play_h,v 1.1.1.1 2001/07/18 18:19:18 pvalchev Exp $
|
||||
--- ksmp3play/ksmp3play.h.orig Sat May 19 15:02:44 2001
|
||||
+++ ksmp3play/ksmp3play.h Fri Jul 13 15:52:11 2001
|
||||
@@ -26,7 +26,20 @@
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include <smpeg/smpeg.h>
|
||||
+#ifdef __linux__
|
||||
#include <getopt.h>
|
||||
+#else
|
||||
+struct option
|
||||
+{
|
||||
+ char *name;
|
||||
+ int has_arg;
|
||||
+ int *flag;
|
||||
+ int val;
|
||||
+};
|
||||
+# define no_argument 0
|
||||
+# define required_argument 1
|
||||
+# define optional_argument 2
|
||||
+#endif
|
||||
#define BUFLEN 200
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
7
audio/ksmp3play/pkg/DESCR
Normal file
7
audio/ksmp3play/pkg/DESCR
Normal file
@ -0,0 +1,7 @@
|
||||
Ksmp3play is a ncurses-based MP3 player for console. This
|
||||
allows you to control the player on another computer using
|
||||
telnet or ssh, which might be useful if you have an old
|
||||
computer dedicated for mp3 playing. Other features include
|
||||
song rating and volume settings for each song.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
4
audio/ksmp3play/pkg/PLIST
Normal file
4
audio/ksmp3play/pkg/PLIST
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/07/18 18:19:18 pvalchev Exp $
|
||||
bin/ksmp3play
|
||||
share/doc/ksmp3play/README
|
||||
@dirrm share/doc/ksmp3play
|
Loading…
x
Reference in New Issue
Block a user