blob: bcb76a8b537e6684c719c4cf2e3a4efb4f6ad2da (
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
44
|
# Created by: Sverrir Valgeirsson <e96sv@yahoo.se> and
# $FreeBSD$
PORTNAME= dclib
PORTVERSION= 0.3.23
PORTREVISION= 3
CATEGORIES= net-p2p
MASTER_SITES= SF/wxdcgui/${PORTNAME}/${PORTVERSION}
MAINTAINER= gahr@FreeBSD.org
COMMENT= Direct connect interface library for valknut
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
WRKSRC= ${WRKDIR}/${DISTNAME}
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_GNOME= libxml2
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 1000015
EXTRA_PATCHES= ${FILESDIR}/extra-dclib-core_cssl.cpp
.endif
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.am ${WRKSRC}/Makefile.in
${FIND} ${WRKSRC} -name "Makefile.*" | ${XARGS} \
${REINPLACE_CMD} -e 's|dclib-0.3/||g'
${REINPLACE_CMD} -e 's|-0.3||g' ${WRKSRC}/dclib.pc.in
${REINPLACE_CMD} -e 's|-D_XOPEN_SOURCE=500||g; \
s|-D_BSD_SOURCE||g' ${WRKSRC}/configure ${WRKSRC}/configure.in
.include <bsd.port.post.mk>
|