FreeBSD Bugzilla – Attachment 160322 Details for
Bug 202635
[NEW PORTS] multimedia/pHash: Open source perceptual hash library and multimedia/php-pHash (PHP extension for pHash)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
php-pHash-0.9.6.shar
php-pHash-0.9.6.shar (text/plain), 3.57 KB, created by
Naram Qashat
on 2015-08-25 03:09:09 UTC
(
hide
)
Description:
php-pHash-0.9.6.shar
Filename:
MIME Type:
Creator:
Naram Qashat
Created:
2015-08-25 03:09:09 UTC
Size:
3.57 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># php-pHash ># php-pHash/Makefile ># php-pHash/distinfo ># php-pHash/pkg-descr ># php-pHash/files ># php-pHash/files/patch-pHash.cpp ># >echo c - php-pHash >mkdir -p php-pHash > /dev/null 2>&1 >echo x - php-pHash/Makefile >sed 's/^X//' >php-pHash/Makefile << '6373dcef1ec97940f7961642bc9d97dc' >X# Created by: Naram Qashat <cyberbotx@cyberbotx.com> >X# $FreeBSD$ >X >XPORTNAME= pHash >XPORTVERSION= 0.9.6 >XCATEGORIES= multimedia devel >XMASTER_SITES= http://phash.org/releases/ \ >X http://www.cyberbotx.com/pHash/ >XPKGNAMEPREFIX= php- >X >XMAINTAINER= cyberbotx@cyberbotx.com >XCOMMENT= PHP extension for the pHash perceptual hash library >X >XBUILD_DEPENDS= ${LOCALBASE}/include/CImg.h:${PORTSDIR}/graphics/cimg >XLIB_DEPENDS= libpHash.so:${PORTSDIR}/multimedia/pHash >X >XUSE_PHP= yes >XUSE_PHPIZE= yes >XUSE_PHPEXT= yes >XUSE_PHP_BUILD= yes >X >XWRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/bindings/php >X >X# The tarball contains stale pre-built files that interfere with building this >X# ourselves. >Xpost-configure: >X @(cd ${WRKSRC} && ${MAKE_CMD} clean) >X >Xpre-install: >X @${STRIP_CMD} ${WRKSRC}/modules/pHash.so >X >X.include <bsd.port.mk> >6373dcef1ec97940f7961642bc9d97dc >echo x - php-pHash/distinfo >sed 's/^X//' >php-pHash/distinfo << 'e3f727b5243bb138668494c5d43f6195' >XSHA256 (pHash-0.9.6.tar.gz) = 3c8258a014f9c2491fb1153010984606805638a45d00498864968a9a30102935 >XSIZE (pHash-0.9.6.tar.gz) = 1315965 >e3f727b5243bb138668494c5d43f6195 >echo x - php-pHash/pkg-descr >sed 's/^X//' >php-pHash/pkg-descr << '80fe50b8db1bfc7453b9860d53adba25' >XThis is the PHP extension of the pHash library, which is an open source software >Xlibrary released under the GPLv3 license that implements several perceptual >Xhashing algorithms, and provides a C-like API to use those functions in your own >Xprograms. pHash itself is written in C++. >X >XWWW: http://phash.org/ >80fe50b8db1bfc7453b9860d53adba25 >echo c - php-pHash/files >mkdir -p php-pHash/files > /dev/null 2>&1 >echo x - php-pHash/files/patch-pHash.cpp >sed 's/^X//' >php-pHash/files/patch-pHash.cpp << '6761f105d5a408b2b0f0932ef42863d9' >X--- pHash.cpp.orig 2013-04-23 18:54:02 UTC >X+++ pHash.cpp >X@@ -36,12 +36,14 @@ struct ph_text_hash >X >X /* {{{ phpinfo logo definitions */ >X >X+#if PHP_VERSION_ID < 50500 >X #include "php_logos.h" >X >X >X static unsigned char pHash_logo[] = { >X #include "pHash_logos.h" >X }; >X+#endif >X /* }}} */ >X >X /* {{{ Resource destructors */ >X@@ -145,7 +147,9 @@ ZEND_GET_MODULE(pHash) >X /* {{{ PHP_MINIT_FUNCTION */ >X PHP_MINIT_FUNCTION(pHash) >X { >X+#if PHP_VERSION_ID < 50500 >X php_register_info_logo("PHASH_LOGO_ID", "", pHash_logo, 49651); >X+#endif >X le_ph_video_hash = zend_register_list_destructors_ex(ph_video_hash_dtor, >X NULL, "ph_video_hash", module_number); >X le_ph_image_hash = zend_register_list_destructors_ex(ph_image_hash_dtor, >X@@ -165,7 +169,9 @@ PHP_MINIT_FUNCTION(pHash) >X /* {{{ PHP_MSHUTDOWN_FUNCTION */ >X PHP_MSHUTDOWN_FUNCTION(pHash) >X { >X+#if PHP_VERSION_ID < 50500 >X php_unregister_info_logo("PHASH_LOGO_ID"); >X+#endif >X >X /* add your stuff here */ >X >X@@ -203,7 +209,9 @@ PHP_MINFO_FUNCTION(pHash) >X if (SG(request_info).request_uri) { >X php_printf("%s", (SG(request_info).request_uri)); >X } >X+#if PHP_VERSION_ID < 50500 >X php_printf("?=%s", "PHASH_LOGO_ID"); >X+#endif >X php_printf("' align='right' alt='image' border='0'>\n"); >X >X php_printf("pHash\n"); >6761f105d5a408b2b0f0932ef42863d9 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 202635
:
160321
| 160322 |
160323
|
160324
|
160940