--- lang/php56/Makefile.ext.orig 2016-04-16 10:18:22.177431000 +0200 +++ lang/php56/Makefile.ext 2016-04-16 10:19:39.679418000 +0200 @@ -600,3 +600,8 @@ post-extract: @${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4 .endif + +.if ${PHP_MODNAME} == "enchant" +LIB_DEPENDS+= libenchant.so:textproc/enchant +CONFIGURE_ARGS+=--with-enchant=${LOCALBASE} +.endif --- lang/php55/Makefile.ext.orig 2016-04-16 10:28:22.984955000 +0200 +++ lang/php55/Makefile.ext 2016-04-16 10:28:47.593916000 +0200 @@ -597,3 +597,8 @@ post-extract: @${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4 .endif + +.if ${PHP_MODNAME} == "enchant" +LIB_DEPENDS+= libenchant.so:textproc/enchant +CONFIGURE_ARGS+=--with-enchant=${LOCALBASE} +.endif --- lang/php70/Makefile.ext.orig 2016-04-16 10:32:13.589524000 +0200 +++ lang/php70/Makefile.ext 2016-04-16 10:32:40.848571000 +0200 @@ -577,3 +577,8 @@ post-extract: @${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4 .endif + +.if ${PHP_MODNAME} == "enchant" +LIB_DEPENDS+= libenchant.so:textproc/enchant +CONFIGURE_ARGS+=--with-enchant=${LOCALBASE} +.endif --- lang/php56-extensions/Makefile.orig 2016-04-16 10:20:29.528254000 +0200 +++ lang/php56-extensions/Makefile 2016-04-16 10:22:29.033678000 +0200 @@ -21,7 +21,7 @@ NO_MTREE= yes OPTIONS_DEFINE= BCMATH BZ2 CALENDAR CTYPE CURL DBA \ - DOM EXIF FILEINFO FILTER FTP GD GETTEXT \ + DOM ENCHANT EXIF FILEINFO FILTER FTP GD GETTEXT \ GMP HASH ICONV IMAP INTERBASE JSON LDAP MBSTRING MCRYPT \ MSSQL MYSQL MYSQLI \ ODBC OPCACHE OPENSSL PCNTL PDF PDO PDO_DBLIB PDO_FIREBIRD \ @@ -38,6 +38,7 @@ CURL_DESC= CURL support DBA_DESC= dba support DOM_DESC= DOM support +ENCHANT_DESC= Enchant spelling support EXIF_DESC= EXIF support FILEINFO_DESC= fileinfo support FILTER_DESC= input filter support --- lang/php55-extensions/Makefile.orig 2016-04-16 10:29:50.773544000 +0200 +++ lang/php55-extensions/Makefile 2016-04-16 10:30:48.395871000 +0200 @@ -21,7 +21,7 @@ NO_MTREE= yes OPTIONS_DEFINE= BCMATH BZ2 CALENDAR CTYPE CURL DBA \ - DOM EXIF FILEINFO FILTER FTP GD GETTEXT \ + DOM ENCHANT EXIF FILEINFO FILTER FTP GD GETTEXT \ GMP HASH ICONV IMAP INTERBASE JSON LDAP MBSTRING MCRYPT \ MSSQL MYSQL MYSQLI \ ODBC OPCACHE OPENSSL PCNTL PDF PDO PDO_DBLIB PDO_FIREBIRD \ @@ -38,6 +38,7 @@ CURL_DESC= CURL support DBA_DESC= dba support DOM_DESC= DOM support +ENCHANT_DESC= Enchant spelling support EXIF_DESC= EXIF support FILEINFO_DESC= fileinfo support FILTER_DESC= input filter support --- lang/php70-extensions/Makefile.orig 2016-04-16 10:33:32.482956000 +0200 +++ lang/php70-extensions/Makefile 2016-04-16 10:34:05.600173000 +0200 @@ -16,7 +16,7 @@ USE_PHP_BUILD= yes OPTIONS_DEFINE= BCMATH BZ2 CALENDAR CTYPE CURL DBA \ - DOM EXIF FILEINFO FILTER FTP GD GETTEXT \ + DOM ENCHANT EXIF FILEINFO FILTER FTP GD GETTEXT \ GMP HASH ICONV INTL IMAP INTERBASE JSON LDAP MBSTRING MCRYPT \ MYSQLI \ ODBC OPCACHE OPENSSL PCNTL PDF PDO PDO_DBLIB PDO_FIREBIRD \ @@ -33,6 +33,7 @@ CURL_DESC= CURL support DBA_DESC= dba support DOM_DESC= DOM support +ENCHANT_DESC= Enchant spelling support EXIF_DESC= EXIF support FILEINFO_DESC= fileinfo support FILTER_DESC= input filter support --- Mk/bsd.php.mk.orig 2016-04-16 10:24:23.688439000 +0200 +++ Mk/bsd.php.mk 2016-04-16 10:25:35.539285000 +0200 @@ -244,7 +244,7 @@ .if defined(_POSTMKINCLUDED) && ${USE_PHP:tl} != "yes" # non-version specific components _USE_PHP_ALL= apc bcmath bitset bz2 calendar ctype curl dba dom \ - exif fileinfo filter ftp gd gettext gmp \ + enchant exif fileinfo filter ftp gd gettext gmp \ hash iconv igbinary imap interbase intl json ldap mbstring mcrypt \ memcache mysqli odbc opcache \ openssl pcntl pcre pdf pdo pdo_dblib pdo_firebird pdo_mysql \ @@ -271,6 +271,7 @@ dba_DEPENDS= databases/php${PHP_VER}-dba dbase_DEPENDS= databases/php${PHP_VER}-dbase dom_DEPENDS= textproc/php${PHP_VER}-dom +enchant_DEPENDS= textproc/php${PHP_VER}-enchant exif_DEPENDS= graphics/php${PHP_VER}-exif fileinfo_DEPENDS= sysutils/php${PHP_VER}-fileinfo filter_DEPENDS= security/php${PHP_VER}-filter