aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/gkremldk/Makefile
blob: 558c3a912827804b49a98c59547b735fa4dfec66 (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
# New ports collection makefile for:    GKrellM MLDonkey plugin
# Date created:     Sat Mar 25 05:17:51 UTC 2006
# Whom:                 Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

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

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

BUILD_DEPENDS=  \
        pkg-config:${PORTSDIR}/devel/pkg-config \
        ${LOCALBASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2
RUN_DEPENDS=    gkrellm:${PORTSDIR}/sysutils/gkrellm2

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

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

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

.include <bsd.port.mk>