1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Convert to USES=libtool.

- Fix COMMENT, LIB_DEPENDS.
- Always install desktop entry.
- Add DOCS and NLS options.
- Staging.
This commit is contained in:
Tijl Coosemans 2014-04-24 17:26:57 +00:00
parent bd2a202a54
commit 22efba0dc0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=352026
2 changed files with 28 additions and 36 deletions

View File

@ -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
OPTIONS_DEFINE= DOCS NLS
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgnomehier}!=""
WITH_GNOME= yes
PLIST_SUB+= GNOME:=""
.else
PLIST_SUB+= GNOME:="@comment "
.endif
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>

View File

@ -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%%