diff --git a/lang/php7/Makefile b/lang/php7/Makefile index d6bf3308b..3df48512d 100644 --- a/lang/php7/Makefile +++ b/lang/php7/Makefile @@ -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))