aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
Diffstat (limited to 'ftp')
-rw-r--r--ftp/urlgfe/Makefile42
-rw-r--r--ftp/urlgfe/pkg-plist22
2 files changed, 28 insertions, 36 deletions
diff --git a/ftp/urlgfe/Makefile b/ftp/urlgfe/Makefile
index aa6e31021845..d2a705a39501 100644
--- a/ftp/urlgfe/Makefile
+++ b/ftp/urlgfe/Makefile
@@ -3,50 +3,42 @@
PORTNAME= urlgfe
PORTVERSION= 0.7.1
-PORTREVISION?= 15
+PORTREVISION= 16
CATEGORIES= ftp www
MASTER_SITES= SF/urlget/Urlgfe%20%28legacy%29/${PORTVERSION}
MAINTAINER= chip-set@mail.ru
-COMMENT= A download manager
+COMMENT= Download manager
-LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
+LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
-USE_GNOME= gtk20 lthack
-USES= pkgconfig
-WANT_GNOME= yes
+GNU_CONFIGURE= yes
+USES= dos2unix libtool pkgconfig
+USE_GNOME= gtk20
USE_OPENSSL= yes
-USE_AUTOTOOLS= libtool
-USE_DOS2UNIX= yes
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= DOCS NLS
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
-.if ${HAVE_GNOME:Mgnomehier}!=""
-WITH_GNOME= yes
-PLIST_SUB+= GNOME:=""
-.else
-PLIST_SUB+= GNOME:="@comment "
-.endif
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
post-patch:
@${FIND} ${WRKSRC} -type f | ${XARGS} ${TOUCH} -f
@${REINPLACE_CMD} -e 's|[$$]{prefix}/doc/urlgfe|${DOCSDIR}|g' \
${WRKSRC}/Makefile.in
- @${REINPLACE_CMD} -e 's|urlgfe_icon|urlgfe-icon|g ; \
- s|/usr/share/pixmaps/urlgfe/||g' ${WRKSRC}/${PORTNAME}.desktop
+ @${REINPLACE_CMD} \
+ 's|/usr/share/pixmaps/urlgfe/urlgfe_icon|${PREFIX}/share/pixmaps/urlgfe-icon|' \
+ ${WRKSRC}/${PORTNAME}.desktop
@${REINPLACE_CMD} -e 's| -g| ${CFLAGS}|g' \
${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e 's|@MKINSTALLDIRS@|$$(top_srcdir)/@MKINSTALLDIRS@|g ; \
s|[$$][(]top_builddir[)]/[$$][(]MKINSTALLDIRS[)]|$$(top_srcdir)/mkinstalldirs|g' \
${WRKSRC}/po/Makefile.in.in
-.if defined(WITH_GNOME)
post-install:
- @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${PREFIX}/share/gnome/apps/Internet/
- @${INSTALL_DATA} ${WRKSRC}/pixmaps/${PORTNAME}-icon.png ${PREFIX}/share/pixmaps/
-.endif
+ @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
+ @${INSTALL_DATA} ${WRKSRC}/pixmaps/${PORTNAME}-icon.png ${STAGEDIR}${PREFIX}/share/pixmaps
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/ftp/urlgfe/pkg-plist b/ftp/urlgfe/pkg-plist
index 52c72837248d..c5718007f904 100644
--- a/ftp/urlgfe/pkg-plist
+++ b/ftp/urlgfe/pkg-plist
@@ -1,13 +1,13 @@
bin/urlgfe
-%%DOCSDIR%%/ABOUT-NLS
-%%DOCSDIR%%/AUTHORS
-%%DOCSDIR%%/COPYING
-%%DOCSDIR%%/ChangeLog
-%%DOCSDIR%%/INSTALL
-%%DOCSDIR%%/NEWS
-%%DOCSDIR%%/README
-%%DOCSDIR%%/TODO
-%%GNOME:%%share/gnome/apps/Internet/urlgfe.desktop
-%%GNOME:%%share/pixmaps/urlgfe-icon.png
+%%PORTDOCS%%%%DOCSDIR%%/ABOUT-NLS
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+share/applications/urlgfe.desktop
share/locale/zh_TW/LC_MESSAGES/urlgfe.mo
-@dirrm %%DOCSDIR%%
+share/pixmaps/urlgfe-icon.png
+%%PORTDOCS%%@dirrm %%DOCSDIR%%