summaryrefslogtreecommitdiffstats
path: root/textproc/uim/Makefile
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-30 10:49:26 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-30 10:49:26 +0800
commitfcf97a650cf9ccdecab91c6ec65cf047d6a6edd0 (patch)
tree09892fae7c48d40f5dc155f1e815e73366292d07 /textproc/uim/Makefile
parentbc67d7463e59b18d78956f56225625be4edcb50c (diff)
downloadmarcuscom-ports-fcf97a650cf9ccdecab91c6ec65cf047d6a6edd0.tar
marcuscom-ports-fcf97a650cf9ccdecab91c6ec65cf047d6a6edd0.tar.gz
marcuscom-ports-fcf97a650cf9ccdecab91c6ec65cf047d6a6edd0.tar.bz2
marcuscom-ports-fcf97a650cf9ccdecab91c6ec65cf047d6a6edd0.tar.lz
marcuscom-ports-fcf97a650cf9ccdecab91c6ec65cf047d6a6edd0.tar.xz
marcuscom-ports-fcf97a650cf9ccdecab91c6ec65cf047d6a6edd0.tar.zst
marcuscom-ports-fcf97a650cf9ccdecab91c6ec65cf047d6a6edd0.zip
GTK2_VERSION & LOCALBASE
Spotted by: pointyhat git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7379 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'textproc/uim/Makefile')
-rw-r--r--textproc/uim/Makefile120
1 files changed, 120 insertions, 0 deletions
diff --git a/textproc/uim/Makefile b/textproc/uim/Makefile
new file mode 100644
index 000000000..b0252a9e2
--- /dev/null
+++ b/textproc/uim/Makefile
@@ -0,0 +1,120 @@
+# New ports collection makefile for: uim
+# Date created: 31 August 2003
+# Whom: MANTANI Nobutaka <nobutaka@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= uim
+PORTVERSION= 1.2.1
+PORTREVISION?= 1
+CATEGORIES?= textproc
+MASTER_SITES= http://uim.freedesktop.org/releases/
+.if !defined(UIM_SLAVE) && defined(WITHOUT_X11)
+PKGNAMESUFFIX= -nox11
+.endif
+
+MAINTAINER= nobutaka@FreeBSD.org
+COMMENT?= Input method library
+
+INSTALLS_SHLIB= yes
+WANT_GNOME= yes
+USE_GNOME+= gnometarget glib20
+USE_GMAKE= yes
+USE_AUTOTOOLS= libtool:15
+USE_GETTEXT= yes
+USE_ICONV= yes
+GNU_CONFIGURE= yes
+
+.if !defined(WITHOUT_X11)
+LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft
+CONFIGURE_ARGS+= --with-x --with-xft
+.endif
+
+.if !defined(UIM_SLAVE)
+.if !defined(WITHOUT_X11)
+USE_GNOME+= gtk20
+CONFIGURE_ARGS+= --with-gtk2
+.endif
+CONFIGURE_ARGS+= --enable-emacs
+.endif
+
+CONFIGURE_ENV?= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
+ LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
+
+.if !defined(UIM_SLAVE)
+.if !defined(WITHOUT_X11)
+MAN1= uim-xim.1
+.endif
+DOCSDIR_JA= ${PREFIX}/share/doc/ja/uim
+PLIST_SUB= DOCSDIR_JA="${DOCSDIR_JA:S,^${PREFIX}/,,}"
+.endif
+
+.if defined(WITHOUT_X11)
+PLIST_SUB+= X11="@comment "
+.else
+PLIST_SUB+= X11=""
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-uim_editline.c
+.endif
+
+.if ${PERL_LEVEL} >= 500600
+USE_PERL5_BUILD=yes
+.else
+BUILD_DEPENDS+= ${LOCALBASE}/bin/perl:${PORTSDIR}/lang/perl5
+CONFIGURE_ENV+= INTLTOOL_PERL="${LOCALBASE}/bin/perl"
+.endif
+
+.for _x in x xft gtk2 qt gnome2 anthy canna m17nlib prime scim dict
+.if ${CONFIGURE_ARGS:M--with-${_x}} == ""
+CONFIGURE_ARGS+=--without-${_x}
+.endif
+.endfor
+.if ${CONFIGURE_ARGS:M--enable-applet} == ""
+CONFIGURE_ARGS+=--disable-applet
+.endif
+
+.if !defined(UIM_SLAVE)
+pre-everything::
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "NOTE:"
+ @${ECHO_MSG} "Optional features are splitted into the following slave ports."
+ @${ECHO_MSG} "OPTIONS variable is no longer used."
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "japanese/uim-anthy"
+ @${ECHO_MSG} "japanese/uim-canna"
+ @${ECHO_MSG} "japanese/uim-prime"
+ @${ECHO_MSG} "textproc/uim-gnome"
+ @${ECHO_MSG} "textproc/uim-gtk"
+ @${ECHO_MSG} "textproc/uim-m17nlib"
+ @${ECHO_MSG} "textproc/uim-qt"
+ @${ECHO_MSG} ""
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/scm/skk-custom.scm
+
+do-install:
+.if !defined(UIM_SLAVE)
+ cd ${WRKSRC} && ${GMAKE} install-data-am
+.for d in uim scm xim po fep emacs pixmaps
+ cd ${WRKSRC}/${d} && ${GMAKE} install
+.endfor
+ cd ${WRKSRC}/helper && ${GMAKE} install-libexecPROGRAMS
+.endif
+
+.if !defined(UIM_SLAVE) && !defined(NOPORTDOCS)
+post-install:
+ ${MKDIR} ${DOCSDIR}
+ ${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>