1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00
freebsd-ports/ftp/downloader/Makefile
Edwin Groothuis 090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00

82 lines
2.0 KiB
Makefile

# ex:ts=8
# New ports collection makefile for: downloader
# Date Created: 23 June 1999
# Whom: Ying-Chieh Liao <ijliao@csie.nctu.edu.tw>
#
# $FreeBSD$
#
PORTNAME= downloader
PORTVERSION= 2.5.7.1
PORTREVISION= 3
CATEGORIES= ftp
MASTER_SITES= http://d4x.krasu.ru/files/ \
ftp://ftp.chg.ru/pub/X11/applications/Xdownloader/
DISTNAME= d4x-${PORTVERSION}
MAINTAINER= beech@FreeBSD.org
COMMENT= Program for downloading via FTP or HTTP with GUI
BUILD_DEPENDS= ${LOCALBASE}/include/boost/smart_ptr.hpp:${PORTSDIR}/devel/boost \
bash:${PORTSDIR}/shells/bash
USE_BZIP2= yes
USE_GNOME= esound gnometarget gtk20
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
ac_cv_path_GENGETOPT=no
MAN1= nt.1
DATADIR= ${PREFIX}/share/d4x
DOCSDIR= ${PREFIX}/share/doc/d4x
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.else
PLIST_SUB+= NLS=""
.endif
.if defined(WITHOUT_OPENSSL)
CONFIGURE_ARGS+= --disable-openssl
.else
USE_OPENSSL= yes
CONFIGURE_ENV+= SSL_CFLAGS="${OPENSSLINC}" SSL_LIBS="${OPENSSLLIB}"
LDFLAGS+= -lssl -lcrypto
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
CPPFLAGS+= -D__sparc__
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/bin/sh|${LOCALBASE}/bin/bash|g ; \
s| == "xno"| = "xno"|g ; \
s| $$OPTFLAGS||g ; \
s| $$OS_CXXFLAGS||g ; \
s|-lpthread||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 <bsd.port.post.mk>