aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2014-06-05 09:47:07 +0800
committermiwi <miwi@FreeBSD.org>2014-06-05 09:47:07 +0800
commit3003983225ea35b0f45a0800b8c64c6d5777b5d3 (patch)
tree9e68ac7363b0f588e384276a7048d3002492212f /net-p2p
parentf3a022c6773e314bea6aee14026343c262746fcf (diff)
downloadfreebsd-ports-gnome-3003983225ea35b0f45a0800b8c64c6d5777b5d3.tar.gz
freebsd-ports-gnome-3003983225ea35b0f45a0800b8c64c6d5777b5d3.tar.zst
freebsd-ports-gnome-3003983225ea35b0f45a0800b8c64c6d5777b5d3.zip
- Add stage support
PR: 190509
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/gtorrentviewer/Makefile19
-rw-r--r--net-p2p/gtorrentviewer/pkg-plist1
2 files changed, 12 insertions, 8 deletions
diff --git a/net-p2p/gtorrentviewer/Makefile b/net-p2p/gtorrentviewer/Makefile
index 59237e4e43ae..e760be40bf47 100644
--- a/net-p2p/gtorrentviewer/Makefile
+++ b/net-p2p/gtorrentviewer/Makefile
@@ -4,7 +4,7 @@
PORTNAME= gtorrentviewer
PORTVERSION= 0.2b
-PORTREVISION= 16
+PORTREVISION= 17
CATEGORIES= net-p2p
MASTER_SITES= SF/${PORTNAME}/GTorrentViewer/${PORTVERSION}
DISTNAME= GTorrentViewer-${PORTVERSION}
@@ -12,9 +12,9 @@ DISTNAME= GTorrentViewer-${PORTVERSION}
MAINTAINER= 5u623l20@gmail.com
COMMENT= GTK+2 viewer and editor for BitTorrent meta files
-PORTSCOUT= skipv:0.2 # older than current version
+LICENSE= GPLv2
-LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
+LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
USE_GNOME= gtk20 gnomehier intlhack
USES= gmake pkgconfig
@@ -24,18 +24,21 @@ LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-pixmapsdir=${PREFIX}/share/pixmaps \
--with-desktopdir=${PREFIX}/share/applications
-MAN1= gtorrentviewer.1
+PORTSCOUT= skipv:0.2 # older than current version
+
+OPTIONS_DEFINE= DOCS
+
DOCS= AUTHORS COPYING ChangeLog README
-NO_STAGE= yes
+.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e '/<curl\/types.h>/d' ${WRKSRC}/src/main.c
-.ifndef (NOPORTDOCS)
post-install:
- @${MKDIR} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${DOCS}
- @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
diff --git a/net-p2p/gtorrentviewer/pkg-plist b/net-p2p/gtorrentviewer/pkg-plist
index e6e05b6f52b3..7b2ac0d181f8 100644
--- a/net-p2p/gtorrentviewer/pkg-plist
+++ b/net-p2p/gtorrentviewer/pkg-plist
@@ -1,4 +1,5 @@
bin/gtorrentviewer
+man/man1/gtorrentviewer.1.gz
share/GTorrentViewer/README
share/GTorrentViewer/pixmaps/about.png
share/GTorrentViewer/pixmaps/dictionary.png