2008-05-18 02:06:46 +02:00
|
|
|
# $NetBSD: Makefile,v 1.13 2008/05/18 00:06:46 tnn Exp $
|
2007-07-28 14:13:33 +02:00
|
|
|
#
|
|
|
|
|
2007-08-13 16:20:21 +02:00
|
|
|
PKGNAME= finch-${PIDGIN_VERSION}
|
2007-07-28 14:13:33 +02:00
|
|
|
|
|
|
|
COMMENT= Multi-protocol Instant Messaging client console frontend
|
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
|
|
|
.include "../../chat/libpurple/Makefile.common"
|
|
|
|
|
2007-08-11 16:54:07 +02:00
|
|
|
USE_TOOLS+= msgfmt
|
|
|
|
|
2007-11-03 16:59:17 +01:00
|
|
|
PKGCONFIG_OVERRIDE+= finch/finch.pc.in
|
2007-07-28 14:13:33 +02:00
|
|
|
PKGCONFIG_OVERRIDE+= finch/libgnt/gnt.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= gaim.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= libpurple/purple.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= pidgin/pidgin.pc.in
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-consoleui
|
|
|
|
|
|
|
|
#CONFIGURE_ARGS+= --disable-plugins
|
|
|
|
|
2008-02-22 20:10:38 +01:00
|
|
|
# The configure script uses an incredibly stupid way to detect if the
|
|
|
|
# ncurses header is present. As such, it needs the exact path to the
|
|
|
|
# ncurses header it will use, so provide the path to the one in
|
|
|
|
# ${BUILDLINK_DIR}.
|
|
|
|
#
|
|
|
|
CONFIGURE_ARGS+= --with-ncurses-headers=${BUILDLINK_DIR}/include
|
2008-02-02 22:43:27 +01:00
|
|
|
|
2007-07-28 14:13:33 +02:00
|
|
|
USE_NCURSES= yes # force ncurses, for libpanel
|
|
|
|
|
2008-02-22 20:10:38 +01:00
|
|
|
BUILD_DIRS= finch
|
2007-07-28 14:13:33 +02:00
|
|
|
|
|
|
|
.include "options.mk"
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
# XXX Find a cleaner way.
|
|
|
|
${TEST} -r ${WRKSRC}/libpurple/libpurple.la || \
|
2007-09-25 12:03:52 +02:00
|
|
|
ln -s ${BUILDLINK_DIR}/lib/libpurple.la ${WRKSRC}/libpurple/.
|
2007-07-28 14:13:33 +02:00
|
|
|
|
|
|
|
post-install:
|
2008-02-22 20:10:38 +01:00
|
|
|
${INSTALL_MAN_DIR} ${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR:Q}/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/finch.1 \
|
|
|
|
${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR:Q}/man1
|
2007-07-28 14:13:33 +02:00
|
|
|
|
|
|
|
.include "../../chat/libpurple/buildlink3.mk"
|
2007-08-30 19:20:06 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
2007-07-28 14:13:33 +02:00
|
|
|
.include "../../devel/glib2/buildlink3.mk"
|
2008-02-02 22:43:27 +01:00
|
|
|
.include "../../devel/ncursesw/buildlink3.mk"
|
2007-07-28 14:13:33 +02:00
|
|
|
.include "../../textproc/libxml2/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|