ports/80727: new ports: audio/adplay, audio/libadplug, devel/libbinio

Emanuel Haupt ehaupt at critical.ch
Sat May 7 11:40:01 UTC 2005


>Number:         80727
>Category:       ports
>Synopsis:       new ports: audio/adplay, audio/libadplug, devel/libbinio
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 07 11:40:00 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Emanuel Haupt
>Release:        FreeBSD 5.4-RC4 i386
>Organization:
>Environment:
System: FreeBSD beaver.critical.ch 5.4-RC4 FreeBSD 5.4-RC4 #0: Thu May 5 15:41:00 CEST 2005 root at beaver.critical.ch:/usr/src-release/src/sys/i386/compile/BEAVER i386


	
>Description:
new ports: audio/adplay, audio/libadplug, devel/libbinio
           (audio/adplay depends on audio/libadplug and devel/libbinio)

A collection of AdLib sound samples can be aquired at:
http://critical.ch/adlib-collection-0.1.tar.gz

[audio/adplay]
Adplay is a command line AdLib player using the adplug library. It supports
many AdLib formats such as HSP and HSC.

[audio/libadplug]
AdPlug is a free, cross-platform, hardware independent AdLib sound player
library, mainly written in C++ and released under the LGPL. AdPlug plays
sound data, originally created for the AdLib (OPL2) audio board, directly
from its original format on top of an OPL2 emulator or by using the real
hardware. No OPL chip is required for playback.

[devel/libbinio]
The binary I/O stream class library presents a platform-independent way to
access binary data streams in C++.

The library is hardware independent in the form that it transparently
converts between the different forms of machine-internal binary data
representation.

It further employs no special I/O protocol and can be used on arbitrary
binary data sources.

>How-To-Repeat:
>Fix:
--- audio/adplay shar start ---
# 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:
#
#	adplay
#	adplay/files
#	adplay/files/patch-src-adplay.cc
#	adplay/Makefile
#	adplay/pkg-descr
#	adplay/distinfo
#
echo c - adplay
mkdir -p adplay > /dev/null 2>&1
echo c - adplay/files
mkdir -p adplay/files > /dev/null 2>&1
echo x - adplay/files/patch-src-adplay.cc
sed 's/^X//' >adplay/files/patch-src-adplay.cc << 'END-of-adplay/files/patch-src-adplay.cc'
X--- src/adplay.cc.orig	Fri May  6 19:23:17 2005
X+++ src/adplay.cc	Fri May  6 19:23:24 2005
X@@ -25,16 +25,15 @@
X #include <adplug/adplug.h>
X #include <adplug/emuopl.h>
X #include <adplug/kemuopl.h>
X+#include <getopt.h>
X 
X /*
X- * Apple (OS X) and Sun systems declare getopt in unistd.h, other systems
X- * (Linux) use getopt.h.
X- */
X #if defined ( __APPLE__ ) || ( defined (__SVR4) && defined (__sun) )
X #       include <unistd.h>
X #else
X #       include "getopt.h"
X #endif
X+*/
X 
X #include "defines.h"
X #include "output.h"
END-of-adplay/files/patch-src-adplay.cc
echo x - adplay/Makefile
sed 's/^X//' >adplay/Makefile << 'END-of-adplay/Makefile'
X# New ports collection makefile for:   adplay
X# Date created:		10 August 2004
X# Whom:			Emanuel Haupt <ehaupt at critical.ch>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	adplay
XPORTVERSION=	1.4
XCATEGORIES=	audio
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
XMASTER_SITE_SUBDIR=	adplug
X
XMAINTAINER=	ehaupt at critical.ch
XCOMMENT=	AdLib player using adplug library
X
XLIB_DEPENDS=	adplug-1.5.0:${PORTSDIR}/audio/libadplug
X
XPLIST_FILES=	bin/adplay
X
XGNU_CONFIGURE=	yes
X
XCPPFLAGS+=	-I${LOCALBASE}/include
XLDFLAGS+=	-L${LOCALBASE}/lib
X
XCONFIGURE_ENV=	CFLAGS="${CFLAGS} ${CPPFLAGS}" \
X		CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" \
X		CPPFLAGS="${CPPFLAGS}" \
X		LDFLAGS="${LDFLAGS}"
X
XMAN1=		adplay.1
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X.if ${OSVERSION} > 500000
X	${RM} ${WRKSRC}/src/getopt.h
X.endif
X
Xdo-install:
X	${INSTALL} ${WRKSRC}/src/adplay ${PREFIX}/bin
X	${INSTALL_MAN} ${WRKSRC}/doc/adplay.1 ${MANPREFIX}/man/man1
X
X.include <bsd.port.post.mk>
END-of-adplay/Makefile
echo x - adplay/pkg-descr
sed 's/^X//' >adplay/pkg-descr << 'END-of-adplay/pkg-descr'
XAdplay is a command line AdLib player using the adplug library. It supports
Xmany AdLib formats such as HSP and HSC.
X
XWWW: http://adplug.sourceforge.net/
X
X- ehaupt
Xehaupt at critical.ch
END-of-adplay/pkg-descr
echo x - adplay/distinfo
sed 's/^X//' >adplay/distinfo << 'END-of-adplay/distinfo'
XMD5 (adplay-1.4.tar.gz) = 1fbb6ccbc3f559cbec8768e2554a1d59
XSIZE (adplay-1.4.tar.gz) = 338761
END-of-adplay/distinfo
exit
--- audio/adplay shar end   ---


