# ex:ts=8 # New ports collection makefile for: downloader # Date Created: 23 June 1999 # Whom: Ying-Chieh Liao # # $FreeBSD$ # PORTNAME= downloader PORTVERSION= 2.4.1 PORTREVISION= 1 CATEGORIES= ftp MASTER_SITES= http://www.krasu.ru/soft/chuchelo/files/ \ ftp://ftp.chg.ru/pub/X11/applications/Xdownloader/ \ http://www.scutty.co.uk/downloader/software/ \ ftp://ftp.uni-klu.ac.at/pub/linux/internet/downloader/ DISTNAME= d4x-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Program for downloading via ftp or http with GUI LIB_DEPENDS= gtk-x11-2.0.200:${PORTSDIR}/x11-toolkits/gtk20 USE_GNOME= esound USE_REINPLACE= yes USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" CONFIGURE_ARGS= --enable-release MAN1= nt.1 DATADIR= ${PREFIX}/share/d4x DOCSDIR= ${PREFIX}/share/doc/d4x post-patch: @${REINPLACE_CMD} -e 's| $$OPTFLAGS||g ; \ s|OS_CXXFLAGS="-pthread"|OS_CXXFLAGS="${PTHREAD_CFLAGS}"|g ; \ s|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's| DOC||g ; \ s| share||g' ${WRKSRC}/Makefile.in post-install: ${INSTALL_MAN} ${WRKSRC}/DOC/nt.1 ${MANPREFIX}/man/man1 @${MKDIR} ${DATADIR} ${TAR} -C ${WRKSRC}/share --exclude "Makefile*" \ -cf - . | ${TAR} -C ${DATADIR} --unlink -xf - @${CHOWN} ${SHAREOWN}:${SHAREGRP} ${DATADIR} .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${TAR} -C ${WRKSRC}/DOC --exclude "Makefile*" --exclude "nt.1" \ -cf - . | ${TAR} -C ${DOCSDIR} --unlink -xf - @${CHOWN} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} .endif .include