aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2008-01-20 03:17:03 +0800
committerpav <pav@FreeBSD.org>2008-01-20 03:17:03 +0800
commit30669632ba80f2e339a7bf91ce46a4583e3cfa7f (patch)
treeeef3995164d420585e509379daf20b3364079a3a /devel
parentf6af23aadad1ca6ed24bd01069256dbe6f04c923 (diff)
downloadfreebsd-ports-graphics-30669632ba80f2e339a7bf91ce46a4583e3cfa7f.tar.gz
freebsd-ports-graphics-30669632ba80f2e339a7bf91ce46a4583e3cfa7f.tar.zst
freebsd-ports-graphics-30669632ba80f2e339a7bf91ce46a4583e3cfa7f.zip
The Abilities of LibRCC Library
=============================== * Language Autodetection * On the fly translation between languages, using online-services! * Encoding Autodetection for most of European Languages1 * Support for encoding detection plugins (besides Enca and LibRCD) * Recoding/translation of multi-language playlists! * Cache to speed-up re-recoding. * Possibility to configure new languages and encodings. * Shared configuration file. For example mentioned TagLib and LibID3 patches do not have their own user interface, but will utilize the same recoding configuration as XMMS. * As well the separate program for configuration adjustment is available. * GTK/GTK2 UI Library: you can add properties page to your GTK application with 3 lines of code. * Menu localization opportunity WWW: http://rusxmms.sourceforge.net PR: ports/119187 Submitted by: Ulrich Spoerlein <uspoerlein@gmail.com>
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/librcc/Makefile35
-rw-r--r--devel/librcc/distinfo3
-rw-r--r--devel/librcc/files/patch-configure.in146
-rw-r--r--devel/librcc/pkg-descr19
-rw-r--r--devel/librcc/pkg-plist22
6 files changed, 226 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 4989f501691..ef7306d5f61 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -639,6 +639,7 @@
SUBDIR += libphish
SUBDIR += libpperl
SUBDIR += libpthread-stubs
+ SUBDIR += librcc
SUBDIR += librcd
SUBDIR += libredblack
SUBDIR += libruin
diff --git a/devel/librcc/Makefile b/devel/librcc/Makefile
new file mode 100644
index 00000000000..f60a7d74187
--- /dev/null
+++ b/devel/librcc/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: librcc
+# Date created: 30-12-2007
+# Whom: Ulrich Spoerlein <uspoerlein@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= librcc
+PORTVERSION= 0.2.5
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= rusxmms
+
+MAINTAINER= uspoerlein@gmail.com
+COMMENT= Library used by rusxmms for language autodetection
+
+LIB_DEPENDS= rcd.1:${PORTSDIR}/devel/librcd
+
+USE_BZIP2= yes
+GNU_CONFIGURE= yes
+USE_GNOME= gtk12 libxml2
+USE_GMAKE= yes
+USE_ICONV= yes
+USE_LDCONFIG= yes
+
+USE_AUTOTOOLS= aclocal:19 automake:19 autoheader:261 autoconf:261 libtool:15
+ACLOCAL_ARGS= --force
+AUTOMAKE_ARGS= -a
+
+CONFIGURE_ARGS=--disable-bdb --disable-gtk2 --disable-glib2
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
+
+.include <bsd.port.mk>
diff --git a/devel/librcc/distinfo b/devel/librcc/distinfo
new file mode 100644
index 00000000000..4b6a5fa4187
--- /dev/null
+++ b/devel/librcc/distinfo
@@ -0,0 +1,3 @@
+MD5 (librcc-0.2.5.tar.bz2) = 8dc5e08bf5ae1e029dc464cd74c17f3f
+SHA256 (librcc-0.2.5.tar.bz2) = d46b1bfc8b95ea73b12d9230f4103d18a6c3e2560f5c1d80073f62308b70307e
+SIZE (librcc-0.2.5.tar.bz2) = 494855
diff --git a/devel/librcc/files/patch-configure.in b/devel/librcc/files/patch-configure.in
new file mode 100644
index 00000000000..70135b30327
--- /dev/null
+++ b/devel/librcc/files/patch-configure.in
@@ -0,0 +1,146 @@
+--- configure.in.orig 2007-06-26 21:50:57.000000000 +0200
++++ configure.in 2007-12-30 13:45:21.995543476 +0100
+@@ -60,8 +60,8 @@
+
+ CFLAGS="$CFLAGS -Wall -Wpointer-arith"
+ if test ! -f /usr/include/iconv.h -a -f /usr/local/include/iconv.h ; then
+- CFLAGS+=" -I/usr/local/include"
+- LIBS+=" -L/usr/local/lib"
++ CFLAGS="$CFLAGS -I/usr/local/include"
++ LIBS="$LIBS -L/usr/local/lib"
+ fi
+
+ dnl Checks for programs.
+@@ -103,7 +103,33 @@
+ AC_SUBST(GTK1_LIBS)
+ AC_SUBST(GTK1_INCLUDES)
+
+-PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.0, HAVE_GTK2=yes, HAVE_GTK2=no)
++dnl ***
++dnl *** GLIB 2.0
++dnl ***
++AC_ARG_ENABLE(glib2,
++ [ --disable-glib2 disable glib2 [default=enabled]],,
++ enable_glib2="yes")
++
++if test "x$enable_glib2" = "xyes"; then
++ PKG_CHECK_MODULES(GLIB2, glib-2.0 >= 2.0.0, HAVE_GLIB2=yes, HAVE_GLIB2=no)
++else
++ HAVE_GLIB2=no
++fi
++AM_CONDITIONAL(HAVE_GLIB2, [ test $HAVE_GLIB2 = yes ])
++
++
++dnl ***
++dnl *** GTK 2.0
++dnl ***
++AC_ARG_ENABLE(gtk2,
++ [ --disable-gtk2 disable gtk2 [default=enabled]],,
++ enable_gtk2="yes")
++
++if test "x$enable_gtk2" = "xyes"; then
++ PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.0, HAVE_GTK2=yes, HAVE_GTK2=no)
++else
++ HAVE_GTK2=no
++fi
+ AM_CONDITIONAL(HAVE_GTK2, [ test $HAVE_GTK2 = yes ])
+
+ AC_CHECK_HEADER(dlfcn.h, [AC_CHECK_LIB(dl, dlopen, [
+@@ -130,12 +156,12 @@
+ if test "x$enable_force_system_iconv" != "xyes"; then
+ AC_CHECK_LIB(iconv, iconv_open, [
+ EXTERNAL_ICONV=yes
+- EXTRA_LIBS+=" -liconv"
++ EXTRA_LIBS="$EXTRA_LIBS -liconv"
+ ])
+ AC_CHECK_HEADER(libcharset.h, [AC_CHECK_LIB(charset, locale_charset, [
+ AC_DEFINE(HAVE_LIBCHARSET,1,[Defines if libRCD is available])
+ HAVE_LIBCHARSET=yes
+- EXTRA_LIBS+=" -lcharset"
++ EXTRA_LIBS="$EXTRA_LIBS -lcharset"
+ ])])
+ fi
+ AM_CONDITIONAL(HAVE_LIBCHARSET, [ test "x$HAVE_LIBCHARSET" = "xyes" ])
+@@ -210,23 +236,20 @@
+ BDB_INCLUDES=""
+ HAVE_BDB=no
+ else
+- AX_PATH_BDB([4],[
+- BDB_LIBS="$BDB_LDFLAGS $BDB_LIBS"
+- BDB_INCLUDES="$BDB_CPPFLAGS"
+- HAVE_BDB=yes
+- ],[
+- BDB_LIBS=""
+- BDB_INCLUDES=""
+- HAVE_BDB=no
+- ])
++# Not working on FreeBSD either
++# AX_PATH_BDB([4],[
++# BDB_LIBS="$BDB_LDFLAGS $BDB_LIBS"
++# BDB_INCLUDES="$BDB_CPPFLAGS"
++# HAVE_BDB=yes
++# ],[
++# BDB_LIBS=""
++# BDB_INCLUDES=""
++# HAVE_BDB=no
++# ])
+ fi
+ AC_SUBST(BDB_LIBS)
+ AC_SUBST(BDB_INCLUDES)
+
+-PKG_CHECK_MODULES(GLIB2, glib-2.0 >= 2.0.0, HAVE_GLIB2=yes, HAVE_GLIB2=no)
+-AM_CONDITIONAL(HAVE_GLIB2, [ test $HAVE_GLIB2 = yes ])
+-
+-
+ if test "x$disable_libtranslate" != "xyes"; then
+ HAVE_LIBTRANSLATE=no
+ HAVE_LIBTRANSLATE_TIMED_TRANSLATE=no
+@@ -254,15 +277,25 @@
+ fi
+ fi
+
+-AM_PATH_ASPELL([
+- AC_DEFINE(HAVE_ASPELL,1,[Defines if aspell is available])
+- HAVE_ASPELL=yes
+-],[
++# Not available on FreeBSD? breaks autom4te run
++#AM_PATH_ASPELL([
++# AC_DEFINE(HAVE_ASPELL,1,[Defines if aspell is available])
++# HAVE_ASPELL=yes
++#],[
+ HAVE_ASPELL=no
+-])
++ AC_SUBST(ASPELL_CFLAGS)
++ AC_SUBST(ASPELL_LIBS)
++#])
+
+
+-PTHREAD_LIBS=error
++AC_MSG_CHECKING([for PTHREAD_LIBS])
++if test "x$PTHREAD_LIBS" = "x"; then
++ PTHREAD_LIBS=error
++else
++ AC_MSG_RESULT([$PTHREAD_LIBS])
++fi
++
++if test "x$PTHREAD_LIBS" = "xerror"; then
+ AC_EGREP_CPP(yes,[
+ #if (defined(__FreeBSD_cc_version) && __FreeBSD_cc_version <= 500001) || defined(__OpenBSD__)
+ yes
+@@ -271,6 +304,7 @@
+ PTHREAD_CFLAGS="-D_THREAD_SAFE"
+ PTHREAD_LIBS="-pthread"
+ )
++fi
+ if test "x$PTHREAD_LIBS" = "xerror"; then
+ AC_CHECK_LIB(pthread, pthread_mutex_lock, PTHREAD_LIBS="-lpthread")
+ fi
+@@ -309,7 +343,7 @@
+ AC_OUTPUT(src/Makefile engines/Makefile external/Makefile ui/Makefile examples/Makefile Makefile librcc.spec)
+
+ rccdir=${pkgdatadir}
+-while expr ${rccdir:0:1} == '$' &>/dev/null; do
++while expr "${rccdir}" : "\\\$" >/dev/null; do
+ rccdir=`eval echo $rccdir`
+ done
+
diff --git a/devel/librcc/pkg-descr b/devel/librcc/pkg-descr
new file mode 100644
index 00000000000..70d6144b7b1
--- /dev/null
+++ b/devel/librcc/pkg-descr
@@ -0,0 +1,19 @@
+The Abilities of LibRCC Library
+===============================
+
+ * Language Autodetection
+ * On the fly translation between languages, using online-services!
+ * Encoding Autodetection for most of European Languages1
+ * Support for encoding detection plugins (besides Enca and LibRCD)
+ * Recoding/translation of multi-language playlists!
+ * Cache to speed-up re-recoding.
+ * Possibility to configure new languages and encodings.
+ * Shared configuration file. For example mentioned TagLib and LibID3 patches
+ do not have their own user interface, but will utilize the same recoding
+ configuration as XMMS.
+ * As well the separate program for configuration adjustment is available.
+ * GTK/GTK2 UI Library: you can add properties page to your GTK application
+ with 3 lines of code.
+ * Menu localization opportunity
+
+WWW: http://rusxmms.sourceforge.net
diff --git a/devel/librcc/pkg-plist b/devel/librcc/pkg-plist
new file mode 100644
index 00000000000..38785829202
--- /dev/null
+++ b/devel/librcc/pkg-plist
@@ -0,0 +1,22 @@
+include/librcc.h
+include/librccui.h
+lib/librcc.a
+lib/librcc.la
+lib/librcc.so
+lib/librcc.so.2
+lib/librccgtk.a
+lib/librccgtk.la
+lib/librccgtk.so
+lib/librccgtk.so.2
+lib/librccui.a
+lib/librccui.la
+lib/librccui.so
+lib/librccui.so.2
+lib/rcc/engines/librcd_engine.a
+lib/rcc/engines/librcd_engine.la
+lib/rcc/engines/librcd_engine.so
+lib/rcc/engines/western_engine.a
+lib/rcc/engines/western_engine.la
+lib/rcc/engines/western_engine.so
+@dirrm lib/rcc/engines
+@dirrm lib/rcc