mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
- Update to 0.4.4
PR: 134622 Submitted by: Ports Fury
This commit is contained in:
parent
cfa55d967f
commit
f13535f71e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=234446
@ -6,52 +6,102 @@
|
||||
#
|
||||
|
||||
PORTNAME= lmms
|
||||
PORTVERSION= 20061204
|
||||
PORTREVISION= 8
|
||||
PORTVERSION= 0.4.4
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
MASTER_SITE_SUBDIR= jylefort
|
||||
MASTER_SITES= SF
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= An all-in-one sequencer, drum machine, sampler and more
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
|
||||
LIB_DEPENDS= jack:${PORTSDIR}/audio/jack \
|
||||
vorbis:${PORTSDIR}/audio/libvorbis \
|
||||
FLAC:${PORTSDIR}/audio/flac \
|
||||
samplerate:${PORTSDIR}/audio/libsamplerate \
|
||||
sndfile:${PORTSDIR}/audio/libsndfile
|
||||
RUN_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
|
||||
LIB_DEPENDS= FLAC.10:${PORTSDIR}/audio/flac \
|
||||
fluidsynth.2:${PORTSDIR}/audio/fluidsynth \
|
||||
samplerate.1:${PORTSDIR}/audio/libsamplerate \
|
||||
sndfile.1:${PORTSDIR}/audio/libsndfile \
|
||||
vorbis.4:${PORTSDIR}/audio/libvorbis \
|
||||
fftw3f.5:${PORTSDIR}/math/fftw3-float
|
||||
RUN_DEPENDS:= ${BUILD_DEPENDS} \
|
||||
${LOCALBASE}/share/ladspa/rdf/caps.rdf:${PORTSDIR}/audio/caps-plugins \
|
||||
${LOCALBASE}/lib/ladspa/cmt.so:${PORTSDIR}/audio/cmt \
|
||||
${LOCALBASE}/share/ladspa/rdf/swh-plugins.rdf:${PORTSDIR}/audio/swhplugins \
|
||||
${LOCALBASE}/share/ladspa/rdf/tap-plugins.rdf:${PORTSDIR}/audio/tap-plugins \
|
||||
update-mime-database:${PORTSDIR}/misc/shared-mime-info
|
||||
|
||||
OPTIONS= JACK "Enable JACK support" OFF \
|
||||
PULSEAUDIO "Enable PulseAudio support" OFF \
|
||||
SDL "Enable SDL support" OFF
|
||||
|
||||
USE_BZIP2= yes
|
||||
USE_QT_VER= 3
|
||||
USE_SDL= sdl sound
|
||||
USE_GMAKE= yes
|
||||
|
||||
USE_AUTOTOOLS= autoconf:262 autoheader:262 automake:19 aclocal:19 libtool:15
|
||||
ACLOCAL_ARGS= -I ${LOCALBASE}/share/aclocal
|
||||
AUTOMAKE_ARGS= -a
|
||||
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
||||
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
||||
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
||||
CONFIGURE_ARGS= --without-vst --without-stk
|
||||
USE_XORG= xft
|
||||
USE_QT_VER= 4
|
||||
QT_COMPONENTS= corelib gui xml moc_build uic_build rcc_build \
|
||||
qmake_build
|
||||
USE_CMAKE= yes
|
||||
CMAKE_USE_PTHREAD= yes
|
||||
CMAKE_ARGS= -DWANT_ALSA:BOOL=OFF \
|
||||
-DWANT_CAPS:BOOL=OFF \
|
||||
-DWANT_CMT:BOOL=OFF \
|
||||
-DWANT_SWH:BOOL=OFF \
|
||||
-DWANT_STK:BOOL=OFF \
|
||||
-DWANT_TAP:BOOL=OFF \
|
||||
-DWANT_VST:BOOL=OFF
|
||||
|
||||
MANCOMPRESSED= yes
|
||||
MAN1= lmms.1
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|@PREFIX@|${PREFIX}|; s|@LOCALBASE@|${LOCALBASE}|' \
|
||||
${WRKSRC}/plugins/ladspa_base/ladspa_manager.cpp \
|
||||
${WRKSRC}/src/core/config_mgr.cpp
|
||||
@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' \
|
||||
${WRKSRC}/data/lmms \
|
||||
${WRKSRC}/data/lmms.desktop
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
|
||||
pre-configure:
|
||||
@cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE}
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_JACK)
|
||||
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
|
||||
.else
|
||||
CMAKE_ARGS+= -DWANT_JACK:BOOL=OFF
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PULSEAUDIO)
|
||||
LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pluseaudio
|
||||
.else
|
||||
CMAKE_ARGS+= -DWANT_PULSEAUDIO:BOOL=OFF
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SDL)
|
||||
USE_SDL= sdl
|
||||
.else
|
||||
CMAKE_ARGS+= -DWANT_SDL:BOOL=OFF
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.for file in CMakeLists.txt
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|-O2 -g||g ; \
|
||||
s|-ftree-vectorize||g ; \
|
||||
s|/share/man/|/man/|g' ${WRKSRC}/${file}
|
||||
.endfor
|
||||
.for file in data/lmms.desktop
|
||||
@${REINPLACE_CMD} -e \
|
||||
'/^Icon/s|=.*$$|=lmms|g ; \
|
||||
/^Exec/s|=.*$$|=lmms|g ; \
|
||||
/^Categories/s|$$|;|g ; \
|
||||
/^MimeType/s|$$|;|g' ${WRKSRC}/${file}
|
||||
.endfor
|
||||
.for file in data/lmms src/core/config_mgr.cpp
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|/usr|${PREFIX}|g' ${WRKSRC}/${file}
|
||||
.endfor
|
||||
.for file in src/core/ladspa_manager.cpp
|
||||
@${REINPLACE_CMD} -e \
|
||||
'/\/usr\/lib/d ; \
|
||||
s|/usr/local|${PREFIX}|g' ${WRKSRC}/${file}
|
||||
.endfor
|
||||
|
||||
post-install:
|
||||
@${LN} -sf ${DATADIR}/themes/default/icon.png \
|
||||
${PREFIX}/share/pixmaps/lmms.png
|
||||
@-update-mime-database ${PREFIX}/share/mime
|
||||
# make it setuid-root to be able to set realtime priority
|
||||
# (root privileges are dropped in the main routine)
|
||||
${CHMOD} u+s ${PREFIX}/bin/lmms
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (lmms-20061204.tar.bz2) = 1505a671f76cfdaf3fdb955291d68310
|
||||
SHA256 (lmms-20061204.tar.bz2) = 816c84185d7d9bb49db6bcd1b8e2c57ff395eb7f4bbe3c8522723fc95b4f5539
|
||||
SIZE (lmms-20061204.tar.bz2) = 6945426
|
||||
MD5 (lmms-0.4.4.tar.bz2) = c09f00053d1defddb1df7131715f2b74
|
||||
SHA256 (lmms-0.4.4.tar.bz2) = b154db81b344eedf2b9e024407524729e1e200cfc65018351da2de68aeba0bac
|
||||
SIZE (lmms-0.4.4.tar.bz2) = 12445986
|
||||
|
@ -1,12 +0,0 @@
|
||||
--- configure.in.orig Mon Dec 4 15:23:38 2006
|
||||
+++ configure.in Mon Dec 4 15:35:43 2006
|
||||
@@ -62,9 +62,6 @@
|
||||
fi
|
||||
fi
|
||||
|
||||
-CFLAGS="$DEFAULTFLAGS $CFLAGS"
|
||||
-CXXFLAGS="$DEFAULTFLAGS $CXXFLAGS"
|
||||
-
|
||||
AC_PATH_XTRA
|
||||
gw_CHECK_QT
|
||||
|
178
audio/lmms/files/patch-plugins__flp_import__unrtf__attr.c
Normal file
178
audio/lmms/files/patch-plugins__flp_import__unrtf__attr.c
Normal file
@ -0,0 +1,178 @@
|
||||
--- plugins/flp_import/unrtf/attr.c.orig 2009-02-24 07:34:26.000000000 +0900
|
||||
+++ plugins/flp_import/unrtf/attr.c 2009-04-10 22:19:43.000000000 +0900
|
||||
@@ -108,10 +108,10 @@
|
||||
switch(attr)
|
||||
{
|
||||
case ATTR_BOLD:
|
||||
- outstring+=QString().sprintf(op->bold_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->bold_begin);
|
||||
break;
|
||||
case ATTR_ITALIC:
|
||||
- outstring+=QString().sprintf(op->italic_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->italic_begin);
|
||||
break;
|
||||
|
||||
/* Various underlines, they all resolve to HTML's <u> */
|
||||
@@ -123,11 +123,11 @@
|
||||
case ATTR_2DOT_DASH_UL:
|
||||
case ATTR_WORD_UL:
|
||||
case ATTR_UNDERLINE:
|
||||
- outstring+=QString().sprintf(op->underline_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->underline_begin);
|
||||
break;
|
||||
|
||||
case ATTR_DOUBLE_UL:
|
||||
- outstring+=QString().sprintf(op->dbl_underline_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->dbl_underline_begin);
|
||||
break;
|
||||
|
||||
case ATTR_FONTSIZE:
|
||||
@@ -148,18 +148,18 @@
|
||||
break;
|
||||
|
||||
case ATTR_SUPER:
|
||||
- outstring+=QString().sprintf(op->superscript_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->superscript_begin);
|
||||
break;
|
||||
case ATTR_SUB:
|
||||
- outstring+=QString().sprintf(op->subscript_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->subscript_begin);
|
||||
break;
|
||||
|
||||
case ATTR_STRIKE:
|
||||
- outstring+=QString().sprintf(op->strikethru_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->strikethru_begin);
|
||||
break;
|
||||
|
||||
case ATTR_DBL_STRIKE:
|
||||
- outstring+=QString().sprintf(op->dbl_strikethru_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->dbl_strikethru_begin);
|
||||
break;
|
||||
|
||||
case ATTR_EXPAND:
|
||||
@@ -167,16 +167,16 @@
|
||||
break;
|
||||
|
||||
case ATTR_OUTLINE:
|
||||
- outstring+=QString().sprintf(op->outline_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->outline_begin);
|
||||
break;
|
||||
case ATTR_SHADOW:
|
||||
- outstring+=QString().sprintf(op->shadow_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->shadow_begin);
|
||||
break;
|
||||
case ATTR_EMBOSS:
|
||||
- outstring+=QString().sprintf(op->emboss_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->emboss_begin);
|
||||
break;
|
||||
case ATTR_ENGRAVE:
|
||||
- outstring+=QString().sprintf(op->engrave_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->engrave_begin);
|
||||
break;
|
||||
|
||||
case ATTR_CAPS:
|
||||
@@ -189,7 +189,7 @@
|
||||
simulate_smallcaps = TRUE;
|
||||
else {
|
||||
if (op->small_caps_begin)
|
||||
- outstring+=QString().sprintf(op->small_caps_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->small_caps_begin);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -209,10 +209,10 @@
|
||||
switch(attr)
|
||||
{
|
||||
case ATTR_BOLD:
|
||||
- outstring+=QString().sprintf(op->bold_end);
|
||||
+ outstring+=QString().sprintf("%s", op->bold_end);
|
||||
break;
|
||||
case ATTR_ITALIC:
|
||||
- outstring+=QString().sprintf(op->italic_end);
|
||||
+ outstring+=QString().sprintf("%s", op->italic_end);
|
||||
break;
|
||||
|
||||
/* Various underlines, they all resolve to HTML's </u> */
|
||||
@@ -224,11 +224,11 @@
|
||||
case ATTR_2DOT_DASH_UL:
|
||||
case ATTR_WORD_UL:
|
||||
case ATTR_UNDERLINE:
|
||||
- outstring+=QString().sprintf(op->underline_end);
|
||||
+ outstring+=QString().sprintf("%s", op->underline_end);
|
||||
break;
|
||||
|
||||
case ATTR_DOUBLE_UL:
|
||||
- outstring+=QString().sprintf(op->dbl_underline_end);
|
||||
+ outstring+=QString().sprintf("%s", op->dbl_underline_end);
|
||||
break;
|
||||
|
||||
case ATTR_FONTSIZE:
|
||||
@@ -236,47 +236,47 @@
|
||||
break;
|
||||
|
||||
case ATTR_FONTFACE:
|
||||
- outstring+=QString().sprintf(op->font_end);
|
||||
+ outstring+=QString().sprintf("%s", op->font_end);
|
||||
break;
|
||||
|
||||
case ATTR_FOREGROUND:
|
||||
- outstring+=QString().sprintf(op->foreground_end);
|
||||
+ outstring+=QString().sprintf("%s", op->foreground_end);
|
||||
break;
|
||||
case ATTR_BACKGROUND:
|
||||
if (!simple_mode)
|
||||
- outstring+=QString().sprintf(op->background_end);
|
||||
+ outstring+=QString().sprintf("%s", op->background_end);
|
||||
break;
|
||||
|
||||
case ATTR_SUPER:
|
||||
- outstring+=QString().sprintf(op->superscript_end);
|
||||
+ outstring+=QString().sprintf("%s", op->superscript_end);
|
||||
break;
|
||||
case ATTR_SUB:
|
||||
- outstring+=QString().sprintf(op->subscript_end);
|
||||
+ outstring+=QString().sprintf("%s", op->subscript_end);
|
||||
break;
|
||||
|
||||
case ATTR_STRIKE:
|
||||
- outstring+=QString().sprintf(op->strikethru_end);
|
||||
+ outstring+=QString().sprintf("%s", op->strikethru_end);
|
||||
break;
|
||||
|
||||
case ATTR_DBL_STRIKE:
|
||||
- outstring+=QString().sprintf(op->dbl_strikethru_end);
|
||||
+ outstring+=QString().sprintf("%s", op->dbl_strikethru_end);
|
||||
break;
|
||||
|
||||
case ATTR_OUTLINE:
|
||||
- outstring+=QString().sprintf(op->outline_end);
|
||||
+ outstring+=QString().sprintf("%s", op->outline_end);
|
||||
break;
|
||||
case ATTR_SHADOW:
|
||||
- outstring+=QString().sprintf(op->shadow_end);
|
||||
+ outstring+=QString().sprintf("%s", op->shadow_end);
|
||||
break;
|
||||
case ATTR_EMBOSS:
|
||||
- outstring+=QString().sprintf(op->emboss_end);
|
||||
+ outstring+=QString().sprintf("%s", op->emboss_end);
|
||||
break;
|
||||
case ATTR_ENGRAVE:
|
||||
- outstring+=QString().sprintf(op->engrave_end);
|
||||
+ outstring+=QString().sprintf("%s", op->engrave_end);
|
||||
break;
|
||||
|
||||
case ATTR_EXPAND:
|
||||
- outstring+=QString().sprintf(op->expand_end);
|
||||
+ outstring+=QString().sprintf("%s", op->expand_end);
|
||||
break;
|
||||
|
||||
case ATTR_CAPS:
|
||||
@@ -289,7 +289,7 @@
|
||||
simulate_smallcaps = FALSE;
|
||||
else {
|
||||
if (op->small_caps_end)
|
||||
- outstring+=QString().sprintf(op->small_caps_end);
|
||||
+ outstring+=QString().sprintf("%s", op->small_caps_end);
|
||||
}
|
||||
break;
|
||||
}
|
462
audio/lmms/files/patch-plugins__flp_import__unrtf__convert.c
Normal file
462
audio/lmms/files/patch-plugins__flp_import__unrtf__convert.c
Normal file
@ -0,0 +1,462 @@
|
||||
--- plugins/flp_import/unrtf/convert.c.orig 2009-02-24 07:34:26.000000000 +0900
|
||||
+++ plugins/flp_import/unrtf/convert.c 2009-04-10 22:19:43.000000000 +0900
|
||||
@@ -650,8 +650,8 @@
|
||||
{
|
||||
if (!have_printed_body) {
|
||||
if (!inline_mode) {
|
||||
- outstring+=QString().sprintf(op->header_end);
|
||||
- outstring+=QString().sprintf(op->body_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->header_end);
|
||||
+ outstring+=QString().sprintf("%s", op->body_begin);
|
||||
}
|
||||
within_header = FALSE;
|
||||
have_printed_body = TRUE;
|
||||
@@ -926,7 +926,7 @@
|
||||
|
||||
if (!inline_mode) {
|
||||
if (!strcmp("\\title", s)) {
|
||||
- outstring+=QString().sprintf(op->document_title_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->document_title_begin);
|
||||
w2=child->next;
|
||||
while (w2) {
|
||||
char *s2 = word_string(w2);
|
||||
@@ -951,18 +951,18 @@
|
||||
s3 = op_translate_char (op, charset_type, charset_codepage, ch, numchar_table);
|
||||
if (!s3 || !*s3)
|
||||
{
|
||||
- outstring+=QString().sprintf(op->comment_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->comment_begin);
|
||||
outstring+=QString().sprintf("char 0x%02x",ch);
|
||||
- outstring+=QString().sprintf(op->comment_end);
|
||||
+ outstring+=QString().sprintf("%s", op->comment_end);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if (op->word_begin)
|
||||
- outstring+=QString().sprintf(op->word_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->word_begin);
|
||||
outstring+=QString().sprintf("%s", s3);
|
||||
if (op->word_end)
|
||||
- outstring+=QString().sprintf(op->word_end);
|
||||
+ outstring+=QString().sprintf("%s", op->word_end);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -970,10 +970,10 @@
|
||||
#endif
|
||||
w2 = w2->next;
|
||||
}
|
||||
- outstring+=QString().sprintf(op->document_title_end);
|
||||
+ outstring+=QString().sprintf("%s", op->document_title_end);
|
||||
}
|
||||
else if (!strcmp("\\keywords", s)) {
|
||||
- outstring+=QString().sprintf(op->document_keywords_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->document_keywords_begin);
|
||||
w2=child->next;
|
||||
while (w2) {
|
||||
char *s2 = word_string(w2);
|
||||
@@ -981,10 +981,10 @@
|
||||
outstring+=QString().sprintf("%s,", s2);
|
||||
w2 = w2->next;
|
||||
}
|
||||
- outstring+=QString().sprintf(op->document_keywords_end);
|
||||
+ outstring+=QString().sprintf("%s", op->document_keywords_end);
|
||||
}
|
||||
else if (!strcmp("\\author", s)) {
|
||||
- outstring+=QString().sprintf(op->document_author_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->document_author_begin);
|
||||
w2=child->next;
|
||||
while (w2) {
|
||||
char *s2 = word_string(w2);
|
||||
@@ -992,7 +992,7 @@
|
||||
outstring+=QString().sprintf("%s", s2);
|
||||
w2 = w2->next;
|
||||
}
|
||||
- outstring+=QString().sprintf(op->document_author_end);
|
||||
+ outstring+=QString().sprintf("%s", op->document_author_end);
|
||||
}
|
||||
else if (!strcmp("\\comment", s)) {
|
||||
outstring+=QString().sprintf("%s",op->comment_begin);
|
||||
@@ -1312,9 +1312,9 @@
|
||||
w4=w4->next;
|
||||
if (w4) {
|
||||
s4=word_string(w4);
|
||||
- outstring+=QString().sprintf(op->hyperlink_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->hyperlink_begin);
|
||||
outstring+=QString().sprintf("%s", s4);
|
||||
- outstring+=QString().sprintf(op->hyperlink_end);
|
||||
+ outstring+=QString().sprintf("%s", op->hyperlink_end);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -1423,7 +1423,7 @@
|
||||
int need= 8-(total_chars_this_line%8);
|
||||
total_chars_this_line += need;
|
||||
while(need>0) {
|
||||
- outstring+=QString().sprintf(op->forced_space);
|
||||
+ outstring+=QString().sprintf("%s", op->forced_space);
|
||||
need--;
|
||||
}
|
||||
outstring+=QString().sprintf("\n");
|
||||
@@ -1643,7 +1643,7 @@
|
||||
static int
|
||||
cmd_bullet (Word *w, int align, char has_param, int param) {
|
||||
if (op->chars.bullet) {
|
||||
- outstring+=QString().sprintf(op->chars.bullet);
|
||||
+ outstring+=QString().sprintf("%s", op->chars.bullet);
|
||||
++total_chars_this_line; /* \tab */
|
||||
}
|
||||
return FALSE;
|
||||
@@ -1658,7 +1658,7 @@
|
||||
static int
|
||||
cmd_ldblquote (Word *w, int align, char has_param, int param) {
|
||||
if (op->chars.left_dbl_quote) {
|
||||
- outstring+=QString().sprintf(op->chars.left_dbl_quote);
|
||||
+ outstring+=QString().sprintf("%s", op->chars.left_dbl_quote);
|
||||
++total_chars_this_line; /* \tab */
|
||||
}
|
||||
return FALSE;
|
||||
@@ -1675,7 +1675,7 @@
|
||||
static int
|
||||
cmd_rdblquote (Word *w, int align, char has_param, int param) {
|
||||
if (op->chars.right_dbl_quote) {
|
||||
- outstring+=QString().sprintf(op->chars.right_dbl_quote);
|
||||
+ outstring+=QString().sprintf("%s", op->chars.right_dbl_quote);
|
||||
++total_chars_this_line; /* \tab */
|
||||
}
|
||||
return FALSE;
|
||||
@@ -1691,7 +1691,7 @@
|
||||
static int
|
||||
cmd_lquote (Word *w, int align, char has_param, int param) {
|
||||
if (op->chars.left_quote) {
|
||||
- outstring+=QString().sprintf(op->chars.left_quote);
|
||||
+ outstring+=QString().sprintf("%s", op->chars.left_quote);
|
||||
++total_chars_this_line; /* \tab */
|
||||
}
|
||||
return FALSE;
|
||||
@@ -1708,7 +1708,7 @@
|
||||
static int
|
||||
cmd_nonbreaking_space (Word *w, int align, char has_param, int param) {
|
||||
if (op->chars.nonbreaking_space) {
|
||||
- outstring+=QString().sprintf(op->chars.nonbreaking_space);
|
||||
+ outstring+=QString().sprintf("%s", op->chars.nonbreaking_space);
|
||||
++total_chars_this_line; /* \tab */
|
||||
}
|
||||
return FALSE;
|
||||
@@ -1725,7 +1725,7 @@
|
||||
static int
|
||||
cmd_nonbreaking_hyphen (Word *w, int align, char has_param, int param) {
|
||||
if (op->chars.nonbreaking_hyphen) {
|
||||
- outstring+=QString().sprintf(op->chars.nonbreaking_hyphen);
|
||||
+ outstring+=QString().sprintf("%s", op->chars.nonbreaking_hyphen);
|
||||
++total_chars_this_line; /* \tab */
|
||||
}
|
||||
return FALSE;
|
||||
@@ -1742,7 +1742,7 @@
|
||||
static int
|
||||
cmd_optional_hyphen (Word *w, int align, char has_param, int param) {
|
||||
if (op->chars.optional_hyphen) {
|
||||
- outstring+=QString().sprintf(op->chars.optional_hyphen);
|
||||
+ outstring+=QString().sprintf("%s", op->chars.optional_hyphen);
|
||||
++total_chars_this_line; /* \tab */
|
||||
}
|
||||
return FALSE;
|
||||
@@ -1758,7 +1758,7 @@
|
||||
static int
|
||||
cmd_emdash (Word *w, int align, char has_param, int param) {
|
||||
if (op->chars.emdash) {
|
||||
- outstring+=QString().sprintf(op->chars.emdash);
|
||||
+ outstring+=QString().sprintf("%s", op->chars.emdash);
|
||||
++total_chars_this_line; /* \tab */
|
||||
}
|
||||
return FALSE;
|
||||
@@ -1775,7 +1775,7 @@
|
||||
static int
|
||||
cmd_endash (Word *w, int align, char has_param, int param) {
|
||||
if (op->chars.endash) {
|
||||
- outstring+=QString().sprintf(op->chars.endash);
|
||||
+ outstring+=QString().sprintf("%s", op->chars.endash);
|
||||
++total_chars_this_line; /* \tab */
|
||||
}
|
||||
return FALSE;
|
||||
@@ -1792,7 +1792,7 @@
|
||||
static int
|
||||
cmd_rquote (Word *w, int align, char has_param, int param) {
|
||||
if (op->chars.right_quote) {
|
||||
- outstring+=QString().sprintf(op->chars.right_quote);
|
||||
+ outstring+=QString().sprintf("%s", op->chars.right_quote);
|
||||
++total_chars_this_line; /* \tab */
|
||||
}
|
||||
return FALSE;
|
||||
@@ -1808,7 +1808,7 @@
|
||||
static int
|
||||
cmd_par (Word *w, int align, char has_param, int param) {
|
||||
if (op->line_break) {
|
||||
- outstring+=QString().sprintf(op->line_break);
|
||||
+ outstring+=QString().sprintf("%s", op->line_break);
|
||||
total_chars_this_line = 0; /* \tab */
|
||||
}
|
||||
return FALSE;
|
||||
@@ -1825,7 +1825,7 @@
|
||||
static int
|
||||
cmd_line (Word *w, int align, char has_param, int param) {
|
||||
if (op->line_break) {
|
||||
- outstring+=QString().sprintf(op->line_break);
|
||||
+ outstring+=QString().sprintf("%s", op->line_break);
|
||||
total_chars_this_line = 0; /* \tab */
|
||||
}
|
||||
return FALSE;
|
||||
@@ -1841,7 +1841,7 @@
|
||||
|
||||
static int cmd_page (Word *w, int align, char has_param, int param) {
|
||||
if (op->page_break) {
|
||||
- outstring+=QString().sprintf(op->page_break);
|
||||
+ outstring+=QString().sprintf("%s", op->page_break);
|
||||
total_chars_this_line = 0; /* \tab */
|
||||
}
|
||||
return FALSE;
|
||||
@@ -2337,7 +2337,7 @@
|
||||
static int cmd_sect (Word *w, int align, char has_param, int param) {
|
||||
/* XX kludge */
|
||||
if (op->paragraph_begin) {
|
||||
- outstring+=QString().sprintf(op->paragraph_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->paragraph_begin);
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
@@ -2351,9 +2351,9 @@
|
||||
|
||||
static int cmd_shp (Word *w, int align, char has_param, int param) {
|
||||
if (op->comment_begin) {
|
||||
- outstring+=QString().sprintf(op->comment_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->comment_begin);
|
||||
outstring+=QString().sprintf("Drawn Shape (ignored--not implemented yet)");
|
||||
- outstring+=QString().sprintf(op->comment_end); /* daved 0.20.2 */
|
||||
+ outstring+=QString().sprintf("%s", op->comment_end); /* daved 0.20.2 */
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
@@ -2404,17 +2404,17 @@
|
||||
charset_codepage = &codepages[i];
|
||||
if (charset_codepage->cp == param) {
|
||||
if (op->comment_begin) {
|
||||
- outstring+=QString().sprintf(op->comment_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->comment_begin);
|
||||
outstring+=QString().sprintf("document uses ANSI codepage %d character set", param);
|
||||
- outstring+=QString().sprintf(op->comment_end);
|
||||
+ outstring+=QString().sprintf("%s", op->comment_end);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ((charset_codepage == NULL || charset_codepage->cp == 0) && op->comment_begin) {
|
||||
- outstring+=QString().sprintf(op->comment_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->comment_begin);
|
||||
outstring+=QString().sprintf("document uses default ANSI codepage character set");
|
||||
- outstring+=QString().sprintf(op->comment_end);
|
||||
+ outstring+=QString().sprintf("%s", op->comment_end);
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
@@ -3106,7 +3106,7 @@
|
||||
if (simulate_smallcaps) {
|
||||
if (*s >= 'a' && *s <= 'z') {
|
||||
state=SMALL;
|
||||
- outstring+=QString().sprintf(op->smaller_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->smaller_begin);
|
||||
}
|
||||
else
|
||||
state=BIG;
|
||||
@@ -3136,13 +3136,13 @@
|
||||
ch = *s;
|
||||
if (ch >= 'a' && ch <= 'z') {
|
||||
if (state==BIG)
|
||||
- outstring+=QString().sprintf(op->smaller_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->smaller_begin);
|
||||
state=SMALL;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (state==SMALL)
|
||||
- outstring+=QString().sprintf(op->smaller_end);
|
||||
+ outstring+=QString().sprintf("%s", op->smaller_end);
|
||||
state=BIG;
|
||||
}
|
||||
}
|
||||
@@ -3168,7 +3168,7 @@
|
||||
have_printed_cell_end = FALSE;
|
||||
attrstack_push();
|
||||
starting_body();
|
||||
- outstring+=QString().sprintf(op->table_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->table_begin);
|
||||
}
|
||||
|
||||
|
||||
@@ -3186,12 +3186,12 @@
|
||||
if (within_table) {
|
||||
if (!have_printed_cell_end) {
|
||||
attr_pop_dump();
|
||||
- outstring+=QString().sprintf(op->table_cell_end);
|
||||
+ outstring+=QString().sprintf("%s", op->table_cell_end);
|
||||
}
|
||||
if (!have_printed_row_end) {
|
||||
- outstring+=QString().sprintf(op->table_row_end);
|
||||
+ outstring+=QString().sprintf("%s", op->table_row_end);
|
||||
}
|
||||
- outstring+=QString().sprintf(op->table_end);
|
||||
+ outstring+=QString().sprintf("%s", op->table_end);
|
||||
within_table=FALSE;
|
||||
have_printed_row_begin = FALSE;
|
||||
have_printed_cell_begin = FALSE;
|
||||
@@ -3213,13 +3213,13 @@
|
||||
starting_text() {
|
||||
if (within_table) {
|
||||
if (!have_printed_row_begin) {
|
||||
- outstring+=QString().sprintf(op->table_row_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->table_row_begin);
|
||||
have_printed_row_begin=TRUE;
|
||||
have_printed_row_end=FALSE;
|
||||
have_printed_cell_begin=FALSE;
|
||||
}
|
||||
if (!have_printed_cell_begin) {
|
||||
- outstring+=QString().sprintf(op->table_cell_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->table_cell_begin);
|
||||
attrstack_express_all();
|
||||
have_printed_cell_begin=TRUE;
|
||||
have_printed_cell_end=FALSE;
|
||||
@@ -3246,15 +3246,15 @@
|
||||
switch (align)
|
||||
{
|
||||
case ALIGN_CENTER:
|
||||
- outstring+=QString().sprintf(op->center_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->center_begin);
|
||||
break;
|
||||
case ALIGN_LEFT:
|
||||
break;
|
||||
case ALIGN_RIGHT:
|
||||
- outstring+=QString().sprintf(op->align_right_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->align_right_begin);
|
||||
break;
|
||||
case ALIGN_JUSTIFY:
|
||||
- outstring+=QString().sprintf(op->align_right_begin); /* This is WRONG! */
|
||||
+ outstring+=QString().sprintf("%s", op->align_right_begin); /* This is WRONG! */
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -3273,16 +3273,16 @@
|
||||
{
|
||||
switch (align) {
|
||||
case ALIGN_CENTER:
|
||||
- outstring+=QString().sprintf(op->center_end);
|
||||
+ outstring+=QString().sprintf("%s", op->center_end);
|
||||
break;
|
||||
case ALIGN_LEFT:
|
||||
- /* outstring+=QString().sprintf(op->align_left_end); */
|
||||
+ /* outstring+=QString().sprintf("%s", op->align_left_end); */
|
||||
break;
|
||||
case ALIGN_RIGHT:
|
||||
- outstring+=QString().sprintf(op->align_right_end);
|
||||
+ outstring+=QString().sprintf("%s", op->align_right_end);
|
||||
break;
|
||||
case ALIGN_JUSTIFY:
|
||||
- outstring+=QString().sprintf(op->justify_end);
|
||||
+ outstring+=QString().sprintf("%s", op->justify_end);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -3391,12 +3391,12 @@
|
||||
total_chars_this_line += strlen(s);
|
||||
|
||||
if (op->word_begin)
|
||||
- outstring+=QString().sprintf(op->word_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->word_begin);
|
||||
|
||||
print_with_special_exprs (s);
|
||||
|
||||
if (op->word_end)
|
||||
- outstring+=QString().sprintf(op->word_end);
|
||||
+ outstring+=QString().sprintf("%s", op->word_end);
|
||||
}
|
||||
|
||||
|
||||
@@ -3456,17 +3456,17 @@
|
||||
is_cell_group=TRUE;
|
||||
if (!have_printed_cell_begin) {
|
||||
/* Need this with empty cells */
|
||||
- outstring+=QString().sprintf(op->table_cell_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->table_cell_begin);
|
||||
attrstack_express_all();
|
||||
}
|
||||
attr_pop_dump();
|
||||
- outstring+=QString().sprintf(op->table_cell_end);
|
||||
+ outstring+=QString().sprintf("%s", op->table_cell_end);
|
||||
have_printed_cell_begin = FALSE;
|
||||
have_printed_cell_end=TRUE;
|
||||
}
|
||||
else if (!strcmp (s, "row")) {
|
||||
if (within_table) {
|
||||
- outstring+=QString().sprintf(op->table_row_end);
|
||||
+ outstring+=QString().sprintf("%s", op->table_row_end);
|
||||
have_printed_row_begin = FALSE;
|
||||
have_printed_row_end=TRUE;
|
||||
} else {
|
||||
@@ -3496,10 +3496,10 @@
|
||||
outstring+=QString().sprintf("%s",op->comment_end);
|
||||
} else {
|
||||
if (op->word_begin)
|
||||
- outstring+=QString().sprintf(op->word_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->word_begin);
|
||||
outstring+=QString().sprintf("%s", s2);
|
||||
if (op->word_end)
|
||||
- outstring+=QString().sprintf(op->word_end);
|
||||
+ outstring+=QString().sprintf("%s", op->word_end);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -3529,9 +3529,9 @@
|
||||
|
||||
if (!hip) {
|
||||
if (debug_mode) {
|
||||
- outstring+=QString().sprintf(op->comment_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->comment_begin);
|
||||
outstring+=QString().sprintf("Unfamiliar RTF command: %s (HashIndex not found)", s);
|
||||
- outstring+=QString().sprintf(op->comment_end); /* daved 0.20.2 */
|
||||
+ outstring+=QString().sprintf("%s", op->comment_end); /* daved 0.20.2 */
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -3610,9 +3610,9 @@
|
||||
if (within_picture) {
|
||||
if(pictfile) {
|
||||
fclose(pictfile);
|
||||
- outstring+=QString().sprintf(op->imagelink_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->imagelink_begin);
|
||||
outstring+=QString().sprintf("%s", picture_path);
|
||||
- outstring+=QString().sprintf(op->imagelink_end);
|
||||
+ outstring+=QString().sprintf("%s", op->imagelink_end);
|
||||
}
|
||||
within_picture=FALSE;
|
||||
}
|
||||
@@ -3665,8 +3665,8 @@
|
||||
|
||||
outstring = "";
|
||||
if (!inline_mode) {
|
||||
- outstring+=QString().sprintf(op->document_begin);
|
||||
- outstring+=QString().sprintf(op->header_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->document_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->header_begin);
|
||||
}
|
||||
|
||||
within_header=TRUE;
|
||||
@@ -3677,8 +3677,8 @@
|
||||
end_table();
|
||||
|
||||
if (!inline_mode) {
|
||||
- outstring+=QString().sprintf(op->body_end);
|
||||
- outstring+=QString().sprintf(op->document_end);
|
||||
+ outstring+=QString().sprintf("%s", op->body_end);
|
||||
+ outstring+=QString().sprintf("%s", op->document_end);
|
||||
}
|
||||
_s = outstring;
|
||||
}
|
238
audio/lmms/files/patch-plugins__flp_import__unrtf__output.c
Normal file
238
audio/lmms/files/patch-plugins__flp_import__unrtf__output.c
Normal file
@ -0,0 +1,238 @@
|
||||
--- plugins/flp_import/unrtf/output.c.orig 2009-02-24 07:34:26.000000000 +0900
|
||||
+++ plugins/flp_import/unrtf/output.c 2009-04-10 22:19:43.000000000 +0900
|
||||
@@ -238,49 +238,49 @@
|
||||
switch (size) {
|
||||
case 8:
|
||||
if (op->fontsize8_begin) {
|
||||
- outstring+=QString().sprintf(op->fontsize8_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize8_begin);
|
||||
found_std_expr = TRUE;
|
||||
}
|
||||
break;
|
||||
case 10:
|
||||
if (op->fontsize10_begin) {
|
||||
- outstring+=QString().sprintf(op->fontsize10_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize10_begin);
|
||||
found_std_expr = TRUE;
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
if (op->fontsize12_begin) {
|
||||
- outstring+=QString().sprintf(op->fontsize12_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize12_begin);
|
||||
found_std_expr = TRUE;
|
||||
}
|
||||
break;
|
||||
case 14:
|
||||
if (op->fontsize14_begin) {
|
||||
- outstring+=QString().sprintf(op->fontsize14_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize14_begin);
|
||||
found_std_expr = TRUE;
|
||||
}
|
||||
break;
|
||||
case 18:
|
||||
if (op->fontsize18_begin) {
|
||||
- outstring+=QString().sprintf(op->fontsize18_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize18_begin);
|
||||
found_std_expr = TRUE;
|
||||
}
|
||||
break;
|
||||
case 24:
|
||||
if (op->fontsize24_begin) {
|
||||
- outstring+=QString().sprintf(op->fontsize24_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize24_begin);
|
||||
found_std_expr = TRUE;
|
||||
}
|
||||
break;
|
||||
case 36:
|
||||
if (op->fontsize36_begin) {
|
||||
- outstring+=QString().sprintf(op->fontsize36_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize36_begin);
|
||||
found_std_expr = TRUE;
|
||||
}
|
||||
break;
|
||||
case 48:
|
||||
if (op->fontsize48_begin) {
|
||||
- outstring+=QString().sprintf(op->fontsize48_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize48_begin);
|
||||
found_std_expr = TRUE;
|
||||
}
|
||||
break;
|
||||
@@ -300,46 +300,46 @@
|
||||
* size.
|
||||
*/
|
||||
if (size<9 && op->fontsize8_begin) {
|
||||
- outstring+=QString().sprintf(op->fontsize8_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize8_begin);
|
||||
} else
|
||||
if (size<11 && op->fontsize10_begin) {
|
||||
- outstring+=QString().sprintf(op->fontsize10_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize10_begin);
|
||||
} else
|
||||
if (size<13 && op->fontsize12_begin) {
|
||||
- outstring+=QString().sprintf(op->fontsize12_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize12_begin);
|
||||
} else
|
||||
if (size<16 && op->fontsize14_begin) {
|
||||
- outstring+=QString().sprintf(op->fontsize14_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize14_begin);
|
||||
} else
|
||||
if (size<21 && op->fontsize18_begin) {
|
||||
- outstring+=QString().sprintf(op->fontsize18_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize18_begin);
|
||||
} else
|
||||
if (size<30 && op->fontsize24_begin) {
|
||||
- outstring+=QString().sprintf(op->fontsize24_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize24_begin);
|
||||
} else
|
||||
if (size<42 && op->fontsize36_begin) {
|
||||
- outstring+=QString().sprintf(op->fontsize36_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize36_begin);
|
||||
} else
|
||||
if (size>40 && op->fontsize48_begin) {
|
||||
- outstring+=QString().sprintf(op->fontsize48_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize48_begin);
|
||||
} else
|
||||
/* If we can't even produce a good approximation,
|
||||
* just try to get a font size near 12 point.
|
||||
*/
|
||||
if (op->fontsize12_begin)
|
||||
- outstring+=QString().sprintf(op->fontsize12_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize12_begin);
|
||||
else
|
||||
if (op->fontsize14_begin)
|
||||
- outstring+=QString().sprintf(op->fontsize14_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize14_begin);
|
||||
else
|
||||
if (op->fontsize10_begin)
|
||||
- outstring+=QString().sprintf(op->fontsize10_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize10_begin);
|
||||
else
|
||||
if (op->fontsize18_begin)
|
||||
- outstring+=QString().sprintf(op->fontsize18_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize18_begin);
|
||||
else
|
||||
if (op->fontsize8_begin)
|
||||
- outstring+=QString().sprintf(op->fontsize8_begin);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize8_begin);
|
||||
else
|
||||
error_handler ("output personality lacks sufficient font size change capability");
|
||||
}
|
||||
@@ -367,49 +367,49 @@
|
||||
switch (size) {
|
||||
case 8:
|
||||
if (op->fontsize8_end) {
|
||||
- outstring+=QString().sprintf(op->fontsize8_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize8_end);
|
||||
found_std_expr = TRUE;
|
||||
}
|
||||
break;
|
||||
case 10:
|
||||
if (op->fontsize10_end) {
|
||||
- outstring+=QString().sprintf(op->fontsize10_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize10_end);
|
||||
found_std_expr = TRUE;
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
if (op->fontsize12_end) {
|
||||
- outstring+=QString().sprintf(op->fontsize12_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize12_end);
|
||||
found_std_expr = TRUE;
|
||||
}
|
||||
break;
|
||||
case 14:
|
||||
if (op->fontsize14_end) {
|
||||
- outstring+=QString().sprintf(op->fontsize14_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize14_end);
|
||||
found_std_expr = TRUE;
|
||||
}
|
||||
break;
|
||||
case 18:
|
||||
if (op->fontsize18_end) {
|
||||
- outstring+=QString().sprintf(op->fontsize18_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize18_end);
|
||||
found_std_expr = TRUE;
|
||||
}
|
||||
break;
|
||||
case 24:
|
||||
if (op->fontsize24_end) {
|
||||
- outstring+=QString().sprintf(op->fontsize24_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize24_end);
|
||||
found_std_expr = TRUE;
|
||||
}
|
||||
break;
|
||||
case 36:
|
||||
if (op->fontsize36_end) {
|
||||
- outstring+=QString().sprintf(op->fontsize36_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize36_end);
|
||||
found_std_expr = TRUE;
|
||||
}
|
||||
break;
|
||||
case 48:
|
||||
if (op->fontsize48_end) {
|
||||
- outstring+=QString().sprintf(op->fontsize48_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize48_end);
|
||||
found_std_expr = TRUE;
|
||||
}
|
||||
break;
|
||||
@@ -429,46 +429,46 @@
|
||||
* size.
|
||||
*/
|
||||
if (size<9 && op->fontsize8_end) {
|
||||
- outstring+=QString().sprintf(op->fontsize8_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize8_end);
|
||||
} else
|
||||
if (size<11 && op->fontsize10_end) {
|
||||
- outstring+=QString().sprintf(op->fontsize10_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize10_end);
|
||||
} else
|
||||
if (size<13 && op->fontsize12_end) {
|
||||
- outstring+=QString().sprintf(op->fontsize12_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize12_end);
|
||||
} else
|
||||
if (size<16 && op->fontsize14_end) {
|
||||
- outstring+=QString().sprintf(op->fontsize14_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize14_end);
|
||||
} else
|
||||
if (size<21 && op->fontsize18_end) {
|
||||
- outstring+=QString().sprintf(op->fontsize18_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize18_end);
|
||||
} else
|
||||
if (size<30 && op->fontsize24_end) {
|
||||
- outstring+=QString().sprintf(op->fontsize24_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize24_end);
|
||||
} else
|
||||
if (size<42 && op->fontsize36_end) {
|
||||
- outstring+=QString().sprintf(op->fontsize36_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize36_end);
|
||||
} else
|
||||
if (size>40 && op->fontsize48_end) {
|
||||
- outstring+=QString().sprintf(op->fontsize48_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize48_end);
|
||||
} else
|
||||
/* If we can't even produce a good approximation,
|
||||
* just try to get a font size near 12 point.
|
||||
*/
|
||||
if (op->fontsize12_end)
|
||||
- outstring+=QString().sprintf(op->fontsize12_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize12_end);
|
||||
else
|
||||
if (op->fontsize14_end)
|
||||
- outstring+=QString().sprintf(op->fontsize14_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize14_end);
|
||||
else
|
||||
if (op->fontsize10_end)
|
||||
- outstring+=QString().sprintf(op->fontsize10_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize10_end);
|
||||
else
|
||||
if (op->fontsize18_end)
|
||||
- outstring+=QString().sprintf(op->fontsize18_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize18_end);
|
||||
else
|
||||
if (op->fontsize8_end)
|
||||
- outstring+=QString().sprintf(op->fontsize8_end);
|
||||
+ outstring+=QString().sprintf("%s", op->fontsize8_end);
|
||||
else
|
||||
error_handler ("output personality lacks sufficient font size change capability");
|
||||
}
|
12
audio/lmms/files/patch-plugins__sf2_player__sf2_player.cpp
Normal file
12
audio/lmms/files/patch-plugins__sf2_player__sf2_player.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
--- plugins/sf2_player/sf2_player.cpp.orig 2009-02-24 07:34:26.000000000 +0900
|
||||
+++ plugins/sf2_player/sf2_player.cpp 2009-04-09 05:11:15.000000000 +0900
|
||||
@@ -45,6 +45,9 @@
|
||||
#undef SINGLE_SOURCE_COMPILE
|
||||
#include "embed.cpp"
|
||||
|
||||
+#if defined(__FreeBSD__)
|
||||
+#define log2(x) (log((x)) / log(2))
|
||||
+#endif
|
||||
|
||||
extern "C"
|
||||
{
|
16
audio/lmms/files/patch-plugins__zynaddsubfx__CMakeLists.txt
Normal file
16
audio/lmms/files/patch-plugins__zynaddsubfx__CMakeLists.txt
Normal file
@ -0,0 +1,16 @@
|
||||
--- plugins/zynaddsubfx/CMakeLists.txt.orig 2009-05-05 08:13:15.000000000 +0900
|
||||
+++ plugins/zynaddsubfx/CMakeLists.txt 2009-05-13 04:27:03.000000000 +0900
|
||||
@@ -98,10 +98,11 @@
|
||||
ENDIF(LMMS_HOST_X86 OR LMMS_HOST_X86_64)
|
||||
|
||||
# build ZynAddSubFX with full optimizations
|
||||
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -Wno-write-strings -Wno-deprecated-declarations")
|
||||
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-write-strings -Wno-deprecated-declarations")
|
||||
|
||||
# link default libraries
|
||||
-LINK_LIBRARIES(${FFTW3F_LIBRARIES} -lz -lpthread ${CMAKE_CURRENT_BINARY_DIR}/fltk/bin/libfltk.a)
|
||||
+LINK_DIRECTORIES(${FFTW3F_LIBRARY_DIRS})
|
||||
+LINK_LIBRARIES(${FFTW3F_LIBRARIES} -lz ${CMAKE_CURRENT_BINARY_DIR}/fltk/bin/libfltk.a)
|
||||
|
||||
# FLTK needs X
|
||||
IF(LMMS_BUILD_LINUX)
|
@ -1,17 +0,0 @@
|
||||
--- plugins/ladspa_base/ladspa_manager.cpp.orig Mon Dec 4 15:22:27 2006
|
||||
+++ plugins/ladspa_base/ladspa_manager.cpp Mon Dec 4 16:06:22 2006
|
||||
@@ -63,12 +63,11 @@
|
||||
configManager::inst()->ladspaDir() );
|
||||
#endif
|
||||
|
||||
- ladspaDirectories.push_back( "/usr/lib/lmms/ladspa" );
|
||||
+ ladspaDirectories.push_back( "@PREFIX@/lib/lmms/ladspa" );
|
||||
/* // set default-directory if nothing is specified...
|
||||
if( ladspaDirectories.isEmpty() )
|
||||
{*/
|
||||
- ladspaDirectories.push_back( "/usr/lib/ladspa" );
|
||||
- ladspaDirectories.push_back( "/usr/local/lib/ladspa" );
|
||||
+ ladspaDirectories.push_back( "@LOCALBASE@/lib/ladspa" );
|
||||
// }
|
||||
for( QStringList::iterator it = ladspaDirectories.begin();
|
||||
it != ladspaDirectories.end(); ++it )
|
@ -1,20 +0,0 @@
|
||||
--- plugins/ladspa_effect/caps/Makefile.am.orig Mon Dec 4 15:22:22 2006
|
||||
+++ plugins/ladspa_effect/caps/Makefile.am Sat Dec 16 11:37:33 2006
|
||||
@@ -1,7 +1,7 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
|
||||
-AM_CXXFLAGS := $(AM_CXXFLAGS) -O6 -ffast-math -funroll-loops -ftracer
|
||||
+AM_CXXFLAGS := $(AM_CXXFLAGS) -fPIC
|
||||
|
||||
DEST = $(libdir)/$(PACKAGE)/ladspa
|
||||
SOURCES = $(wildcard *.cc)
|
||||
@@ -23,7 +23,7 @@
|
||||
-rm $(DEST)/caps.so
|
||||
|
||||
depend: $(SOURCES)
|
||||
- $(CXX) -MM $(AM_CXXFLAGS) $(SOURCES) > depend
|
||||
+ $(CXX) -MM $(CPPFLAGS) $(AM_CXXFLAGS) $(SOURCES) > depend
|
||||
|
||||
.cc.o:
|
||||
$(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) -c $<
|
@ -1,10 +1,12 @@
|
||||
--- plugins/organic/organic.cpp.orig Mon Dec 4 15:22:23 2006
|
||||
+++ plugins/organic/organic.cpp Mon Dec 4 16:02:07 2006
|
||||
@@ -64,6 +64,7 @@
|
||||
--- plugins/organic/organic.cpp.orig 2009-02-24 07:34:26.000000000 +0900
|
||||
+++ plugins/organic/organic.cpp 2009-04-09 03:38:36.000000000 +0900
|
||||
@@ -42,6 +42,9 @@
|
||||
#undef SINGLE_SOURCE_COMPILE
|
||||
#include "embed.cpp"
|
||||
#include "volume_knob.h"
|
||||
|
||||
+#if defined(__FreeBSD__)
|
||||
+#define log2f(x) (logf((x)) / logf(2))
|
||||
+#endif
|
||||
|
||||
extern "C"
|
||||
{
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- src/widgets/knob.cpp.orig 2009-04-11 22:43:48.000000000 +0200
|
||||
+++ src/widgets/knob.cpp 2009-04-11 22:44:54.000000000 +0200
|
||||
@@ -471,7 +471,7 @@
|
||||
eng()->getMainWindow()->isShiftPressed() == TRUE )
|
||||
{
|
||||
new stringPairDrag( "link_object",
|
||||
- QString::number( (uint) this ),
|
||||
+ QString::number( (intptr_t) this ),
|
||||
QPixmap(), this, eng() );
|
||||
}
|
||||
else if( _me->button() == Qt::MidButton )
|
@ -1,11 +0,0 @@
|
||||
--- src/core/config_mgr.cpp.orig Mon Dec 4 15:22:34 2006
|
||||
+++ src/core/config_mgr.cpp Mon Dec 4 16:00:06 2006
|
||||
@@ -875,7 +875,7 @@
|
||||
#ifdef LADSPA_SUPPORT
|
||||
if( m_ladDir == "" )
|
||||
{
|
||||
- m_ladDir = "/usr/lib/ladspa/:/usr/local/lib/ladspa/";
|
||||
+ m_ladDir = "@LOCALBASE@/lib/ladspa/";
|
||||
}
|
||||
#endif
|
||||
|
@ -1,20 +1,21 @@
|
||||
--- src/core/main.cpp.orig Mon Dec 4 15:22:34 2006
|
||||
+++ src/core/main.cpp Wed Dec 6 11:52:51 2006
|
||||
@@ -49,6 +49,9 @@
|
||||
#include <sched.h>
|
||||
#endif
|
||||
--- src/core/main.cpp.orig 2009-02-24 07:34:26.000000000 +0900
|
||||
+++ src/core/main.cpp 2009-04-09 03:42:57.000000000 +0900
|
||||
@@ -38,6 +38,9 @@
|
||||
#include <QtGui/QPainter>
|
||||
#include <QtGui/QSplashScreen>
|
||||
|
||||
+#include <sys/types.h>
|
||||
+#include <unistd.h>
|
||||
+
|
||||
|
||||
#include "main_window.h"
|
||||
#include "embed.h"
|
||||
@@ -89,6 +92,7 @@
|
||||
printf( "could not set realtime priority.\n" );
|
||||
}
|
||||
#ifdef LMMS_HAVE_SCHED_H
|
||||
#include <sched.h>
|
||||
#endif
|
||||
@@ -101,6 +104,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
+ setuid(getuid()); // drop root privileges
|
||||
|
||||
QApplication app( argc, argv );
|
||||
|
||||
+
|
||||
QCoreApplication * app = core_only ?
|
||||
new QCoreApplication( argc, argv ) :
|
||||
new QApplication( argc, argv ) ;
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- src/tracks/instrument_track.cpp.orig Mon Dec 4 15:22:32 2006
|
||||
+++ src/tracks/instrument_track.cpp Tue Dec 5 09:49:12 2006
|
||||
@@ -919,7 +919,7 @@
|
||||
trackContentObject * tco = getTCO( _tco_num );
|
||||
tcos.push_back( tco );
|
||||
bb_track = bbTrack::findBBTrack( _tco_num, eng() );
|
||||
- if( !( bb_track->automationDisabled( this )
|
||||
+ if( bb_track != NULL && !( bb_track->automationDisabled( this )
|
||||
|| dynamic_cast<pattern *>( tco )->empty() ) )
|
||||
{
|
||||
sendMidiTime( _start );
|
2886
audio/lmms/pkg-plist
2886
audio/lmms/pkg-plist
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user