View | Details | Raw Unified | Return to bug 144719 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/ports/sunpoet/mp3splt/Makefile (-1 / +1 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	mp3splt
8
PORTNAME=	mp3splt
9
PORTVERSION=	2.2.7a
9
PORTVERSION=	2.2.8
10
CATEGORIES=	audio
10
CATEGORIES=	audio
11
MASTER_SITES=	SF
11
MASTER_SITES=	SF
12
12
(-)/usr/ports/sunpoet/mp3splt/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (mp3splt-2.2.7a.tar.gz) = 7e782063ccb16f05a714be7d6f342cac
1
MD5 (mp3splt-2.2.8.tar.gz) = 2e6f53d6385912c7e8395813048cd28c
2
SHA256 (mp3splt-2.2.7a.tar.gz) = a18705093d1766f9d2680fd71aac01b659af01472fbbc78dcb188f8328148725
2
SHA256 (mp3splt-2.2.8.tar.gz) = e5581d953fad596cb6fb22f220414e8aa69cb5324aa123a6b7b9b7a2142225d8
3
SIZE (mp3splt-2.2.7a.tar.gz) = 216521
3
SIZE (mp3splt-2.2.8.tar.gz) = 218621
(-)/usr/ports/sunpoet/mp3splt/files/patch-src-mp3splt.c (+42 lines)
Line 0 Link Here
1
--- src/mp3splt.c.orig	2010-02-18 04:23:39.000000000 +0800
2
+++ src/mp3splt.c	2010-03-14 02:36:52.000000000 +0800
3
@@ -54,7 +54,11 @@
4
 #define MP3SPLT_CDDBFILE "query.cddb"
5
 
6
 #define MP3SPLT_GETTEXT_DOMAIN "mp3splt"
7
+#ifdef ENABLE_NLS
8
 #define _(STR) gettext(STR)
9
+#else
10
+#define _(STR) STR
11
+#endif
12
 
13
 //in case of STDIN/STDOUT usage, we change the console file handle
14
 //-yeah indeed, global variables might suck
15
@@ -1801,9 +1805,11 @@
16
 //main program starts here
17
 int main(int argc, char **orig_argv)
18
 {
19
+#ifdef ENABLE_NLS
20
   //gettext
21
   setlocale(LC_ALL, "");
22
   textdomain(MP3SPLT_GETTEXT_DOMAIN);
23
+#endif
24
 
25
   console_out = stdout;
26
   console_err = stderr;
27
@@ -1814,6 +1820,7 @@
28
 
29
   main_data *data = create_main_struct(argc, orig_argv);
30
 
31
+#ifdef ENABLE_NLS
32
 #ifdef __WIN32__
33
   char mp3splt_uninstall_file[2048] = { '\0' };
34
   DWORD dwType, dwSize = sizeof(mp3splt_uninstall_file) - 1;
35
@@ -1873,6 +1880,7 @@
36
 #endif
37
 
38
   bind_textdomain_codeset(MP3SPLT_GETTEXT_DOMAIN, "UTF-8");
39
+#endif
40
 
41
   data->state = mp3splt_new_state(&err);
42
   process_confirmation_error(err, data);

Return to bug 144719