summaryrefslogblamecommitdiff
path: root/ftp/afd/Makefile
blob: b06d01a92bfca548b2007db731e0dda2e2c9e2ab (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                    

                                                                                  















                                                                                                 
# ex:ts=8
# New ports collection makefile for:	afd
# Date created:			Apr 26, 2001
# Whom:				Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	afd
PORTVERSION=	1.2.6
CATEGORIES=	ftp
MASTER_SITES=	http://www.dwd.de/general/GBTI/afd/download/ \
		ftp://ftp.dwd.de/pub/afd/
DISTNAME=	src-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org

FORBIDDEN=	"Installs 88 setuid root applications; disaster waiting to happen"

USE_MOTIF=	yes
MAKE_ENV=	BINMODE=${BINMODE} \
		PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PTHREAD_LIBS=${PTHREAD_LIBS}

post-patch:
	@find ${WRKSRC} -name Makefile | xargs \
		${PERL} -pi -e "s,^(INST(ALL)?DIR *)= .*,\1= ${PREFIX}/bin,g ; \
				s,cp -p,cp,g"
	@${PERL} -pi -e "s,%%CFLAGS%%,${CFLAGS},g" ${WRKSRC}/Include.mk.freebsd
	@${PERL} -pi -e "s,^SBINDIR  = .*,SBINDIR  = ${PREFIX}/sbin,g" ${WRKSRC}/afd_mon/Makefile

pre-build:
	@(cd ${WRKSRC} ; ${RM} -f Include.mk ; \
	  ${LN} -s Include.mk.freebsd Include.mk)

.include <bsd.port.mk>