xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-webserver/recipes-php/xdebug/xdebug_3.1.1.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Debugging and profiling extension for PHP"
2*4882a593SmuzhiyunLICENSE = "Xdebug"
3*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=92d94a330d34ee6edc2638450736f119"
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunDEPENDS = "php re2c-native"
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunSRC_URI = "http://xdebug.org/files/xdebug-${PV}.tgz"
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunSRC_URI[sha256sum] = "9be3ae0fdb4dc4a4c68084626cddc56f12396487e309a8c8dd318f0f900d1a68"
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunUPSTREAM_CHECK_REGEX = "xdebug-(?P<pver>\d+(\.\d+)+)\.tgz"
12*4882a593Smuzhiyun
13*4882a593Smuzhiyuninherit autotools
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunEXTRA_OECONF += "--enable-xdebug -with-php-config=${STAGING_BINDIR_CROSS}/php-config"
16*4882a593Smuzhiyun
17*4882a593Smuzhiyundo_configure() {
18*4882a593Smuzhiyun    cd ${S}
19*4882a593Smuzhiyun    ${STAGING_BINDIR_CROSS}/phpize
20*4882a593Smuzhiyun    cd ${B}
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun    # Running autoreconf as autotools_do_configure would do here
23*4882a593Smuzhiyun    # breaks the libtool configuration resulting in a failure later
24*4882a593Smuzhiyun    # in do_compile. It's possible this may be fixable, however the
25*4882a593Smuzhiyun    # easiest course of action for the moment is to avoid doing that.
26*4882a593Smuzhiyun    oe_runconf
27*4882a593Smuzhiyun}
28*4882a593Smuzhiyun
29*4882a593Smuzhiyundo_install() {
30*4882a593Smuzhiyun    oe_runmake install INSTALL_ROOT=${D}
31*4882a593Smuzhiyun}
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunFILES:${PN} += "${libdir}/php*/extensions/*/*.so"
34*4882a593SmuzhiyunFILES:${PN}-dbg += "${libdir}/php*/extensions/*/.debug"
35