# New ports collection makefile for: pavuk # Date created: 19 March 1998 # Whom: Andrey Zakhvatov # # $FreeBSD$ # PORTNAME= pavuk PORTVERSION= 0.9.31 CATEGORIES= ftp www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= HTTP, FTP and Gopher mirroring tool USE_BZIP2= yes WANT_GNOME= yes USE_GNOME= gnometarget USE_OPENSSL= yes USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CONFIGURE_ARGS= --with-locale-dir=${PREFIX}/share/locale \ --disable-debug --disable-gnome --disable-gtk2 --disable-js \ --enable-threads MAN1= pavuk.1 CPPFLAGS= -I${LOCALBASE}/include LDFLAGS= -L${LOCALBASE}/lib .include .if defined(WITHOUT_NLS) CONFIGURE_ARGS+= --disable-nls PLIST_SUB+= NLS="@comment " .else USE_GETTEXT= yes PLIST_SUB+= NLS="" .endif .if ${HAVE_GNOME:Mgtk12}!="" PKGNAMESUFFIX= -gtk USE_GNOME+= gtk12 CONFIGURE_ARGS+= --with-gtk-config="${GTK_CONFIG}" .else CONFIGURE_ARGS+= --disable-gtk .endif pre-patch: @${REINPLACE_CMD} -e \ 's|-pthread -DHAVE_MT|${PTHREAD_CFLAGS} -DHAVE_MT|g ; \ s|-pthread|${PTHREAD_LIBS}|g ; \ s|-lpthreads|${PTHREAD_LIBS}|g' ${WRKSRC}/configure @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ 's|$$(datadir)/icons|$$(pkgdatadir)/icons|g' post-install: ${INSTALL_DATA} ${WRKSRC}/pavuk_authinfo.sample ${PREFIX}/etc ${INSTALL_DATA} ${WRKSRC}/pavukrc.sample ${PREFIX}/etc .if !defined(WITHOUT_NLS) .for l in cs de es fr it pl ja sk uk @${MKDIR} ${PREFIX}/share/locale/${l}/LC_MESSAGES ${INSTALL_DATA} ${WRKSRC}/po/${l}.mo \ ${PREFIX}/share/locale/${l}/LC_MESSAGES/pavuk.mo .endfor .endif .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for f in AUTHORS BUGS CREDITS ChangeLog FAQ MAILINGLIST NEWS README \ wget-pavuk.HOWTO ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} .endfor .endif .include