freebsd-ports/net-p2p/edonkey-tool-slist/Makefile
Mario Sergio Fujikawa Ferreira 51a889d9a1 New port edonkey-tool-slist version 0.2: Checks which servers are
either dead or alive in server.met
2002-02-21 01:39:49 +00:00

41 lines
1.0 KiB
Makefile

# New ports collection makefile for: edonkey server list tool
# Date created: Wed Feb 20 18:03:49 BRT 2002
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= edonkey
PORTVERSION= 0.2
CATEGORIES= misc
MASTER_SITES= http://users.aber.ac.uk/tpm01/ed2k_tools/
PKGNAMESUFFIX= -tool-slist
DISTNAME= ed2k_slist-${PORTVERSION}
MAINTAINER= lioux@FreeBSD.org
WRKSRC= ${WRKDIR}/ed2k_slist
post-patch:
@${PERL} -pi -e 's|\r\n|\n|' ${WRKSRC}/*.[ch]
@${PERL} -pi -e 's|(#include <unistd.h>)|\1\n#include\
<sys/time.h>|' ${WRKSRC}/linux_net.c
# I could have written a Makefile but I would rather
# not waste inodes
do-build:
@cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} \
ed2k_slist.c -o ${PORTNAME}${PKGNAMESUFFIX}
do-install:
.ifndef(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
@${INSTALL_DATA} ${WRKSRC}/COPYING \
${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
.endif
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}${PKGNAMESUFFIX} \
${PREFIX}/bin
.include <bsd.port.mk>