aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2013-03-23 00:14:34 +0800
committerehaupt <ehaupt@FreeBSD.org>2013-03-23 00:14:34 +0800
commitda3355877d92451b1d7ac1b13608c5856ba5664c (patch)
treef2b0cbc97637bcc30f74987a4b782f13d53db36b /audio
parentd5cb7e4667183727d8c141d03ae49516a71736df (diff)
downloadfreebsd-ports-gnome-da3355877d92451b1d7ac1b13608c5856ba5664c.tar.gz
freebsd-ports-gnome-da3355877d92451b1d7ac1b13608c5856ba5664c.tar.zst
freebsd-ports-gnome-da3355877d92451b1d7ac1b13608c5856ba5664c.zip
- Unbreak
- Define NOT_FOR_ARCH instead of BROKEN for powerpc - Provide a desktop file
Diffstat (limited to 'audio')
-rw-r--r--audio/milkytracker/Makefile14
-rw-r--r--audio/milkytracker/files/patch-milkytracker.desktop13
-rw-r--r--audio/milkytracker/files/patch-src__compression__DecompressorGZIP.cpp18
3 files changed, 36 insertions, 9 deletions
diff --git a/audio/milkytracker/Makefile b/audio/milkytracker/Makefile
index df76a476ee46..a61060d63663 100644
--- a/audio/milkytracker/Makefile
+++ b/audio/milkytracker/Makefile
@@ -3,7 +3,7 @@
PORTNAME= milkytracker
PORTVERSION= 0.90.85
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= http://www.milkytracker.org/files/ \
CRITICAL/${PORTNAME}/${PORTVERSION}/${PORTREVISION}
@@ -13,6 +13,8 @@ COMMENT= Music creation tool inspired by Fast Tracker 2
LICENSE= GPLv3
+NOT_FOR_ARCH= powerpc
+
LIB_DEPENDS+= jack:${PORTSDIR}/audio/jack \
zzip:${PORTSDIR}/devel/zziplib
@@ -26,8 +28,6 @@ LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --disable-alsatest --without-alsa
-PLIST_FILES= bin/milkytracker share/pixmaps/milkytracker.ico \
- share/pixmaps/milkytracker.png
PORTDOCS= FAQ.html MilkyTracker.html ChangeLog.html
ICONS= carton.ico carton.png
@@ -40,6 +40,8 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/resources/pictures/${f} \
${LOCALBASE}/share/pixmaps/${f:C/carton/milkytracker/}
.endfor
+ ${MKDIR} ${DESKTOPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${DESKTOPDIR}
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
@@ -48,10 +50,4 @@ post-install:
.endfor
.endif
-.if ${ARCH} == "powerpc"
-BROKEN= Does not compile on powerpc: fails in assembler
-.else
-BROKEN= does not build
-.endif
-
.include <bsd.port.mk>
diff --git a/audio/milkytracker/files/patch-milkytracker.desktop b/audio/milkytracker/files/patch-milkytracker.desktop
new file mode 100644
index 000000000000..0d2d70c286d9
--- /dev/null
+++ b/audio/milkytracker/files/patch-milkytracker.desktop
@@ -0,0 +1,13 @@
+--- ./milkytracker.desktop.orig 2013-03-22 16:45:01.000000000 +0100
++++ ./milkytracker.desktop 2013-03-22 16:44:53.000000000 +0100
+@@ -0,0 +1,10 @@
++
++[Desktop Entry]
++Name=MilkyTracker
++Comment=Module tracker
++Exec=milkytracker %U
++Terminal=false
++Type=Application
++Icon=milkytracker
++StartupNotify=false
++Categories=AudioVideo;Audio;Sequencer;
diff --git a/audio/milkytracker/files/patch-src__compression__DecompressorGZIP.cpp b/audio/milkytracker/files/patch-src__compression__DecompressorGZIP.cpp
new file mode 100644
index 000000000000..eb5dda2126a6
--- /dev/null
+++ b/audio/milkytracker/files/patch-src__compression__DecompressorGZIP.cpp
@@ -0,0 +1,18 @@
+--- ./src/compression/DecompressorGZIP.cpp.orig 2013-03-22 15:58:05.955397673 +0100
++++ ./src/compression/DecompressorGZIP.cpp 2013-03-22 15:59:20.987397134 +0100
+@@ -57,11 +57,13 @@
+
+ bool DecompressorGZIP::decompress(const PPSystemString& outFileName, Hints hint)
+ {
+- gzFile *gz_input_file = NULL;
++// gzFile *gz_input_file = NULL;
++ gzFile gz_input_file = NULL;
+ int len = 0;
+ pp_uint8 *buf;
+
+- if ((gz_input_file = (void **)gzopen (fileName.getStrBuffer(), "r")) == NULL)
++// if ((gz_input_file = (void **)gzopen (fileName.getStrBuffer(), "r")) == NULL)
++ if ((gz_input_file = gzopen (fileName.getStrBuffer(), "r")) == NULL)
+ return false;
+
+ if ((buf = new pp_uint8[0x10000]) == NULL)