# $OpenBSD: Makefile,v 1.2 2009/01/20 09:25:17 kevlo Exp $

SHARED_ONLY=	Yes

COMMENT=	smart common input method platform

DISTNAME=	scim-1.4.7
PKGNAME=	${DISTNAME}p0

SHARED_LIBS +=  scim-1.0           0.0           # .10.3
SHARED_LIBS +=  scim-x11utils-1.0  0.0           # .10.3
SHARED_LIBS +=  scim-gtkutils-1.0  0.0           # .10.3

CATEGORIES=	inputmethods chinese japanese korean

HOMEPAGE=	http://www.scim-im.org/

MAINTAINER=	Kevin Lo <kevlo@openbsd.org>

# GPLv2
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes

WANTLIB=	X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
		Xi Xinerama Xrandr Xrender atk-1.0 c cairo expat fontconfig \
		freetype glib-2.0 glitz gmodule-2.0 gobject-2.0 gthread-2.0 \
		gio-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre pixman-1 \
		png pthread stdc++ z

MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=scim/}

MODULES=	devel/gettext \
		textproc/intltool
RUN_DEPENDS=	:desktop-file-utils-*:devel/desktop-file-utils
LIB_DEPENDS=	gtk-x11-2.0,gdk-x11-2.0,gdk_pixbuf-2.0::x11/gtk+2

USE_X11=	Yes
USE_GMAKE=	Yes
USE_LIBTOOL=	Yes
LIBTOOL_FLAGS=	--tag=disable-static
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS=	${CONFIGURE_SHARED}

.include <bsd.port.mk>
