aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/gkremldk/Makefile
blob: e7fa17f07451ed5844dbcbbb78b385d2dfafbc49 (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
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$

PORTNAME=   gkremldk
PORTVERSION=    0.9.8
PORTREVISION=   2
CATEGORIES= net-p2p
MASTER_SITES=   http://www.tof2k.com/gkremldk/
DISTNAME=   ${PORTNAME}-src-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Shows current mldonkey donwload/upload rates and allows setting them

LICENSE=    GPLv2+

BROKEN=     unfetchable

BUILD_DEPENDS=  ${LOCALBASE}/include/gkrellm2/gkrellm.h:sysutils/gkrellm2
RUN_DEPENDS=    gkrellm:sysutils/gkrellm2

USES=       autoreconf pkgconfig tar:tbz
GNU_CONFIGURE=  yes
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

post-patch:
    @${REINPLACE_CMD} -E \
        -e 's|^(LFLAGS).*|\1 = ${LDFLAGS} -lpthread -L${LOCALBASE}/lib|' \
        -e 's|(-fPIC)|\1 ${CFLAGS} -I${LOCALBASE}/include|' \
        ${WRKSRC}/Makefile.in

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins
    ${INSTALL_LIB} ${WRKSRC}/gkremldk.so \
        ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins

.include <bsd.port.mk>