mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
986764c4d1
- depend on gnugetopt.1, not just gnugetopt - add ipv6 support - fix malloc.h problems - redo build process PR: 32306 Submitted by: KATO Tsuguru <tkato@prontomail.com>
33 lines
757 B
Makefile
33 lines
757 B
Makefile
# ex:ts=8
|
|
# New ports collection makefile for: mget
|
|
# Date created: Sep 21, 2001
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mget
|
|
PORTVERSION= 1.3.0.2
|
|
CATEGORIES= ftp ipv6
|
|
MASTER_SITES= http://home.talkcity.com/LaGrangeLn/dbera/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
|
|
|
|
CFLAGS+= -DHAS_HERROR -DHAVE_GETOPT_LONG -DHAVE_INET_NTOP -DHAVE_IPV6 \
|
|
-I${LOCALBASE}/include ${PTHREAD_CFLAGS:S/"//g}
|
|
LDFLAGS= -L${LOCALBASE}/lib -lgnugetopt ${PTHREAD_LIBS:S/"//g}
|
|
|
|
pre-patch:
|
|
@find ${WRKSRC} -name '*.[ch]' | xargs ${PERL} -pi -e \
|
|
's|#include <malloc.h>||g'
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} -o mget *.c ${LDFLAGS}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mget ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|