freebsd-ports/net-p2p/dclib/Makefile
Tijl Coosemans 37a5b5d584 - USES=libtool pathfix tar:bzip2
- Add INSTALL_TARGET=install-strip
- Don't patch Makefile.am and configure.in to avoid autotools
2014-07-08 19:00:02 +00:00

39 lines
942 B
Makefile

# Created by: Sverrir Valgeirsson <e96sv@yahoo.se> and
# $FreeBSD$
PORTNAME= dclib
PORTVERSION= 0.3.23
PORTREVISION= 4
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}
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USES= libtool pathfix tar:bzip2
USE_LDCONFIG= yes
USE_GNOME= libxml2
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
.if ${OSVERSION} >= 1000015
EXTRA_PATCHES= ${FILESDIR}/extra-dclib-core_cssl.cpp
.endif
post-patch:
${FIND} ${WRKSRC} -name Makefile.in | ${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
.include <bsd.port.mk>