diff options
Diffstat (limited to 'textproc/iiimf-gnome-im-switcher/Makefile')
-rw-r--r-- | textproc/iiimf-gnome-im-switcher/Makefile | 78 |
1 files changed, 48 insertions, 30 deletions
diff --git a/textproc/iiimf-gnome-im-switcher/Makefile b/textproc/iiimf-gnome-im-switcher/Makefile index d2d192353759..03dc774c4d6e 100644 --- a/textproc/iiimf-gnome-im-switcher/Makefile +++ b/textproc/iiimf-gnome-im-switcher/Makefile @@ -7,49 +7,67 @@ PORTNAME= gnome-im-switcher PORTVERSION= ${IIIMF_VER:S/_/./g:C/-.*//} -PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= http://www.openi18n.org/download/im-sdk/src/ PKGNAMEPREFIX= iiimf- -DISTNAME= im-sdk -DISTFILES= ${DISTNAME}-src-${IIIMF_VER}.tgz +DISTNAME= im-sdk-src-${IIIMF_VER} +EXTRACT_SUFX= .tar.bz2 MAINTAINER= kcwu@csie.org COMMENT= IIIMF gnome input method switcher -IIIMF_VER= r12_0_1-svn1891 -WRKSRC= ${WRKDIR}/${DISTNAME}-${IIIMF_VER}/gnome-im-switcher -USE_GNOME= gconf2 libglade2 libgnomeui gnomepanel gnomehack -USE_REINPLACE= yes USE_X_PREFIX= yes + +IIIMF_VER= r12_1-svn2002 +USE_REINPLACE= yes USE_GMAKE= yes -USE_AUTOCONF_VER= 259 -USE_AUTOHEADER_VER= 259 -USE_AUTOMAKE_VER= 19 -USE_LIBTOOL_VER= 15 -AUTOMAKE_ARGS= --add-missing --copy --gnu -CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +USE_GNOME= intltool gconf2 libglade2 libgnomeui \ + gnomepanel gnomeprefix gnomehack +WANT_AUTOCONF_VER=253 +WANT_AUTOHEADER_VER=253 +WANT_AUTOMAKE_VER=15 +WANT_LIBTOOL_VER=15 + +WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}/gnome-im-switcher +PATCH_WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//} + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 503000 +IGNORE= "It is supported on FreeBSD 5.3 and later" +.endif + +.if ${ARCH} != "i386" +IGNORE= "${ARCH} is not support." +.endif + +GNU_CONFIGURE= yes +MAKE_ARGS+= LIBTOOL="${LIBTOOL} --tag=CXX" +UPDATE_ARGS+= ACLOCAL=${ACLOCAL} AUTOMAKE=${AUTOMAKE} \ + AUTOHEADER=${AUTOHEADER} AUTOCONF=${AUTOCONF} \ + LIBTOOL=${LIBTOOL} LIBTOOLIZE=${LIBTOOLIZE} post-patch: ${REINPLACE_CMD} -e "s,/usr/lib/im,${PREFIX}/lib/im,g" \ ${WRKSRC}/../acfiles/im_common.m4 - ${FIND} ${WRKSRC} -name "Makefile.am*" | ${XARGS} ${REINPLACE_CMD} -e \ - 's|[(]GNOME_datadir[)]/gnome/|(datadir)/|g ; \ - s|[(]GNOME_datadir[)]/locale|(prefix)/share/locale|g ; \ - s|[(]datadir[)]/locale|(prefix)/share/locale|g ; \ - s|[(]libdir[)]/locale|(prefix)/share/locale|g ; \ - s|[(]gnomedatadir[)]/gnome|(gnomedatadir)|g ; \ - s|[(]datadir[)]/aclocal|(prefix)/share/aclocal|g ; \ - s|[(]datadir[)]/gnome/|(datadir)/|g ; \ - s|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g ; \ - s|[$$][(]localstatedir[)]/scrollkeeper|${SCROLLKEEPER_DIR}|g ; \ - s|[(]libdir[)]/bonobo/servers|(prefix)/libdata/bonobo/servers|g' + ${REINPLACE_CMD} -e "/GNOMECC_DATA_DIR/s,/share/,&gnome/,g" \ + ${WRKSRC}/configure.in pre-configure: - cd ${WRKSRC} && glib-gettextize --force --copy - cd ${WRKSRC} && intltoolize --copy --force --automake - cd ${WRKSRC} && ${LIBTOOLIZE} --force --copy - cd ${WRKSRC} && ${ACLOCAL} -I ${LOCALBASE}/share/aclocal -I ../acfiles - ${TOUCH} ${WRKSRC}/config.h.in + (cd ${WRKSRC}/.. && ${GMAKE} ${UPDATE_ARGS} update-acfiles) + (cd ${WRKSRC}/../acfiles/ && ${TOUCH} ltconfig) + (cd ${WRKSRC} && ${TOUCH} ltconfig) + (cd ${WRKSRC} && ${LOCALBASE}/bin/intltoolize --copy --force --automake) + (cd ${WRKSRC} && ${LIBTOOLIZE} --force --copy) + (cd ${WRKSRC} && ${ACLOCAL} -I ../acfiles -I /usr/local/share/aclocal) + (cd ${WRKSRC} && ${AUTOHEADER}) + (cd ${WRKSRC} && ${AUTOMAKE} --add-missing --gnu) + (cd ${WRKSRC} && ${AUTOCONF}) + +post-configure: + ${REINPLACE_CMD} -e "s,[(]libdir[)]/bonobo/server,{exec_prefix}/libdata/bonobo/server,g" \ + ${WRKSRC}/src/Makefile + ${REINPLACE_CMD} -e "s,[(]datadir[)]/gnome/,(datadir)/,g" \ + ${WRKSRC}/help/C/Makefile -.include <bsd.port.mk> +.include <bsd.port.post.mk> |