Import of audio/mikmod, a module audio player.

Patches done by tobiasu@
ok tobiasu@ sthen@ landry@
This commit is contained in:
bcallah 2013-01-13 16:33:58 +00:00
parent 471464214b
commit 2f37904394
7 changed files with 84 additions and 0 deletions

27
audio/mikmod/Makefile Normal file
View File

@ -0,0 +1,27 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/01/13 16:33:58 bcallah Exp $
COMMENT = module audio player
DISTNAME = mikmod-3.2.2
CATEGORIES = audio
HOMEPAGE = http://mikmod.shlomifish.org/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += c m mikmod ncurses pthread sndio
MASTER_SITES = ${HOMEPAGE}/files/
CONFIGURE_STYLE = gnu
LIB_DEPENDS = audio/libmikmod
MAKE_FLAGS = CC="${CC}" CFLAGS="${CFLAGS}"
.include <bsd.port.mk>

2
audio/mikmod/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (mikmod-3.2.2.tar.gz) = 6FZmUb9JvwBiweLoK2gpUoJMeZjM4LsuR6hA5Wegu4A=
SIZE (mikmod-3.2.2.tar.gz) = 262918

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-mikmodrc,v 1.1.1.1 2013/01/13 16:33:58 bcallah Exp $
--- mikmodrc.orig Sun Jan 13 11:25:24 2013
+++ mikmodrc Sun Jan 13 11:26:49 2013
@@ -295,9 +295,9 @@ END "ARCHIVER"
BEGIN "ARCHIVER"
LOCATION = -1
MARKER = ".TAR.BZ2 .TBZ .TBZ2"
- LIST = "tar --use-compress-program=bzip2 -tf \"%a\""
+ LIST = "tar -tjf \"%a\""
NAMEOFFSET = 0
- EXTRACT = "tar --use-compress-program=bzip2 -xOf \"%a\" \"%f\""
+ EXTRACT = "tar -xjf \"%a\" \"%f\""
SKIPPAT = ""
SKIPSTART = 0
SKIPEND = 0

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-src_marchive_c,v 1.1.1.1 2013/01/13 16:33:58 bcallah Exp $
fix off-by-one
--- src/marchive.c.orig Sat Jan 12 03:22:23 2013
+++ src/marchive.c Sat Jan 12 03:23:04 2013
@@ -268,8 +268,8 @@ static BOOL filename2short (char *l, char *s, int len_
static BOOL filename2short (char *l, char *s, int len_s)
{
- strncpy (s, l, len_s);
- s[len_s] = '\0';
+ strncpy (s, l, len_s - 1);
+ s[len_s - 1] = '\0';
return 1;
}

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_mlistedit_c,v 1.1.1.1 2013/01/13 16:33:58 bcallah Exp $
fix off-by-one
--- src/mlistedit.c.orig Sat Jan 12 03:20:10 2013
+++ src/mlistedit.c Sat Jan 12 03:21:01 2013
@@ -917,7 +917,7 @@ void freq_open (char *title, char *path, int actline,
static BOOL cb_list_scan_dir (char *path, int added, int removed, void *data)
{
BOOL quiet = (BOOL)(long)data;
- char str[70], *pos;
+ char str[71], *pos;
int i;
if (!quiet) {

3
audio/mikmod/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
Mikmod is a module player and library supporting many formats, including
mod, s3m, it, and xm. Originally a player for MS-DOS, MikMod has been
ported to other platforms, such as Unix, Macintosh, BeOS, and Java(!!)

5
audio/mikmod/pkg/PLIST Normal file
View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/01/13 16:33:58 bcallah Exp $
@bin bin/mikmod
@man man/man1/mikmod.1
share/mikmod/
share/mikmod/mikmodrc