summaryrefslogtreecommitdiff
path: root/homebrew/mpg321
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/mpg321
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/mpg321')
-rw-r--r--homebrew/mpg321/.beer68
-rw-r--r--homebrew/mpg321/.make.sh-auto3
-rw-r--r--homebrew/mpg321/_metadata/description1
-rw-r--r--homebrew/mpg321/_metadata/homepage1
-rw-r--r--homebrew/mpg321/_metadata/name1
-rw-r--r--homebrew/mpg321/_metadata/version1
-rwxr-xr-xhomebrew/mpg321/download.sh1
-rwxr-xr-xhomebrew/mpg321/patches.sh30
8 files changed, 106 insertions, 0 deletions
diff --git a/homebrew/mpg321/.beer b/homebrew/mpg321/.beer
new file mode 100644
index 000000000..e3b3b9b00
--- /dev/null
+++ b/homebrew/mpg321/.beer
@@ -0,0 +1,68 @@
+{
+ "name": "Mpg321",
+ "description": "Command-line MP3 player",
+ "url": "https://downloads.sourceforge.net/project/mpg321/mpg321/0.3.2/mpg321_0.3.2.orig.tar.gz",
+ "mirror": null,
+ "homepage": "https://mpg321.sourceforge.io/",
+ "depends": [
+ {
+ "depend": "libao",
+ "build-depend": false
+ },
+ {
+ "depend": "libid3tag",
+ "build-depend": false
+ },
+ {
+ "depend": "mad",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "--- a/mpg321.h\t2012-03-25 05:27:49.000000000 -0700\n",
+ "+++ b/mpg321.h\t2012-11-15 20:54:28.000000000 -0800\n",
+ "@@ -290,7 +290,7 @@\n",
+ " /* Shared total decoded frames */\n",
+ " decoded_frames *Decoded_Frames;\n",
+ " \n",
+ "-#if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)\n",
+ "+#if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) || defined(__APPLE__)\n",
+ " /* */\n",
+ " #else\n",
+ " union semun {\n",
+ "--- a/network.c\t2012-03-25 05:27:49.000000000 -0700\n",
+ "+++ b/network.c\t2012-11-15 20:58:02.000000000 -0800\n",
+ "@@ -50,6 +50,13 @@\n",
+ " \n",
+ " #define IFVERB if(options.opt & MPG321_VERBOSE_PLAY)\n",
+ " \n",
+ "+/* The following defines are needed to emulate the Linux interface on\n",
+ "+ * BSD-based systems like FreeBSD and OS X */\n",
+ "+#if !defined(IPV6_ADD_MEMBERSHIP) && defined(IPV6_JOIN_GROUP)\n",
+ "+#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP\n",
+ "+#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP\n",
+ "+#endif\n",
+ "+\n",
+ " int proxy_enable = 0;\n",
+ " char *proxy_server;\n",
+ " int auth_enable = 0;\n"
+ ]
+ }
+ ],
+ "install": [
+ "system \"./configure\", \"--disable-dependency-tracking\",",
+ "\"--disable-debug\",",
+ "\"--prefix=#{prefix}\",",
+ "\"--disable-mpg123-symlink\",",
+ "\"--enable-ipv6\",",
+ "\"--disable-alsa\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "321_0.3.2",
+ "file": "mpg321.rb"
+} \ No newline at end of file
diff --git a/homebrew/mpg321/.make.sh-auto b/homebrew/mpg321/.make.sh-auto
new file mode 100644
index 000000000..cd22784c3
--- /dev/null
+++ b/homebrew/mpg321/.make.sh-auto
@@ -0,0 +1,3 @@
+pkg:setup
+pkg:configure --disable-dependency-tracking --disable-mpg123-symlink --enable-ipv6 --disable-alsa
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/mpg321/_metadata/description b/homebrew/mpg321/_metadata/description
new file mode 100644
index 000000000..a0b14cfd9
--- /dev/null
+++ b/homebrew/mpg321/_metadata/description
@@ -0,0 +1 @@
+Command-line MP3 player
diff --git a/homebrew/mpg321/_metadata/homepage b/homebrew/mpg321/_metadata/homepage
new file mode 100644
index 000000000..435a2fa61
--- /dev/null
+++ b/homebrew/mpg321/_metadata/homepage
@@ -0,0 +1 @@
+https://mpg321.sourceforge.io/
diff --git a/homebrew/mpg321/_metadata/name b/homebrew/mpg321/_metadata/name
new file mode 100644
index 000000000..0ce50ea87
--- /dev/null
+++ b/homebrew/mpg321/_metadata/name
@@ -0,0 +1 @@
+Mpg321
diff --git a/homebrew/mpg321/_metadata/version b/homebrew/mpg321/_metadata/version
new file mode 100644
index 000000000..8a90969df
--- /dev/null
+++ b/homebrew/mpg321/_metadata/version
@@ -0,0 +1 @@
+321_0.3.2
diff --git a/homebrew/mpg321/download.sh b/homebrew/mpg321/download.sh
new file mode 100755
index 000000000..fe96bb439
--- /dev/null
+++ b/homebrew/mpg321/download.sh
@@ -0,0 +1 @@
+wget https://downloads.sourceforge.net/project/mpg321/mpg321/0.3.2/mpg321_0.3.2.orig.tar.gz \ No newline at end of file
diff --git a/homebrew/mpg321/patches.sh b/homebrew/mpg321/patches.sh
new file mode 100755
index 000000000..1d31ce534
--- /dev/null
+++ b/homebrew/mpg321/patches.sh
@@ -0,0 +1,30 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+--- a/mpg321.h 2012-03-25 05:27:49.000000000 -0700
++++ b/mpg321.h 2012-11-15 20:54:28.000000000 -0800
+@@ -290,7 +290,7 @@
+ /* Shared total decoded frames */
+ decoded_frames *Decoded_Frames;
+
+-#if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)
++#if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) || defined(__APPLE__)
+ /* */
+ #else
+ union semun {
+--- a/network.c 2012-03-25 05:27:49.000000000 -0700
++++ b/network.c 2012-11-15 20:58:02.000000000 -0800
+@@ -50,6 +50,13 @@
+
+ #define IFVERB if(options.opt & MPG321_VERBOSE_PLAY)
+
++/* The following defines are needed to emulate the Linux interface on
++ * BSD-based systems like FreeBSD and OS X */
++#if !defined(IPV6_ADD_MEMBERSHIP) && defined(IPV6_JOIN_GROUP)
++#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
++#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
++#endif
++
+ int proxy_enable = 0;
+ char *proxy_server;
+ int auth_enable = 0;
+EOF