aboutsummaryrefslogtreecommitdiff
path: root/textproc/uim/Makefile
diff options
context:
space:
mode:
authorMANTANI Nobutaka <nobutaka@FreeBSD.org>2005-12-25 05:47:34 +0000
committerMANTANI Nobutaka <nobutaka@FreeBSD.org>2005-12-25 05:47:34 +0000
commit1af4f60eb0a911cd8b3b131a378001b3dbecd184 (patch)
tree8bf56c555fe0e09479eecbcd0ef6b84513df2d6a /textproc/uim/Makefile
parente6a4aaca59006d5fb62711d534347ad95e90edeb (diff)
downloadports-1af4f60eb0a911cd8b3b131a378001b3dbecd184.tar.gz
ports-1af4f60eb0a911cd8b3b131a378001b3dbecd184.zip
Notes
Diffstat (limited to 'textproc/uim/Makefile')
-rw-r--r--textproc/uim/Makefile122
1 files changed, 84 insertions, 38 deletions
diff --git a/textproc/uim/Makefile b/textproc/uim/Makefile
index b3f69700fb51..1a12edee204d 100644
--- a/textproc/uim/Makefile
+++ b/textproc/uim/Makefile
@@ -6,90 +6,136 @@
#
PORTNAME= uim
-PORTVERSION= 0.4.9.1
-PORTREVISION= 2
+PORTVERSION= 1.0.1
CATEGORIES= textproc
-MASTER_SITES= http://uim.freedesktop.org/releases/ \
- http://www.tuhep.phys.tohoku.ac.jp/~jhpark/uim/:byeoru
+MASTER_SITES= http://uim.freedesktop.org/releases/
MAINTAINER= nobutaka@FreeBSD.org
COMMENT= Input method library
-LIB_DEPENDS= anthy.1:${PORTSDIR}/japanese/anthy \
- m17n.1:${PORTSDIR}/devel/m17n-lib
-
-USE_REINPLACE= yes
USE_X_PREFIX= yes
+USE_REINPLACE= yes
USE_PERL5_BUILD=yes
INSTALLS_SHLIB= yes
WANT_GNOME= yes
-USE_GNOME= lthack gnometarget glib20
+USE_GNOME= gnometarget glib20
USE_GMAKE= yes
USE_ICONV= yes
-USE_AUTOTOOLS= libtool:13:inc
+USE_AUTOTOOLS= libtool:15
+
+LIB_DEPENDS= Xft.2:${PORTSDIR}/x11-fonts/libXft
+
+CONFIGURE_ARGS= --enable-emacs
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
-DOCSDIR_JA= ${PREFIX}/share/doc/ja/uim
-PLIST_SUB+= DOCSDIR_JA="${DOCSDIR_JA:S,^${PREFIX}/,,}"
-BYEORU_FILES= byeoru.scm byeoru-custom.scm byeoru-key-custom.scm \
- byeoru-symbols.scm byeoru-dic.scm
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${BYEORU_FILES:S/$/:byeoru/}
-EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+
+OPTIONS= GTK "Enable GTK support" off \
+ QT "Enable QT support" off \
+ GNOME "Enable GNOME support" off \
+ ANTHY "Enable Anthy support" off \
+ CANNA "Enable Canna support" off \
+ M17NLIB "Enable m17lib support" off \
+ PRIME "Enable PRIME support" off \
+ SCIM "Enable SCIM support" off \
+ SKK "Enable SKK support" off
MAN1= uim-xim.1
+DOCSDIR_JA= ${PREFIX}/share/doc/ja/uim
+PLIST_SUB= DOCSDIR_JA="${DOCSDIR_JA:S,^${PREFIX}/,,}"
.include <bsd.port.pre.mk>
-.if ${ARCH} == ia64
-BROKEN= "Segfault during build on ia64"
-.endif
-
-.if ${HAVE_GNOME:Mgtk20}
+.if defined(WITH_GTK) && !defined(WITHOUT_GTK)
USE_GNOME+= gtk20
+CONFIGURE_ARGS+=--with-gtk2
PLIST_SUB+= GTK=""
.else
+CONFIGURE_ARGS+=--without-gtk2
PLIST_SUB+= GTK="@comment "
.endif
-.if ${HAVE_GNOME:Mgnomepanel}
+.if defined(WITH_QT) && !defined(WITHOUT_QT)
+LIB_DEPENDS+= qt-mt.3:${PORTSDIR}/x11-toolkits/qt33
+CONFIGURE_ARGS+=--with-qt
+CONFIGURE_ENV+= QTDIR=${X11BASE}/lib QTINCDIR=${X11BASE}/include \
+ CXXFLAGS="${CXXFLAGS} ${PTHREAD_CFLAGS} -I${X11BASE}/include" LIBS="${LIBS} ${PTHREAD_LIBS} -L${X11BASE}/lib"
+PLIST_SUB+= QT=""
+.else
+CONFIGURE_ARGS+=--without-qt
+PLIST_SUB+= QT="@comment "
+.endif
+
+.if defined(WITH_GNOME) && !defined(WITHOUT_GNOME)
USE_GNOME+= gnomepanel
+CONFIGURE_ARGS+=--with-gnome2 --enable-applet
PLIST_SUB+= GNOME=""
.else
+CONFIGURE_ARGS+=--without-gnome2 --disable-applet
PLIST_SUB+= GNOME="@comment "
.endif
-.if exists(${X11BASE}/bin/scim) || defined(WITH_SCIM)
-USE_GCC= 3.4
-LIB_DEPENDS= scim-1.0.9:${PORTSDIR}/textproc/scim
-CONFIGURE_ARGS+=--with-scim
-PLIST_SUB+= SCIM=""
+.if defined(WITH_ANTHY) && !defined(WITHOUT_ANTHY)
+LIB_DEPENDS+= anthy.1:${PORTSDIR}/japanese/anthy
+CONFIGURE_ARGS+=--with-anthy
+PLIST_SUB+= ANTHY=""
.else
-PLIST_SUB+= SCIM="@comment "
+CONFIGURE_ARGS+=--without-anthy
+PLIST_SUB+= ANTHY="@comment "
.endif
-.if exists(${LOCALBASE}/sbin/cannaserver) || defined(WITH_CANNA)
-LIB_DEPENDS= canna.1:${PORTSDIR}/japanese/Canna
+.if defined(WITH_CANNA) && !defined(WITHOUT_CANNA)
+LIB_DEPENDS+= canna.1:${PORTSDIR}/japanese/Canna
CONFIGURE_ARGS+=--with-canna
PLIST_SUB+= CANNA=""
.else
+CONFIGURE_ARGS+=--without-canna
PLIST_SUB+= CANNA="@comment "
.endif
-post-extract:
- for i in ${BYEORU_FILES}; do \
- ${CAT} ${DISTDIR}/$$i >${WRKSRC}/scm/$$i; \
- done
+.if defined(WITH_M17NLIB) && !defined(WITHOUT_M17NLIB)
+LIB_DEPENDS+= m17n.1:${PORTSDIR}/devel/m17n-lib
+CONFIGURE_ARGS+=--with-m17nlib
+PLIST_SUB+= M17NLIB=""
+.else
+CONFIGURE_ARGS+=--without-m17nlib
+PLIST_SUB+= M17NLIB="@comment "
+.endif
+
+.if defined(WITH_PRIME) && !defined(WITHOUT_PRIME)
+BUILD_DEPENDS+= prime:${PORTSDIR}/japanese/prime
+RUN_DEPENDS+= ${BUILD_DEPENDS}
+CONFIGURE_ARGS+=--with-prime
+PLIST_SUB+= PRIME=""
+.else
+CONFIGURE_ARGS+=--without-prime
+PLIST_SUB+= PRIME="@comment "
+.endif
+
+.if defined(WITH_SCIM) && !defined(WITHOUT_SCIM)
+USE_GCC= 3.4
+LIB_DEPENDS+= scim-1.0.9:${PORTSDIR}/textproc/scim
+CONFIGURE_ARGS+=--with-scim
+PLIST_SUB+= SCIM=""
+.else
+CONFIGURE_ARGS+=--without-scim
+PLIST_SUB+= SCIM="@comment "
+.endif
+
+.if defined(WITH_SKK) && !defined(WITHOUT_SKK)
+RUN_DEPENDS+= ${LOCALBASE}/share/skk/SKK-JISYO.L:${PORTSDIR}/japanese/skk-jisyo
+.endif
post-patch:
${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/scm/skk-custom.scm
.if !defined(NOPORTDOCS)
post-install:
- ${MKDIR} ${DOCSDIR_JA}
${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README.ja ${DOCSDIR_JA}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
- ${CAT} ${PKGMESSAGE}
+ ${MKDIR} ${DOCSDIR_JA}
+ ${INSTALL_DATA} ${WRKSRC}/doc/KEY ${DOCSDIR}/KEY
+ ${INSTALL_DATA} ${WRKSRC}/fep/README ${DOCSDIR}/README.fep
+ ${INSTALL_DATA} ${WRKSRC}/fep/README.ja ${DOCSDIR_JA}/README.fep
+ ${INSTALL_DATA} ${WRKSRC}/xim/README ${DOCSDIR}/README.xim
.endif
.include <bsd.port.post.mk>