Index: head/databases/pecl-drizzle/Makefile =================================================================== --- head/databases/pecl-drizzle/Makefile (revision 421483) +++ head/databases/pecl-drizzle/Makefile (revision 421484) @@ -1,33 +1,35 @@ # Created by: Greg Larkin # $FreeBSD$ PORTNAME= drizzle PORTVERSION= 0.4.2 PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= http://pecl.php.net/get/ PKGNAMEPREFIX= pecl- DIST_SUBDIR= PECL MAINTAINER= ports@FreeBSD.org COMMENT= PHP wrapper for the libdrizzle library LICENSE= PHP301 LIB_DEPENDS= libdrizzle.so:databases/libdrizzle USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 OPTIONS_DEFINE= DOCS EXAMPLES PORTDOCS= README EXPERIMENTAL ChangeLog CREDITS PORTEXAMPLES= drizzle.php -post-install: +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - @cd ${WRKSRC} && ${INSTALL} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} + +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - @cd ${WRKSRC} && ${INSTALL} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR} .include Index: head/databases/pecl-drizzle/files/patch-php_drizzle.c =================================================================== --- head/databases/pecl-drizzle/files/patch-php_drizzle.c (revision 421483) +++ head/databases/pecl-drizzle/files/patch-php_drizzle.c (revision 421484) @@ -1,72 +1,72 @@ ---- php_drizzle.c.orig 1970-01-01 17:13:08.000000000 +0800 -+++ php_drizzle.c 2015-11-30 22:02:21.309689000 +0800 -@@ -1314,9 +1314,13 @@ +--- php_drizzle.c.orig 1970-01-01 09:13:08 UTC ++++ php_drizzle.c +@@ -1314,9 +1314,13 @@ drizzle_obj_new_ex(zend_class_entry *cla } zend_object_std_init(&(obj->std), class_type TSRMLS_CC); +#if PHP_VERSION_ID < 50399 zend_hash_copy(obj->std.properties, &(class_type->default_properties), (copy_ctor_func_t)zval_add_ref, (void *)(&tmp), sizeof(zval *)); +#else + object_properties_init((zend_object*) &(obj->std), class_type); +#endif value.handle= zend_objects_store_put(obj, (zend_objects_store_dtor_t)zend_objects_destroy_object, -@@ -1582,9 +1586,13 @@ +@@ -1582,9 +1586,13 @@ drizzle_con_obj_new_ex(zend_class_entry } zend_object_std_init(&(obj->std), class_type TSRMLS_CC); +#if PHP_VERSION_ID < 50399 zend_hash_copy(obj->std.properties, &(class_type->default_properties), (copy_ctor_func_t)zval_add_ref, (void *)(&tmp), sizeof(zval *)); +#else + object_properties_init((zend_object*) &(obj->std), class_type); +#endif obj->value.handle= zend_objects_store_put(obj, (zend_objects_store_dtor_t)zend_objects_destroy_object, -@@ -2505,9 +2513,13 @@ +@@ -2505,9 +2513,13 @@ drizzle_query_obj_new_ex(zend_class_entr } zend_object_std_init(&(obj->std), class_type TSRMLS_CC); +#if PHP_VERSION_ID < 50399 zend_hash_copy(obj->std.properties, &(class_type->default_properties), (copy_ctor_func_t)zval_add_ref, (void *)(&tmp), sizeof(zval *)); +#else + object_properties_init((zend_object*) &(obj->std), class_type); +#endif obj->value.handle= zend_objects_store_put(obj, (zend_objects_store_dtor_t)zend_objects_destroy_object, -@@ -3017,9 +3029,13 @@ +@@ -3017,9 +3029,13 @@ drizzle_result_obj_new_ex(zend_class_ent } zend_object_std_init(&(result->std), class_type TSRMLS_CC); +#if PHP_VERSION_ID < 50399 zend_hash_copy(result->std.properties, &(class_type->default_properties), (copy_ctor_func_t)zval_add_ref, (void *)(&tmp), sizeof(zval *)); +#else + object_properties_init((zend_object*) &(result->std), class_type); +#endif value.handle= zend_objects_store_put(result, (zend_objects_store_dtor_t)zend_objects_destroy_object, -@@ -3382,9 +3398,13 @@ +@@ -3382,9 +3398,13 @@ drizzle_column_obj_new_ex(zend_class_ent } zend_object_std_init(&(obj->std), class_type TSRMLS_CC); +#if PHP_VERSION_ID < 50399 zend_hash_copy(obj->std.properties, &(class_type->default_properties), (copy_ctor_func_t)zval_add_ref, (void *)(&tmp), sizeof(zval *)); +#else + object_properties_init((zend_object*) &(obj->std), class_type); +#endif value.handle= zend_objects_store_put(obj, (zend_objects_store_dtor_t)zend_objects_destroy_object,