2006-08-01 18:55:52 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2006/08/01 22:55:52 espie Exp $
|
2004-04-14 23:37:43 -04:00
|
|
|
|
2005-08-09 15:09:05 -04:00
|
|
|
COMMENT= "C reimplementation of the BitTorrent core protocols"
|
2004-07-12 02:16:49 -04:00
|
|
|
DISTNAME= libbt-1.03
|
2005-08-09 15:09:05 -04:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2004-04-14 23:37:43 -04:00
|
|
|
CATEGORIES= devel net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libbt/}
|
|
|
|
|
|
|
|
HOMEPAGE= http://libbt.sourceforge.net/
|
|
|
|
|
|
|
|
MAINTAINER= Jolan Luff <jolan@openbsd.org>
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2004-11-23 16:34:27 -05:00
|
|
|
WANTLIB= c crypto m ssl z
|
2004-04-14 23:37:43 -04:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
2004-04-17 21:04:28 -04:00
|
|
|
USE_X11= Yes # for makedepend
|
2004-04-14 23:37:43 -04:00
|
|
|
|
2006-08-01 18:55:52 -04:00
|
|
|
LIB_DEPENDS= curl.>=2.2::net/curl
|
2004-04-14 23:37:43 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/libbt
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/src/libbt.a ${PREFIX}/lib
|
|
|
|
.for p in btcheck btget btlist
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/src/${p} ${PREFIX}/bin
|
|
|
|
.endfor
|
2004-07-12 02:16:49 -04:00
|
|
|
.for i in benc bitset bterror btmessage bts context peer random segmenter \
|
|
|
|
strbuf stream types util
|
2004-04-14 23:37:43 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/${i}.h ${PREFIX}/include/libbt
|
|
|
|
.endfor
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/*.1 ${PREFIX}/man/man1
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|