aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2014-03-05 04:33:52 +0800
committertijl <tijl@FreeBSD.org>2014-03-05 04:33:52 +0800
commitf5b1de1d753e76a91ccebe9d3814a4c6eedb5865 (patch)
tree762edb7225ef82096db47a1c076c104c737bb30a
parent9d6b4a506f75c11aaab0e4346b0aadb385057613 (diff)
downloadfreebsd-ports-gnome-f5b1de1d753e76a91ccebe9d3814a4c6eedb5865.tar.gz
freebsd-ports-gnome-f5b1de1d753e76a91ccebe9d3814a4c6eedb5865.tar.zst
freebsd-ports-gnome-f5b1de1d753e76a91ccebe9d3814a4c6eedb5865.zip
- Add DOCS option.
- Use option helpers. - Fix portlint warnings. - Add USES=iconv to fix build on FreeBSD 10.
-rw-r--r--sysutils/fusefs-smbnetfs/Makefile25
-rw-r--r--sysutils/fusefs-smbnetfs/pkg-plist10
2 files changed, 15 insertions, 20 deletions
diff --git a/sysutils/fusefs-smbnetfs/Makefile b/sysutils/fusefs-smbnetfs/Makefile
index a8f48f5e8220..ed5ea5c575b0 100644
--- a/sysutils/fusefs-smbnetfs/Makefile
+++ b/sysutils/fusefs-smbnetfs/Makefile
@@ -3,6 +3,7 @@
PORTNAME= smbnetfs
PORTVERSION= 0.5.3a
+PORTREVISION= 1
CATEGORIES= sysutils net
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/SMBNetFS-${PORTVERSION}
PKGNAMEPREFIX= fusefs-
@@ -10,31 +11,25 @@ PKGNAMEPREFIX= fusefs-
MAINTAINER= ports@FreeBSD.org
COMMENT= Mount smb shares (Fuse filesystem)
-OPTIONS_DEFINE= GNOME_KEYRING
+LIB_DEPENDS= libsmbclient.so:${PORTSDIR}/net/samba-libsmbclient
+
+OPTIONS_DEFINE= DOCS GNOME_KEYRING
OPTIONS_DEFAULT=GNOME_KEYRING
-GNOME_KEYRING_DESC= Build with gnome-keyring support
-LIB_DEPENDS= libsmbclient.so:${PORTSDIR}/net/samba-libsmbclient
+GNOME_KEYRING_DESC= Build with gnome-keyring support
+GNOME_KEYRING_CONFIGURE_WITH= gnome-keyring
+GNOME_KEYRING_LIB_DEPENDS= libgnome-keyring.so:${PORTSDIR}/security/libgnome-keyring
-DOCSDIR+= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
+DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
USE_BZIP2= yes
-USES= fuse pkgconfig
+USES= fuse iconv pkgconfig
GNU_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include
-LDFLAGS= -L${LOCALBASE}/lib
+LDFLAGS+= -L${LOCALBASE}/lib
SUB_FILES= pkg-message
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MGNOME_KEYRING}
-CONFIGURE_ARGS+=--with-gnome-keyring=yes
-LIB_DEPENDS+= gnome-keyring.0:${PORTSDIR}/security/libgnome-keyring
-.else
-CONFIGURE_ARGS+=--with-gnome-keyring=no
-.endif
-
post-patch:
${REINPLACE_CMD} -e 's|а|a|g' ${WRKSRC}/${CONFIGURE_SCRIPT}
diff --git a/sysutils/fusefs-smbnetfs/pkg-plist b/sysutils/fusefs-smbnetfs/pkg-plist
index df94fb4ec3c4..52dd62f475e3 100644
--- a/sysutils/fusefs-smbnetfs/pkg-plist
+++ b/sysutils/fusefs-smbnetfs/pkg-plist
@@ -1,6 +1,6 @@
bin/smbnetfs
-%%DOCSDIR%%/INSTALL
-%%DOCSDIR%%/ENGLISH.FAQ
-%%DOCSDIR%%/RUSSIAN.FAQ
-%%DOCSDIR%%/smbnetfs.conf
-@dirrm %%DOCSDIR%%
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/ENGLISH.FAQ
+%%PORTDOCS%%%%DOCSDIR%%/RUSSIAN.FAQ
+%%PORTDOCS%%%%DOCSDIR%%/smbnetfs.conf
+%%PORTDOCS%%@dirrm %%DOCSDIR%%