summaryrefslogtreecommitdiff
path: root/chat/gaim-icb/Makefile
blob: a941e8084d21d5bcb6fbbfab3629cc89c9d1d4df (plain)
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
# $NetBSD: Makefile,v 1.2 2006/01/24 07:31:57 wiz Exp $

DISTNAME=	gaim-icb-20050918
PKGREVISION=	1
CATEGORIES=	chat
MASTER_SITES=	http://nic.com.pl/~alek/gaim-icb/

MAINTAINER=	nathanw@NetBSD.org
HOMEPAGE=	http://nic.com.pl/~alek/gaim-icb/
COMMENT=	ICB plugin for GAIM

USE_TOOLS+=	pkg-config

USE_LIBTOOL=	yes
NO_CONFIGURE=	yes

LTCOMPILE=	${SHLIBTOOL} --mode=compile ${CC}
LTLINK=		${SHLIBTOOL} --mode=link ${CC}
LTINSTALL=	${SHLIBTOOL} --mode=install ${INSTALL_LIB}
CFLAGS+=	-DHAVE_CONFIG_H `pkg-config gaim --cflags`
LDFLAGS+=	-module -avoid-version -rpath ${GAIM_PLUGIN_DIR}	\
		`pkg-config gaim --libs`

GAIM_PLUGIN_DIR=	${PREFIX}/lib/gaim
GAIM_PIXMAPS_DIR=	${PREFIX}/share/pixmaps/gaim

do-build:
	cd ${WRKSRC} && ${LTCOMPILE} ${CFLAGS} -I. -c icb.c
	cd ${WRKSRC} && ${LTLINK} ${LDFLAGS} -o libicb.la icb.lo

do-install:
	${INSTALL_LIB_DIR} ${GAIM_PLUGIN_DIR}
	cd ${WRKSRC} && ${LTINSTALL} libicb.la ${GAIM_PLUGIN_DIR}
	${INSTALL_DATA_DIR} ${GAIM_PIXMAPS_DIR}/status/default
	cd ${WRKSRC} && ${INSTALL_DATA} icb.png				\
		${GAIM_PIXMAPS_DIR}/status/default

.include "../../chat/gaim/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"