On Wed, Apr 10, 2019 at 03:48:04PM +0800, Kevin Lo wrote:
> 
> Hi,
> 
> When I run the command m17n-dump, I get an error:
> undefined reference to `libintl_bindtextdomain'
> 
> The diff below links with intl correctly, ok?

Here's the revised diff that fixes m17n-view as well.

Index: misc/m17n/lib/Makefile
===================================================================
RCS file: /cvs/ports/misc/m17n/lib/Makefile,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 Makefile
--- misc/m17n/lib/Makefile      28 Mar 2019 02:03:27 -0000      1.2
+++ misc/m17n/lib/Makefile      10 Apr 2019 09:28:54 -0000
@@ -3,6 +3,7 @@
 COMMENT =      multilingual text processing library
 
 DISTNAME =     m17n-lib-${M17N_V}
+REVISION =     0
 
 SHARED_LIBS +=  m17n-core            0.0      # 4.2
 SHARED_LIBS +=  m17n                 0.0      # 4.2
@@ -11,11 +12,13 @@ SHARED_LIBS +=  m17n-gui             0.0
 
 CATEGORIES =   misc
 
-WANTLIB += ICE SM X11 Xft Xrender Xt anthy anthydic c expat fontconfig
-WANTLIB += freetype fribidi gd iconv jpeg lzma m otf png16 pthread
-WANTLIB += tiff webp xcb xml2 z
+WANTLIB += ICE SM X11 Xau Xaw Xdmcp Xext Xft Xmu Xpm Xrender Xt
+WANTLIB += anthy anthydic c expat fontconfig freetype fribidi
+WANTLIB += gd iconv intl jpeg lzma m otf png16 pthread tiff webp
+WANTLIB += xcb xml2 z
 
-LIB_DEPENDS =  devel/libotf \
+LIB_DEPENDS =  devel/gettext \
+               devel/libotf \
                devel/fribidi \
                graphics/gd \
                inputmethods/anthy \
@@ -25,7 +28,8 @@ BUILD_DEPENDS =       textproc/ispell \
                ${RUN_DEPENDS}
 RUN_DEPENDS =  misc/m17n/db=${M17N_V}
 
-CONFIGURE_ENV =        LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}"
+CONFIGURE_ENV =        CPPFLAGS="${CPPFLAGS} -I${X11BASE}/include" \
+               LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -lintl"
 LIBTOOL_FLAGS =        --tag=disable-static
 SEPARATE_BUILD = Yes
 

Reply via email to