mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
3efa67895e
- Trim Makefile header. - Remove shared lib version from LIB_DEPENDS.
118 lines
2.8 KiB
Makefile
118 lines
2.8 KiB
Makefile
# Created by: MANTANI Nobutaka <nobutaka@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= uim
|
|
PORTVERSION= 1.8.5
|
|
CATEGORIES?= textproc
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
|
.if !defined(UIM_SLAVE) && defined(WITHOUT_X11)
|
|
PKGNAMESUFFIX= -nox11
|
|
.endif
|
|
|
|
MAINTAINER= nobutaka@FreeBSD.org
|
|
COMMENT?= Input method library
|
|
|
|
USE_BZIP2= yes
|
|
USE_LDCONFIG= yes
|
|
WANT_GNOME= yes
|
|
USE_GNOME+= glib20 intltool
|
|
USE_GMAKE= yes
|
|
USE_AUTOTOOLS= libtool
|
|
USES= gettext iconv
|
|
USE_PERL5_BUILD=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 --with-sj3 --with-canna --with-prime
|
|
.endif
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
.if !defined(UIM_SLAVE)
|
|
.if !defined(WITHOUT_X11)
|
|
MAN1= uim-xim.1
|
|
.endif
|
|
DOCSDIR_JA= ${PREFIX}/share/doc/ja/uim
|
|
DOCSDIR_SIGSCHEME= ${PREFIX}/share/doc/uim/sigscheme
|
|
PLIST_SUB= DOCSDIR_JA="${DOCSDIR_JA:S,^${PREFIX}/,,}" \
|
|
DOCSDIR_SIGSCHEME="${DOCSDIR_SIGSCHEME:S,^${PREFIX}/,,}"
|
|
.endif
|
|
|
|
.if defined(WITHOUT_X11)
|
|
PLIST_SUB+= X11="@comment "
|
|
.else
|
|
PLIST_SUB+= X11=""
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "ia64"
|
|
IGNORE= not yet ported to ia64
|
|
.endif
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64" || ${ARCH} == "sparc64"
|
|
CONFIGURE_ARGS+= --enable-storage=fatty
|
|
.endif
|
|
|
|
.for _x in x xft gtk2 qt anthy canna m17nlib prime scim dict
|
|
.if ${CONFIGURE_ARGS:M--with-${_x}} == ""
|
|
CONFIGURE_ARGS+=--without-${_x}
|
|
.endif
|
|
.endfor
|
|
.for _x in gnome-applet kde-applet emacs pref
|
|
.if ${CONFIGURE_ARGS:M--enable-${_x}} == ""
|
|
CONFIGURE_ARGS+=--disable-${_x}
|
|
.endif
|
|
.endfor
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/scm/skk-custom.scm
|
|
|
|
do-build:
|
|
.if !defined(UIM_SLAVE)
|
|
.for d in replace sigscheme uim scm xim po fep emacs pixmaps tables
|
|
cd ${WRKSRC}/${d} && ${GMAKE}
|
|
.endfor
|
|
.if !defined(WITHOUT_X11)
|
|
cd ${WRKSRC}/gtk2/candwin && ${GMAKE}
|
|
.endif
|
|
.endif
|
|
|
|
do-install:
|
|
.if !defined(UIM_SLAVE)
|
|
cd ${WRKSRC} && ${GMAKE} install-data-am
|
|
.for d in sigscheme uim scm xim po fep emacs pixmaps tables
|
|
cd ${WRKSRC}/${d} && ${GMAKE} install
|
|
.endfor
|
|
.if !defined(WITHOUT_X11)
|
|
cd ${WRKSRC}/gtk2/candwin && ${GMAKE} install
|
|
.endif
|
|
.endif
|
|
|
|
.if !defined(UIM_SLAVE)
|
|
post-install:
|
|
${MKDIR} ${DATADIR}/helperdata
|
|
.if !defined(NOPORTDOCS)
|
|
${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 ${DOCSDIR}/README.key
|
|
${INSTALL_DATA} ${WRKSRC}/fep/README.ja ${DOCSDIR_JA}/README.fep
|
|
${INSTALL_DATA} ${WRKSRC}/xim/README ${DOCSDIR}/README.xim
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|