aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/valknut/Makefile
blob: eae6c9622f03f5b709df1407b60ff11ec4972d16 (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
# Created by: Sverrir Valgeirsson <e96sv@yahoo.se>
# $FreeBSD$

PORTNAME=   valknut
PORTVERSION=    0.4.9
PORTREVISION=   6
CATEGORIES= net-p2p
MASTER_SITES=   SF/wxdcgui/${PORTNAME}-qt4/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Qt-based Direct Connect client

LICENSE=    GPLv2

LIB_DEPENDS=    libdc.so:${PORTSDIR}/net-p2p/dclib \
        libxml2.so:${PORTSDIR}/textproc/libxml2

WRKSRC= ${WRKDIR}/${DISTNAME}

USE_QT4=    corelib gui network qt3support \
        moc_build uic_build rcc_build linguisttools_build
USES=       gmake perl5 pkgconfig tar:bzip2
USE_PERL5=  build
GNU_CONFIGURE=  yes
INSTALLS_ICONS= yes
CFLAGS+=    -I${QT_INCDIR}
LDFLAGS+=   -L${QT_LIBDIR}
QTCFGLIBS+= -lpthread
CONFIGURE_ENV+= DCLIB_CFLAGS=-I${LOCALBASE}/include

post-patch:
    ${REINPLACE_CMD} -e 's|-D_XOPEN_SOURCE=500||g' \
        ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}

.include <bsd.port.mk>