# ex:ts=8 # New ports collection makefile for: mget # Date created: Sep 21, 2001 # Whom: ijliao # # $FreeBSD$ # PORTNAME= mget PORTVERSION= 1.4.1 CATEGORIES= ftp ipv6 MASTER_SITES= http://www.cse.iitk.ac.in/users/dbera/ MAINTAINER= ports@FreeBSD.org COMMENT= Multi Threaded Wget CFLAGS+= -DHAS_HERROR -DHAVE_GETOPT_LONG -DHAVE_INET_NTOP -DHAVE_IPV6 \ ${PTHREAD_CFLAGS:S/"//g} LDFLAGS+= ${PTHREAD_LIBS:S/"//g} .if !exists(/usr/include/getopt.h) LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt .endif do-build: cd ${WRKSRC} && ${CC} ${CFLAGS} -o mget *.c ${LDFLAGS} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/mget ${PREFIX}/bin .include