diff --git a/audio/libcdaudio/Makefile b/audio/libcdaudio/Makefile new file mode 100644 index 00000000000..2edbb1a732a --- /dev/null +++ b/audio/libcdaudio/Makefile @@ -0,0 +1,23 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2001/01/19 03:19:41 kevlo Exp $ + +DISTNAME= libcdaudio-0.99.4 +CATEGORIES= audio +NEED_VERSION= 1.351 + +HOMEPAGE= http://cdcd.undergrid.net/libcdaudio/ + +MAINTAINER= Kevin Lo + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${HOMEPAGE}/source_archive/ + +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS+= ${CONFIGURE_SHARED} +CONFIGURE_ARGS+= --enable-static + + +.include diff --git a/audio/libcdaudio/files/md5 b/audio/libcdaudio/files/md5 new file mode 100644 index 00000000000..5931dc60a20 --- /dev/null +++ b/audio/libcdaudio/files/md5 @@ -0,0 +1,3 @@ +MD5 (libcdaudio-0.99.4.tar.gz) = 1e673579fc377f2240d993a558a048be +RMD160 (libcdaudio-0.99.4.tar.gz) = 01d6e3a70f090e0e886e2c7520fd9cb031a138d2 +SHA1 (libcdaudio-0.99.4.tar.gz) = 00ee00d4e6dcff71b28be377b972c91f0277e273 diff --git a/audio/libcdaudio/patches/patch-ltconfig b/audio/libcdaudio/patches/patch-ltconfig new file mode 100644 index 00000000000..db08b7f0458 --- /dev/null +++ b/audio/libcdaudio/patches/patch-ltconfig @@ -0,0 +1,48 @@ +--- ltconfig.orig Thu Jan 18 22:59:21 2001 ++++ ltconfig Thu Jan 18 23:03:12 2001 +@@ -1105,6 +1105,9 @@ + with_gnu_ld=no + fi + ;; ++openbsd*) ++ with_gnu_ld=no ++ ;; + + esac + +@@ -1391,10 +1394,18 @@ + ;; + + openbsd*) +- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts' +- hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no ++ case "$host_os" in ++ openbsd2.[01234567]) ++ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts' ++ hardcode_libdir_flag_spec='-R$libdir' ++ ;; ++ *) ++ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts' ++ hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ++ ;; ++ esac + ;; + + os2*) +@@ -1955,13 +1966,10 @@ + + openbsd*) + version_type=sunos +- if test "$with_gnu_ld" = yes; then +- need_lib_prefix=no +- need_version=no +- fi + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH ++ deplibs_check_method='pass_all' + ;; + + os2*) diff --git a/audio/libcdaudio/patches/patch-ltmain.sh b/audio/libcdaudio/patches/patch-ltmain.sh new file mode 100644 index 00000000000..55e3edaf3f0 --- /dev/null +++ b/audio/libcdaudio/patches/patch-ltmain.sh @@ -0,0 +1,43 @@ +--- ltmain.sh.orig Thu Jan 18 23:03:45 2001 ++++ ltmain.sh Thu Jan 18 23:04:16 2001 +@@ -3522,40 +3522,6 @@ + # Exit here if they wanted silent mode. + test "$show" = : && exit 0 + +- echo "----------------------------------------------------------------------" +- echo "Libraries have been installed in:" +- for libdir in $libdirs; do +- echo " $libdir" +- done +- echo +- echo "If you ever happen to want to link against installed libraries" +- echo "in a given directory, LIBDIR, you must either use libtool, and" +- echo "specify the full pathname of the library, or use \`-LLIBDIR'" +- echo "flag during linking and do at least one of the following:" +- if test -n "$shlibpath_var"; then +- echo " - add LIBDIR to the \`$shlibpath_var' environment variable" +- echo " during execution" +- fi +- if test -n "$runpath_var"; then +- echo " - add LIBDIR to the \`$runpath_var' environment variable" +- echo " during linking" +- fi +- if test -n "$hardcode_libdir_flag_spec"; then +- libdir=LIBDIR +- eval flag=\"$hardcode_libdir_flag_spec\" +- +- echo " - use the \`$flag' linker flag" +- fi +- if test -n "$admincmds"; then +- echo " - have your system administrator run these commands:$admincmds" +- fi +- if test -f /etc/ld.so.conf; then +- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" +- fi +- echo +- echo "See any operating system documentation about shared libraries for" +- echo "more information, such as the ld(1) and ld.so(8) manual pages." +- echo "----------------------------------------------------------------------" + exit 0 + ;; + diff --git a/audio/libcdaudio/pkg/COMMENT b/audio/libcdaudio/pkg/COMMENT new file mode 100644 index 00000000000..095cec008a0 --- /dev/null +++ b/audio/libcdaudio/pkg/COMMENT @@ -0,0 +1 @@ +multi-platform cd player development library diff --git a/audio/libcdaudio/pkg/DESCR b/audio/libcdaudio/pkg/DESCR new file mode 100644 index 00000000000..e862792d07a --- /dev/null +++ b/audio/libcdaudio/pkg/DESCR @@ -0,0 +1,12 @@ +libcdaudio is a multi-platform CD player development library which +works with NetBSD, Linux, FreeBSD, OpenBSD, Solaris, and Irix. It +includes a basic command set for controlling the operation of the +CD-ROM drive as well as functions for accessing both the CDDB, CD +Index, and Cover Art Index. + +The entire libcdaudio API may be found in the libcdaudio +programmer's manual at "http://cdcd.undergrid.net/libcdaudio/manual/". +The interface to the given functions will remain as they are +specified, although new functions may continue to be added. + +WWW: ${HOMEPAGE} diff --git a/audio/libcdaudio/pkg/PFRAG.shared b/audio/libcdaudio/pkg/PFRAG.shared new file mode 100644 index 00000000000..3e62bc83c94 --- /dev/null +++ b/audio/libcdaudio/pkg/PFRAG.shared @@ -0,0 +1,3 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2001/01/19 03:19:42 kevlo Exp $ +lib/libcdaudio.so.1.0 +DYNLIBDIR(%B) diff --git a/audio/libcdaudio/pkg/PLIST b/audio/libcdaudio/pkg/PLIST new file mode 100644 index 00000000000..aa150f7f9d7 --- /dev/null +++ b/audio/libcdaudio/pkg/PLIST @@ -0,0 +1,7 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2001/01/19 03:19:42 kevlo Exp $ +bin/libcdaudio-config +include/cdaudio.h +lib/libcdaudio.a +lib/libcdaudio.la +%%SHARED%% +share/aclocal/libcdaudio.m4