aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/iiimf-gnome-im-switcher/Makefile
blob: 70f29d8fb55c5b2cb3257ce1416af13d51d61bd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# New ports collection makefile for:    iiimf-gnome-im-switcher
# Date created:     10 Sep 2004
# Whom:         Kuang-che Wu <kcwu@csie.org>
#
# $FreeBSD$
#

PORTNAME=   gnome-im-switcher
PORTVERSION=    ${IIIMF_VER:S/_/./g:C/-.*//}
CATEGORIES= textproc
MASTER_SITES=   http://www.openi18n.org/download/im-sdk/src/
PKGNAMEPREFIX=  iiimf-
DISTNAME=   im-sdk
DISTFILES=  ${DISTNAME}-src-${IIIMF_VER}.tgz

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
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}

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'

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

.include <bsd.port.mk>