aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/dclib/Makefile
blob: 7d9c487a89fecc904be0681c693cea27d3e30e40 (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
41
42
43
# ex: ts=8
# New ports collection makefile for:    dclib
# Date created:                         Wed 10 Jul 2002
# Whom: Sverrir Valgeirsson <e96sv@yahoo.se> and
#   Amar Takhar <verm@drunkmonk.net> et al
#
# $FreeBSD$
#

PORTNAME=   dclib
PORTVERSION=    0.3.14
CATEGORIES= net-p2p
MASTER_SITES=   SF
MASTER_SITE_SUBDIR= wxdcgui
DISTNAME=   ${PORTNAME}-${PORTVERSION}a

MAINTAINER= gahr@FreeBSD.org
COMMENT=    Direct connect interface library for valknut

LIB_DEPENDS=    jpeg.9:${PORTSDIR}/graphics/jpeg \
        xml2.5:${PORTSDIR}/textproc/libxml2

WRKSRC= ${WRKDIR}/${DISTNAME}

USE_AUTOTOOLS=  libtool:15
USE_BZIP2=  yes
GNU_CONFIGURE=  yes
USE_OPENSSL=    yes
USE_LDCONFIG=   yes
CONFIGURE_TARGET=   --build=${ARCH}-portbld-freebsd${OSREL}

post-extract:
    ${CHMOD} 0755 ${WRKSRC}/admin/install-sh

post-patch:
    ${REINPLACE_CMD} -e 's/-O2//g; s/-pedantic //g' \
        ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
    ${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \
        ${WRKSRC}/Makefile.in
    ${FIND} ${WRKSRC} -name "Makefile.*" | ${XARGS} \
        ${REINPLACE_CMD} -e 's|dclib-0.3/||g'

.include <bsd.port.mk>