--- audio/libadplug shar start ---
# 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:
#
#	libadplug
#	libadplug/files
#	libadplug/files/patch-adplugdb-adplugdb.cpp
#	libadplug/Makefile
#	libadplug/pkg-descr
#	libadplug/distinfo
#	libadplug/pkg-plist
#
echo c - libadplug
mkdir -p libadplug > /dev/null 2>&1
echo c - libadplug/files
mkdir -p libadplug/files > /dev/null 2>&1
echo x - libadplug/files/patch-adplugdb-adplugdb.cpp
sed 's/^X//' >libadplug/files/patch-adplugdb-adplugdb.cpp << 'END-of-libadplug/files/patch-adplugdb-adplugdb.cpp'
X--- adplugdb/adplugdb.cpp.orig	Sun Aug  8 21:17:40 2004
X+++ adplugdb/adplugdb.cpp	Sat May  7 06:16:26 2005
X@@ -29,6 +29,7 @@
X #include <binfile.h>
X #include <string>
X #include <iostream>
X+#include <unistd.h>
X 
X #if defined(HAVE_SYS_TYPES_H) && defined(HAVE_SYS_STAT_H)
X #  if HAVE_SYS_TYPES_H
X@@ -46,16 +47,6 @@
X #include "../src/adplug.h"
X #include "../src/silentopl.h"
X #include "../src/database.h"
X-
X-/*
X- * Apple (OS X) and Sun systems declare getopt in unistd.h, other systems
X- * (Linux) use getopt.h.
X- */
X-#if defined ( __APPLE__ ) || ( defined (__SVR4) && defined (__sun) )
X-#	include <unistd.h>
X-#else
X-#	include "getopt.h"
X-#endif
X 
X /***** Defines *****/
X 
END-of-libadplug/files/patch-adplugdb-adplugdb.cpp
echo x - libadplug/Makefile
sed 's/^X//' >libadplug/Makefile << 'END-of-libadplug/Makefile'
X# New ports collection makefile for:   adplug
X# Date created:		10 August 2004
X# Whom:			Emanuel Haupt <ehaupt at critical.ch>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libadplug
XPORTVERSION=	1.5
XCATEGORIES=	audio
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
XMASTER_SITE_SUBDIR=	adplug
XDISTNAME=	adplug-${PORTVERSION}
X
XMAINTAINER=	ehaupt at critical.ch
XCOMMENT=	AdLib emulator library supporting many formats
X
XLIB_DEPENDS=	binio.1:${PORTSDIR}/devel/libbinio
X
XGNU_CONFIGURE=	yes
XINSTALLS_SHLIB=	yes
XUSE_LIBTOOL_VER=	15
XUSE_REINPLACE=	yes
X
XCPPFLAGS+=	-I${LOCALBASE}/include
XLDFLAGS+=	-L${LOCALBASE}/lib
X
XCONFIGURE_ENV=	CFLAGS="${CFLAGS} ${CPPFLAGS}" \
X		CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" \
X		CPPFLAGS="${CPPFLAGS}" \
X		LDFLAGS="${LDFLAGS}"
X
XMAN1=		adplugdb.1
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|^\(SUBDIRS\ =\).*|\1 src adplugdb test|' \
X		${WRKSRC}/Makefile.in
X
Xpre-install:
X	${MKDIR} ${MANPREFIX}/man/man1
X	${INSTALL_MAN} ${WRKSRC}/doc/adplugdb.1 ${MANPREFIX}/man/man1
X
X.include <bsd.port.mk>
END-of-libadplug/Makefile
echo x - libadplug/pkg-descr
sed 's/^X//' >libadplug/pkg-descr << 'END-of-libadplug/pkg-descr'
XAdPlug is a free, cross-platform, hardware independent AdLib sound player
Xlibrary, mainly written in C++ and released under the LGPL. AdPlug plays
Xsound data, originally created for the AdLib (OPL2) audio board, directly
Xfrom its original format on top of an OPL2 emulator or by using the real
Xhardware. No OPL chip is required for playback.
X
XAdPlug itself is just the backend to many different audio player frontends,
Xwhich are also being developed here. There are plugins for popular audio
Xplayers, like Winamp and XMMS, as well as stand-alone players for many
Xdifferent systems available.
X
XWWW: http://adplug.sourceforge.net/
X
X- ehaupt
Xehaupt at critical.ch
END-of-libadplug/pkg-descr
echo x - libadplug/distinfo
sed 's/^X//' >libadplug/distinfo << 'END-of-libadplug/distinfo'
XMD5 (adplug-1.5.tar.gz) = b93a162bc5cfb1493d2affdfed18e9a1
XSIZE (adplug-1.5.tar.gz) = 962345
END-of-libadplug/distinfo
echo x - libadplug/pkg-plist
sed 's/^X//' >libadplug/pkg-plist << 'END-of-libadplug/pkg-plist'
Xbin/adplugdb
Xinclude/adplug/adplug.h
Xinclude/adplug/emuopl.h
Xinclude/adplug/fmopl.h
Xinclude/adplug/silentopl.h
Xinclude/adplug/opl.h
Xinclude/adplug/diskopl.h
Xinclude/adplug/a2m.h
Xinclude/adplug/amd.h
Xinclude/adplug/bam.h
Xinclude/adplug/d00.h
Xinclude/adplug/dfm.h
Xinclude/adplug/hsc.h
Xinclude/adplug/hsp.h
Xinclude/adplug/imf.h
Xinclude/adplug/ksm.h
Xinclude/adplug/lds.h
Xinclude/adplug/mid.h
Xinclude/adplug/mkj.h
Xinclude/adplug/mtk.h
Xinclude/adplug/protrack.h
Xinclude/adplug/rad.h
Xinclude/adplug/raw.h
Xinclude/adplug/s3m.h
Xinclude/adplug/sa2.h
Xinclude/adplug/sng.h
Xinclude/adplug/u6m.h
Xinclude/adplug/player.h
Xinclude/adplug/fmc.h
Xinclude/adplug/mad.h
Xinclude/adplug/xad.h
Xinclude/adplug/bmf.h
Xinclude/adplug/flash.h
Xinclude/adplug/hyp.h
Xinclude/adplug/psi.h
Xinclude/adplug/rat.h
Xinclude/adplug/hybrid.h
Xinclude/adplug/rol.h
Xinclude/adplug/adtrack.h
Xinclude/adplug/cff.h
Xinclude/adplug/dtm.h
Xinclude/adplug/dmo.h
Xinclude/adplug/fprovide.h
Xinclude/adplug/database.h
Xinclude/adplug/players.h
Xinclude/adplug/xsm.h
Xinclude/adplug/adlibemu.h
Xinclude/adplug/kemuopl.h
Xinclude/adplug/dro.h
Xlib/libadplug-1.5.so
Xlib/libadplug.so
Xlib/libadplug-1.5.so.0
Xlib/libadplug.a
X at dirrm include/adplug
END-of-libadplug/pkg-plist
exit
--- audio/libadplug shar end   ---


