aboutsummaryrefslogtreecommitdiff
path: root/ftp/downloader/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/downloader/Makefile')
-rw-r--r--ftp/downloader/Makefile37
1 files changed, 19 insertions, 18 deletions
diff --git a/ftp/downloader/Makefile b/ftp/downloader/Makefile
index 9aa736ccc20d..f34e7c384913 100644
--- a/ftp/downloader/Makefile
+++ b/ftp/downloader/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= downloader
-PORTVERSION= 2.03
+PORTVERSION= 2.4.1
CATEGORIES= ftp
MASTER_SITES= http://www.krasu.ru/soft/chuchelo/files/ \
ftp://ftp.chg.ru/pub/X11/applications/Xdownloader/ \
@@ -17,40 +17,41 @@ DISTNAME= d4x-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
- gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf
+LIB_DEPENDS= gtk-x11-2.0.0:${PORTSDIR}/x11-toolkits/gtk20
-USE_REINPLACE= yes
USE_GNOMENG= yes
-USE_GNOME= gtk12 esound
+USE_GNOME= esound
+USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
+ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
CONFIGURE_ARGS= --enable-release
MAN1= nt.1
+DATADIR= ${PREFIX}/share/d4x
DOCSDIR= ${PREFIX}/share/doc/d4x
-PORTDOCS= FAQ FAQ.de FAQ.es FAQ.fr FAQ.gr INSTALL INSTALL.de \
- INSTALL.es INSTALL.fr INSTALL.gr INSTALL.he INSTALL.pl \
- INSTALL.pt_BR LICENSE NAMES THANKS TROUBLES
post-patch:
- @${REINPLACE_CMD} -e 's|CXXFLAGS="-O."|CXXFLAGS=\$$CXXFLAGS|g ; \
+ @${REINPLACE_CMD} -e 's| $$OPTFLAGS||g ; \
s|OS_CXXFLAGS="-pthread"|OS_CXXFLAGS="${PTHREAD_CFLAGS}"|g ; \
- s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
- @${REINPLACE_CMD} -e 's| DOC||g' ${WRKSRC}/Makefile.in
- @${REINPLACE_CMD} -e 's|-not|\\!|g' ${WRKSRC}/share/Makefile.in
+ 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}
-.for file in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/DOC/${file} ${DOCSDIR}
-.endfor
+ ${TAR} -C ${WRKSRC}/DOC --exclude "Makefile*" --exclude "nt.1" \
+ -cf - . | ${TAR} -C ${DOCSDIR} --unlink -xf -
+ @${CHOWN} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
.include <bsd.port.mk>