# New ports collection makefile for: edonkey server list tool # Date created: Wed Feb 20 18:03:49 BRT 2002 # Whom: Mario Sergio Fujikawa Ferreira # # $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 )|\1\n#include\ |' ${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