d4f0d0048a
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}. - Bump PORTREVISION for ports intalling files in ${X11BASE}.
89 lines
2.4 KiB
Makefile
89 lines
2.4 KiB
Makefile
# New ports collection makefile for: gajim-devel
|
|
# Date created: Sun Nov 26 16:36:07 MSK 2006
|
|
# Whom: Denis Shaposhnikov <dsh@vlink.ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gajim
|
|
PORTVERSION= 20070402
|
|
PORTREVISION= 1
|
|
CATEGORIES= net-im
|
|
MASTER_SITES= http://ports.internal.vlink.ru/distfiles/
|
|
PKGNAMESUFFIX= -devel
|
|
DISTNAME= ${PORTNAME}-2007-04-02
|
|
|
|
MAINTAINER= dsh@vlink.ru
|
|
COMMENT= Gajim is a Jabber client based on a plugin system
|
|
|
|
LIB_DEPENDS= gtkspell.0:${PORTSDIR}/textproc/gtkspell
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/OpenSSL/SSL.so:${PORTSDIR}/security/py-openssl
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_GMAKE= yes
|
|
USE_GNOME= pygtk2
|
|
USE_PYTHON= 2.4+
|
|
USE_XLIB= yes
|
|
|
|
CONFIGURE_ARGS+= --mandir=${MANPREFIX}/man
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I ${X11BASE}/include" PYTHON=${PYTHON_CMD}
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
USE_GETTEXT= yes
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-0.11.1.0
|
|
|
|
MAN1= gajim.1 gajim-remote.1
|
|
|
|
EMOTICONS= animated static
|
|
ICONSETS= crystal dcraven gnome goojim gossip gota jabberbulb nuvola \
|
|
simplebulb stellar sun transports
|
|
|
|
post-patch:
|
|
.for i in gajim-remote.py gajim.py history_manager.py
|
|
${REINPLACE_CMD} -e '1,1s/python/${PYTHON_VERSION}/' \
|
|
${WRKSRC}/src/$i
|
|
.endfor
|
|
|
|
pre-build:
|
|
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/src
|
|
|
|
post-install:
|
|
${MKDIR} ${DATADIR}/data/emoticons
|
|
(cd ${WRKSRC}/data/emoticons && \
|
|
${CP} -R ${EMOTICONS} ${DATADIR}/data/emoticons)
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}/data/emoticons
|
|
${FIND} ${DATADIR}/data/emoticons -type d -print0 | \
|
|
${XARGS} -0 ${CHMOD} 755
|
|
${FIND} ${DATADIR}/data/emoticons -type f -print0 | \
|
|
${XARGS} -0 ${CHMOD} ${SHAREMODE}
|
|
|
|
${MKDIR} ${DATADIR}/data/iconsets
|
|
(cd ${WRKSRC}/data/iconsets && \
|
|
${CP} -R ${ICONSETS} ${DATADIR}/data/iconsets)
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}/data/iconsets
|
|
${FIND} ${DATADIR}/data/iconsets -type d -print0 | \
|
|
${XARGS} -0 ${CHMOD} 755
|
|
${FIND} ${DATADIR}/data/iconsets -type f -print0 | \
|
|
${XARGS} -0 ${CHMOD} ${SHAREMODE}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 500000
|
|
BROKEN= doesn\'t install
|
|
.endif
|
|
|
|
.if ${PYTHON_REL} >= 250
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
|
|
.else
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite21
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|