aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/fusefs-simple-mtpfs
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2014-09-26 01:03:22 +0800
committertijl <tijl@FreeBSD.org>2014-09-26 01:03:22 +0800
commit2b6dab2f5ee409310faacf87262fdb3ccd7961a8 (patch)
tree03e5fe5cac104b9af07cae35a85b5e1ec8d8db25 /sysutils/fusefs-simple-mtpfs
parentfcf926ffec850d494fa5563f5cc3a4144322a4c3 (diff)
downloadfreebsd-ports-gnome-2b6dab2f5ee409310faacf87262fdb3ccd7961a8.tar.gz
freebsd-ports-gnome-2b6dab2f5ee409310faacf87262fdb3ccd7961a8.tar.zst
freebsd-ports-gnome-2b6dab2f5ee409310faacf87262fdb3ccd7961a8.zip
- Convert to USES=autoreconf
- Replace MAKE_ENV=V=1 with CONFIGURE_ARGS=--disable-silent-rules - improve |automountd -d| output a bit by not redirecting stderr - s/simple-mtpfs/${PORTNAME}/ to save from typos in future - add a comment about why /etc/autofs doesn't install under PREFIX yet PR: 193882 Submitted by: Jan Beich <jbeich@vfemail.net> (maintainer)
Diffstat (limited to 'sysutils/fusefs-simple-mtpfs')
-rw-r--r--sysutils/fusefs-simple-mtpfs/Makefile19
-rw-r--r--sysutils/fusefs-simple-mtpfs/files/special_simple-mtpfs.in2
2 files changed, 11 insertions, 10 deletions
diff --git a/sysutils/fusefs-simple-mtpfs/Makefile b/sysutils/fusefs-simple-mtpfs/Makefile
index c441f099d3c3..cbd58c21c62a 100644
--- a/sysutils/fusefs-simple-mtpfs/Makefile
+++ b/sysutils/fusefs-simple-mtpfs/Makefile
@@ -2,7 +2,7 @@
PORTNAME= simple-mtpfs
PORTVERSION= 0.2.s20140709
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
PKGNAMEPREFIX= fusefs-
@@ -18,14 +18,13 @@ GH_ACCOUNT= phatina
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT= 74dfce6
-USES= compiler:c++11-lib fuse pkgconfig
-USE_AUTOTOOLS= aclocal autoconf autoheader automake
-AUTOMAKE_ARGS= --add-missing
+USES= autoreconf compiler:c++11-lib fuse pkgconfig
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --disable-silent-rules
MAKEFILE= makefile
-MAKE_ENV= V=1
INSTALL_TARGET= install-strip
CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
+LIBS+= -L${LOCALBASE}/lib
PLIST_FILES= bin/${PORTNAME} \
man/man1/${PORTNAME}.1.gz
PORTDOCS= AUTHORS NEWS README.md
@@ -36,9 +35,10 @@ OPTIONS_DEFINE= DOCS
CONFIGURE_ENV+= LIBUSB1_CFLAGS=" " LIBUSB1_LIBS="-lusb"
.endif
+# XXX move to PREFIX when bug 193596 lands
.if exists(/etc/autofs)
-PLIST_FILES+= /etc/autofs/special_simple-mtpfs
-SUB_FILES+= special_simple-mtpfs
+PLIST_FILES+= /etc/autofs/special_${PORTNAME}
+SUB_FILES+= special_${PORTNAME}
.endif
post-install:
@@ -46,7 +46,8 @@ post-install:
${INSTALL_DATA} ${PORTDOCS:C|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.if exists(/etc/autofs)
@${MKDIR} ${STAGEDIR}/etc/autofs
- ${INSTALL_SCRIPT} ${WRKDIR}/special_simple-mtpfs ${STAGEDIR}/etc/autofs
+ ${INSTALL_SCRIPT} ${WRKDIR}/special_${PORTNAME} \
+ ${STAGEDIR}/etc/autofs
.endif
.include <bsd.port.mk>
diff --git a/sysutils/fusefs-simple-mtpfs/files/special_simple-mtpfs.in b/sysutils/fusefs-simple-mtpfs/files/special_simple-mtpfs.in
index 98510240689f..7f45b8649e53 100644
--- a/sysutils/fusefs-simple-mtpfs/files/special_simple-mtpfs.in
+++ b/sysutils/fusefs-simple-mtpfs/files/special_simple-mtpfs.in
@@ -4,7 +4,7 @@
# /mtp -simple-mtpfs -allow_other
#
-out=$(%%PREFIX%%/bin/simple-mtpfs --list-devices 2>&1)
+out=$(%%PREFIX%%/bin/simple-mtpfs --list-devices)
[ $? -eq 0 ] || exit 1
if [ $# -eq 0 ]; then