diff options
Diffstat (limited to 'devel/m17n-lib')
-rw-r--r-- | devel/m17n-lib/DESCR | 1 | ||||
-rw-r--r-- | devel/m17n-lib/Makefile | 29 | ||||
-rw-r--r-- | devel/m17n-lib/PLIST | 25 | ||||
-rw-r--r-- | devel/m17n-lib/buildlink3.mk | 48 | ||||
-rw-r--r-- | devel/m17n-lib/distinfo | 11 | ||||
-rw-r--r-- | devel/m17n-lib/options.mk | 28 | ||||
-rw-r--r-- | devel/m17n-lib/patches/patch-aa | 13 | ||||
-rw-r--r-- | devel/m17n-lib/patches/patch-ab | 13 | ||||
-rw-r--r-- | devel/m17n-lib/patches/patch-ac | 22 | ||||
-rw-r--r-- | devel/m17n-lib/patches/patch-ad | 22 | ||||
-rw-r--r-- | devel/m17n-lib/patches/patch-ae | 13 | ||||
-rw-r--r-- | devel/m17n-lib/patches/patch-af | 13 |
12 files changed, 238 insertions, 0 deletions
diff --git a/devel/m17n-lib/DESCR b/devel/m17n-lib/DESCR new file mode 100644 index 00000000000..c0f308a1506 --- /dev/null +++ b/devel/m17n-lib/DESCR @@ -0,0 +1 @@ +The m17n library is a multilingual text processing library for the C language. diff --git a/devel/m17n-lib/Makefile b/devel/m17n-lib/Makefile new file mode 100644 index 00000000000..a5cd0730818 --- /dev/null +++ b/devel/m17n-lib/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/02/27 13:48:28 obache Exp $ +# + +DISTNAME= m17n-lib-1.5.1 +CATEGORIES= devel converters editors inputmethod textproc time +MASTER_SITES= http://www.m17n.org/m17n-lib-download/ + +MAINTAINER= obache@NetBSD.org +HOMEPAGE= http://www.m17n.org/m17n-lib/ +COMMENT= Multilingualization library + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config + +PKGCONFIG_OVERRIDE+= m17n-core.pc.in m17n-shell.pc.in m17n-flt.pc.in +PKGCONFIG_OVERRIDE+= m17n-gui.pc.in + +.include "options.mk" + +.include "../../converters/fribidi/buildlink3.mk" +.include "../../converters/libiconv/buildlink3.mk" +.include "../../devel/gettext-lib/buildlink3.mk" +.include "../../misc/m17n-db/buildlink3.mk" +.include "../../textproc/libxml2/buildlink3.mk" +.include "../../mk/dlopen.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/m17n-lib/PLIST b/devel/m17n-lib/PLIST new file mode 100644 index 00000000000..01f2156e325 --- /dev/null +++ b/devel/m17n-lib/PLIST @@ -0,0 +1,25 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/02/27 13:48:28 obache Exp $ +bin/m17n-config +bin/m17n-conv +${X11}bin/m17n-date +${X11}bin/m17n-dump +${X11}bin/m17n-edit +${X11}bin/m17n-view +${X11}include/m17n-X.h +include/m17n-core.h +include/m17n-flt.h +${X11}include/m17n-gui.h +include/m17n-misc.h +include/m17n.h +${X11}lib/libm17n-X.la +lib/libm17n-core.la +lib/libm17n-flt.la +${X11}lib/libm17n-gd.la +${X11}lib/libm17n-gui.la +lib/libm17n.la +lib/libmimx-anthy.la +${X11}lib/libmimx-ispell.la +lib/pkgconfig/m17n-core.pc +lib/pkgconfig/m17n-flt.pc +${X11}lib/pkgconfig/m17n-gui.pc +lib/pkgconfig/m17n-shell.pc diff --git a/devel/m17n-lib/buildlink3.mk b/devel/m17n-lib/buildlink3.mk new file mode 100644 index 00000000000..3ee2b27a307 --- /dev/null +++ b/devel/m17n-lib/buildlink3.mk @@ -0,0 +1,48 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/02/27 13:48:28 obache Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +M17N_LIB_BUILDLINK3_MK:= ${M17N_LIB_BUILDLINK3_MK}+ + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= m17n-lib +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nm17n-lib} +BUILDLINK_PACKAGES+= m17n-lib +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}m17n-lib + +.if ${M17N_LIB_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.m17n-lib+= m17n-lib>=1.5.1 +BUILDLINK_PKGSRCDIR.m17n-lib?= ../../devel/m17n-lib +.endif # M17N_LIB_BUILDLINK3_MK + +pkgbase := m17n-lib +.include "../../mk/pkg-build-options.mk" + +.if !empty(PKG_BUILD_OPTIONS.m17n-lib:Manthy) +.include "../../inputmethod/anthy/buildlink3.mk" +.endif + +.if !empty(PKG_BUILD_OPTIONS.m17n-lib:Mx11) +.include "../../fonts/Xft2/buildlink3.mk" +.include "../../fonts/fontconfig/buildlink3.mk" +.include "../../graphics/freetype2/buildlink3.mk" +.include "../../graphics/gd/buildlink3.mk" +.include "../../graphics/libotf/buildlink3.mk" +.include "../../x11/libICE/buildlink3.mk" +.include "../../x11/libSM/buildlink3.mk" +.include "../../x11/libX11/buildlink3.mk" +.include "../../x11/libXt/buildlink3.mk" +.endif + +.if !empty(PKG_BUILD_OPTIONS.m17n-lib:Mlibthai) +.include "../../devel/libthai/buildlink3.mk" +.endif + +.include "../../converters/fribidi/buildlink3.mk" +.include "../../converters/libiconv/buildlink3.mk" +.include "../../devel/gettext-lib/buildlink3.mk" +.include "../../misc/m17n-db/buildlink3.mk" +.include "../../textproc/libxml2/buildlink3.mk" + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/devel/m17n-lib/distinfo b/devel/m17n-lib/distinfo new file mode 100644 index 00000000000..01e440ecc21 --- /dev/null +++ b/devel/m17n-lib/distinfo @@ -0,0 +1,11 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/02/27 13:48:28 obache Exp $ + +SHA1 (m17n-lib-1.5.1.tar.gz) = 9b475bbe606e27611104f5b68b17ca43f7427492 +RMD160 (m17n-lib-1.5.1.tar.gz) = f058d5a91959adee3cd07d0e2ec1a86df1530523 +Size (m17n-lib-1.5.1.tar.gz) = 990729 bytes +SHA1 (patch-aa) = 607c6e8daf53c9c5dbcc6b15a7c637250464b6ca +SHA1 (patch-ab) = 189474e4e5ee32a29a9d411fd11797d194964d2c +SHA1 (patch-ac) = b5326cc9eacf84cc4f81a00605a51e51f3809c45 +SHA1 (patch-ad) = 01436a251a204ca2141859133c124d1a11876fd7 +SHA1 (patch-ae) = e9f9a91c810929bcf6c0c1efe0d05e140e444509 +SHA1 (patch-af) = be0f3450c1cf25d8b1741bb2109cd2eedbed3918 diff --git a/devel/m17n-lib/options.mk b/devel/m17n-lib/options.mk new file mode 100644 index 00000000000..f9cd6bcbda6 --- /dev/null +++ b/devel/m17n-lib/options.mk @@ -0,0 +1,28 @@ +# $NetBSD: options.mk,v 1.1.1.1 2008/02/27 13:48:28 obache Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.m17n-lib +PKG_SUPPORTED_OPTIONS= anthy x11 libthai +PKG_SUGGESTED_OPTIONS= x11 + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Manthy) +.include "../../inputmethod/anthy/buildlink3.mk" +.endif + +.if !empty(PKG_OPTIONS:Mx11) +.include "../../fonts/Xft2/buildlink3.mk" +.include "../../fonts/fontconfig/buildlink3.mk" +.include "../../graphics/freetype2/buildlink3.mk" +.include "../../graphics/gd/buildlink3.mk" +.include "../../graphics/libotf/buildlink3.mk" +.include "../../mk/xaw.buildlink3.mk" +PLIST_SUBST+= X11="" +.else +CONFIGURE_ARGS+= --without-gui +PLIST_SUBST+= X11="@comment " +.endif + +.if !empty(PKG_OPTIONS:Mlibthai) +.include "../../devel/libthai/buildlink3.mk" +.endif diff --git a/devel/m17n-lib/patches/patch-aa b/devel/m17n-lib/patches/patch-aa new file mode 100644 index 00000000000..56e138998ef --- /dev/null +++ b/devel/m17n-lib/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/02/27 13:48:28 obache Exp $ + +--- configure.ac.orig 2008-01-15 06:42:46.000000000 +0000 ++++ configure.ac +@@ -351,7 +351,7 @@ dnl In addition, set THAI_WORDSEG_LD_FLA + PKG_CHECK_MODULES(LIBTHAI, libthai, HAVE_LIBTHAI=yes, HAVE_LIBTHAI=no) + PKG_CHECK_MODULES(WORDCUT, wordcut, HAVE_WORDCUT=yes, HAVE_WORDCUT=no) + +-if test "x$HAVE_LIBTHAI" == "xyes"; then ++if test "x$HAVE_LIBTHAI" = "xyes"; then + + AC_DEFINE(HAVE_LIBTHAI, 1, [Define if you have libthai]) + THAI_WORDSEG_LD_FLAGS="$LIBTHAI_LIBS" diff --git a/devel/m17n-lib/patches/patch-ab b/devel/m17n-lib/patches/patch-ab new file mode 100644 index 00000000000..5ff2e4c2d19 --- /dev/null +++ b/devel/m17n-lib/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2008/02/27 13:48:28 obache Exp $ + +--- configure.orig 2008-01-15 06:45:39.000000000 +0000 ++++ configure +@@ -33628,7 +33628,7 @@ echo "${ECHO_T}yes" >&6; } + HAVE_WORDCUT=yes + fi + +-if test "x$HAVE_LIBTHAI" == "xyes"; then ++if test "x$HAVE_LIBTHAI" = "xyes"; then + + + cat >>confdefs.h <<\_ACEOF diff --git a/devel/m17n-lib/patches/patch-ac b/devel/m17n-lib/patches/patch-ac new file mode 100644 index 00000000000..0672b5f55ba --- /dev/null +++ b/devel/m17n-lib/patches/patch-ac @@ -0,0 +1,22 @@ +$NetBSD: patch-ac,v 1.1.1.1 2008/02/27 13:48:28 obache Exp $ + +--- src/Makefile.am.orig 2008-01-15 01:27:13.000000000 +0000 ++++ src/Makefile.am +@@ -43,7 +43,7 @@ libm17n_core_la_SOURCES = \ + textprop.h textprop.c \ + mtext-lbrk.c mtext-wseg.c + +-libm17n_core_la_LIBADD = @XML2_LD_FLAGS@ @THAI_WORDSEG_LD_FLAGS@ ++libm17n_core_la_LIBADD = @XML2_LD_FLAGS@ @THAI_WORDSEG_LD_FLAGS@ @INTLLIBS@ + libm17n_core_la_LDFLAGS = -export-dynamic ${VINFO} + + libm17n_la_SOURCES = \ +@@ -53,7 +53,7 @@ libm17n_la_SOURCES = \ + language.h language.c \ + mlocale.h locale.c \ + m17n.h m17n.c +-libm17n_la_LIBADD = ${top_builddir}/src/libm17n-core.la -ldl ++libm17n_la_LIBADD = ${top_builddir}/src/libm17n-core.la @INTLLIBS@ + libm17n_la_LDFLAGS = -export-dynamic ${VINFO} + + FLT_SOURCES = \ diff --git a/devel/m17n-lib/patches/patch-ad b/devel/m17n-lib/patches/patch-ad new file mode 100644 index 00000000000..febb0d3bba4 --- /dev/null +++ b/devel/m17n-lib/patches/patch-ad @@ -0,0 +1,22 @@ +$NetBSD: patch-ad,v 1.1.1.1 2008/02/27 13:48:28 obache Exp $ + +--- src/Makefile.in.orig 2008-01-15 06:45:37.000000000 +0000 ++++ src/Makefile.in +@@ -369,7 +369,7 @@ libm17n_core_la_SOURCES = \ + textprop.h textprop.c \ + mtext-lbrk.c mtext-wseg.c + +-libm17n_core_la_LIBADD = @XML2_LD_FLAGS@ @THAI_WORDSEG_LD_FLAGS@ ++libm17n_core_la_LIBADD = @XML2_LD_FLAGS@ @THAI_WORDSEG_LD_FLAGS@ @INTLLIBS@ + libm17n_core_la_LDFLAGS = -export-dynamic ${VINFO} + libm17n_la_SOURCES = \ + charset.h charset.c \ +@@ -379,7 +379,7 @@ libm17n_la_SOURCES = \ + mlocale.h locale.c \ + m17n.h m17n.c + +-libm17n_la_LIBADD = ${top_builddir}/src/libm17n-core.la -ldl ++libm17n_la_LIBADD = ${top_builddir}/src/libm17n-core.la @INTLLIBS@ + libm17n_la_LDFLAGS = -export-dynamic ${VINFO} + FLT_SOURCES = \ + internal-flt.h \ diff --git a/devel/m17n-lib/patches/patch-ae b/devel/m17n-lib/patches/patch-ae new file mode 100644 index 00000000000..b9329ed3aa8 --- /dev/null +++ b/devel/m17n-lib/patches/patch-ae @@ -0,0 +1,13 @@ +$NetBSD: patch-ae,v 1.1.1.1 2008/02/27 13:48:28 obache Exp $ + +--- example/Makefile.am.orig 2007-11-13 02:22:21.000000000 +0000 ++++ example/Makefile.am +@@ -45,7 +45,7 @@ m17n_conv_LDADD = ${common_ldflags} + X_LD_FLAGS = ${X_PRE_LIBS} ${X_LIBS} @XAW_LD_FLAGS@ @X11_LD_FLAGS@ ${X_EXTRA_LIBS} + + m17n_edit_SOURCES = medit.c +-m17n_edit_LDADD = ${X_LD_FLAGS} ${common_ldflags_gui} -ldl ++m17n_edit_LDADD = ${X_LD_FLAGS} ${common_ldflags_gui} + + m17n_view_SOURCES = mview.c + m17n_view_LDADD = ${X_LD_FLAGS} ${common_ldflags_gui} diff --git a/devel/m17n-lib/patches/patch-af b/devel/m17n-lib/patches/patch-af new file mode 100644 index 00000000000..1765738885a --- /dev/null +++ b/devel/m17n-lib/patches/patch-af @@ -0,0 +1,13 @@ +$NetBSD: patch-af,v 1.1.1.1 2008/02/27 13:48:28 obache Exp $ + +--- example/Makefile.in.orig 2008-01-15 06:45:37.000000000 +0000 ++++ example/Makefile.in +@@ -338,7 +338,7 @@ m17n_conv_SOURCES = mconv.c + m17n_conv_LDADD = ${common_ldflags} + X_LD_FLAGS = ${X_PRE_LIBS} ${X_LIBS} @XAW_LD_FLAGS@ @X11_LD_FLAGS@ ${X_EXTRA_LIBS} + m17n_edit_SOURCES = medit.c +-m17n_edit_LDADD = ${X_LD_FLAGS} ${common_ldflags_gui} -ldl ++m17n_edit_LDADD = ${X_LD_FLAGS} ${common_ldflags_gui} + m17n_view_SOURCES = mview.c + m17n_view_LDADD = ${X_LD_FLAGS} ${common_ldflags_gui} + m17n_dump_SOURCES = mdump.c |