php7: add php7-mod-imap
authorLucian Cristian <redacted>
Sun, 5 Nov 2017 22:50:58 +0000 (00:50 +0200)
committerLucian Cristian <redacted>
Wed, 8 Nov 2017 19:44:38 +0000 (21:44 +0200)
Signed-off-by: Lucian Cristian <redacted>
lang/php7/Makefile

index d6bf3308b13f5291030e4350932ab551e5405354..3df48512d97a9151916653bcde114d31733bcc00 100644 (file)
@@ -30,7 +30,7 @@ PHP7_MODULES = \
        ftp \
        gettext gd gmp \
        hash \
-       iconv intl \
+       iconv imap intl \
        json \
        ldap \
        mbstring mcrypt mysqli \
@@ -242,6 +242,14 @@ else
   CONFIGURE_ARGS+= --without-iconv
 endif
 
+ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-imap),)
+  CONFIGURE_ARGS+= \
+               --with-imap=shared,"$(STAGING_DIR)/usr" \
+               --with-imap-ssl
+else
+  CONFIGURE_ARGS+= --without-imap
+endif
+
 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-intl),)
   CONFIGURE_ARGS+= --enable-intl=shared
   TARGET_CXXFLAGS+= -std=c++0x
@@ -572,6 +580,7 @@ $(eval $(call BuildModule,gettext,Gettext,+PACKAGE_php7-mod-gettext:libintl-full
 $(eval $(call BuildModule,gmp,GMP,+PACKAGE_php7-mod-gmp:libgmp))
 $(eval $(call BuildModule,hash,Hash))
 $(eval $(call BuildModule,iconv,iConv,$(ICONV_DEPENDS)))
+$(eval $(call BuildModule,imap,IMAP,+PACKAGE_php7-mod-imap:libopenssl +PACKAGE_php7-mod-imap:uw-imap))
 $(eval $(call BuildModule,intl,Internationalization Functions,+PACKAGE_php7-mod-intl:icu))
 $(eval $(call BuildModule,json,JSON))
 $(eval $(call BuildModule,ldap,LDAP,+PACKAGE_php7-mod-ldap:libopenldap +PACKAGE_php7-mod-ldap:libsasl2))
git clone https://git.99rst.org/PROJECT