Hi,

this diff permits to use the libmagic with yara (more information in http://yara.readthedocs.org/en/latest/modules/magic.html).

Ok?

Cheers,

Remi.
Index: Makefile
===================================================================
RCS file: /cvs/ports/security/yara/main/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 Makefile
--- Makefile    18 Sep 2015 21:35:32 -0000      1.1.1.1
+++ Makefile    19 Sep 2015 17:34:19 -0000
@@ -2,12 +2,17 @@
 
 COMMENT = pattern matching swiss knife
 
-WANTLIB += c crypto m pthread
+REVISION = 0
+
+WANTLIB += c crypto m magic pthread z
 
 SHARED_LIBS +=  yara                      0.0 # 0.0
 
 CONFIGURE_STYLE =       gnu
-CONFIGURE_ARGS +=      --with-crypto
+CONFIGURE_ARGS +=      --with-crypto \
+                       --enable-magic
+CONFIGURE_ENV +=       LDFLAGS="-L${LOCALBASE}/lib" \
+                       CFLAGS="-I${LOCALBASE}/include"
 
 pre-patch:
        cd ${WRKSRC} && \
@@ -17,6 +22,8 @@ pre-patch:
 BUILD_DEPENDS +=       devel/libtool \
                        ${MODGNU_AUTOCONF_DEPENDS} \
                        ${MODGNU_AUTOMAKE_DEPENDS}
+
+LIB_DEPENDS +=         devel/libmagic
 
 AUTOCONF_VERSION =      2.69
 AUTOMAKE_VERSION =      1.14

Reply via email to