On 2019/02/25 18:55, Sebastian Benoit wrote:
> squashfuse - Mount SquashFS archives using FUSE
> https://github.com/vasi/squashfuse/blob/master/README
> 
> I dont know if i got the WANTLIB right.
> 
> I also havent tested it, for lack of a squashfs filesystem, but maybe Diana
> Eichert can try it. ;)
> 

here's a diff on top, bit of cleanup, and enable the dep's - new tgz
attached.

I haven't changed it here but directory name is probably better as
squashfuse rather than squash-fuse to match the PKGNAME

diff --git Makefile Makefile
index 81a19bd..f631117 100644
--- Makefile
+++ Makefile
@@ -2,36 +2,37 @@
 
 COMMENT =              squashfs file system through FUSE
 
-V =                    0.1.103
 GH_ACCOUNT =           vasi
 GH_PROJECT =           squashfuse
-GH_TAGNAME =           ${V}
-DISTNAME =             squashfuse-${V}
+GH_TAGNAME =           0.1.103
+
+SHARED_LIBS +=         fuseprivate               0.0 # 0.0
+SHARED_LIBS +=         squashfuse                0.0 # 0.0
 
 CATEGORIES =           sysutils
 
 # BSD
 PERMIT_PACKAGE_CDROM = Yes
 
-SHARED_LIBS +=         fuseprivate               0.0 # 0.0
-SHARED_LIBS +=         squashfuse                0.0 # 0.0
+WANTLIB += c fuse lz4 lzma lzo2 pthread z zstd
+
+CONFIGURE_STYLE =      gnu
 
-WANTLIB =              c fuse pthread z
+CONFIGURE_ENV =                CPPFLAGS="-I${LOCALBASE}/include" \
+                       LDFLAGS="-L${LOCALBASE}/lib"
 
-CONFIGURE_STYLE =      gnu
 AUTOMAKE_VERSION =     1.16
 AUTOCONF_VERSION =     2.69
 BUILD_DEPENDS =                ${MODGNU_AUTOCONF_DEPENDS} \
                        ${MODGNU_AUTOMAKE_DEPENDS} \
                        devel/libtool
 
-#BUILD_DEPENDS +=      archivers/lzo2 \
-#                      archivers/xz \
-#                      archivers/lz4
+LIB_DEPENDS +=         archivers/lz4 \
+                       archivers/lzo2 \
+                       archivers/xz \
+                       archivers/zstd
 
-pre-configure:
-       cd ${WRKSRC} && ${SETENV} AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
-           AUTOCONF_VERSION=${AUTOCONF_VERSION} \
-           autoreconf -fi
+do-gen:
+       cd ${WRKSRC} && ${AUTOCONF_ENV} autoreconf -fi
 
 .include <bsd.port.mk>

Attachment: squash-fuse,2.tgz
Description: application/tar-gz

Reply via email to