--- devel/libbinio shar start ---
# 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:
#
#	libbinio
#	libbinio/pkg-descr
#	libbinio/Makefile
#	libbinio/distinfo
#	libbinio/pkg-plist
#
echo c - libbinio
mkdir -p libbinio > /dev/null 2>&1
echo x - libbinio/pkg-descr
sed 's/^X//' >libbinio/pkg-descr << 'END-of-libbinio/pkg-descr'
XThe binary I/O stream class library presents a platform-independent way to
Xaccess binary data streams in C++.
X
XThe library is hardware independent in the form that it transparently
Xconverts between the different forms of machine-internal binary data
Xrepresentation.
X
XIt further employs no special I/O protocol and can be used on arbitrary
Xbinary data sources.
X
XWWW: http://libbinio.sourceforge.net/
X
X- ehaupt
Xehaupt at critical.ch
END-of-libbinio/pkg-descr
echo x - libbinio/Makefile
sed 's/^X//' >libbinio/Makefile << 'END-of-libbinio/Makefile'
X# New ports collection makefile for:   libbinio
X# Date created:		10 August 2004
X# Whom:			Emanuel Haupt <ehaupt at critical.ch>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libbinio
XPORTVERSION=	1.3
XCATEGORIES=	devel
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
XMASTER_SITE_SUBDIR=	libbinio
X
XMAINTAINER=	ehaupt at critical.ch
XCOMMENT=	Binary I/O stream class library
X
XGNU_CONFIGURE=	yes
XINSTALLS_SHLIB=	yes
XUSE_LIBTOOL_VER=	15
XUSE_REINPLACE=	yes
X
XCPPFLAGS+=	-I${LOCALBASE}/include
XLDFLAGS+=	-L${LOCALBASE}/lib
X
XCONFIGURE_ENV=	CFLAGS="${CFLAGS} ${CPPFLAGS}" \
X		CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" \
X		CPPFLAGS="${CPPFLAGS}" \
X		LDFLAGS="${LDFLAGS}"
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|^\(SUBDIRS\ =\).*|\1 src|' \
X		${WRKSRC}/Makefile.in
X
X.include <bsd.port.mk>
END-of-libbinio/Makefile
echo x - libbinio/distinfo
sed 's/^X//' >libbinio/distinfo << 'END-of-libbinio/distinfo'
XMD5 (libbinio-1.3.tar.gz) = 2bee4db14e3b3ef45a58291b7c9b5898
XSIZE (libbinio-1.3.tar.gz) = 434702
END-of-libbinio/distinfo
echo x - libbinio/pkg-plist
sed 's/^X//' >libbinio/pkg-plist << 'END-of-libbinio/pkg-plist'
Xinclude/binio.h
Xinclude/binfile.h
Xinclude/binwrap.h
Xinclude/binstr.h
Xlib/libbinio.so.1
Xlib/libbinio.a
END-of-libbinio/pkg-plist
exit
--- devel/libbinio shar end   ---

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



More information about the freebsd-ports-bugs mailing list