Skip to content

Commit 27547d4

Browse files
committed
Fixed up config.m4 and config.w32 files, and added a package.xml file
1 parent 19dc0d0 commit 27547d4

File tree

4 files changed

+77
-7
lines changed

4 files changed

+77
-7
lines changed

config.w32

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
// $Id$
22
// vim:ft=javascript
33

4-
// If your extension references something external, use ARG_WITH
5-
// ARG_WITH("geospatial", "for geospatial support", "no");
6-
7-
// Otherwise, use ARG_ENABLE
8-
// ARG_ENABLE("geospatial", "enable geospatial support", "no");
4+
ARG_ENABLE("geospatial", "enable geospatial support", "no");
95

106
if (PHP_GEOSPATIAL != "no") {
11-
EXTENSION("geospatial", "geospatial.c");
7+
EXTENSION("geospatial", "geospatial.c geo_array.c");
128
}
139

geospatial.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ zend_module_entry geospatial_module_entry = {
146146
NULL,
147147
PHP_MINFO(geospatial),
148148
#if ZEND_MODULE_API_NO >= 20010901
149-
"0.1", /* Replace with version number for your extension */
149+
PHP_GEOSPATIAL_VERSION,
150150
#endif
151151
STANDARD_MODULE_PROPERTIES
152152
};
@@ -182,6 +182,7 @@ PHP_MINFO_FUNCTION(geospatial)
182182
{
183183
php_info_print_table_start();
184184
php_info_print_table_header(2, "Geospatial functions", "enabled");
185+
php_info_print_table_row(2, "Version", PHP_GEOSPATIAL_VERSION);
185186
php_info_print_table_end();
186187
}
187188
/* }}} */

package.xml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<package packagerversion="1.7.1" version="2.0"
3+
xmlns="http://pear.php.net/dtd/package-2.0"
4+
xmlns:tasks="http://pear.php.net/dtd/tasks-1.0"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
7+
<name>geospatial</name>
8+
<channel>pecl.php.net</channel>
9+
<summary>PHP Extension to handle common geospatial functions</summary>
10+
<description>The extension currently has implementations of the Haversine and
11+
Vincenty's formulas for calculating distances, an initial bearing calculation
12+
function, a Helmert transformation function to transfer between different
13+
supported datums, conversions between polar and Cartesian coordinates,
14+
conversions between Degree/Minute/Seconds and decimal degrees, a method to
15+
simplify linear geometries, as well as a method to calculate intermediate
16+
points on a LineString.</description>
17+
<lead>
18+
<name>Derick Rethans</name>
19+
<user>derick</user>
20+
<email>[email protected]</email>
21+
<active>yes</active>
22+
</lead>
23+
<lead>
24+
<name>Michael MacClean</name>
25+
<user>mgdm</user>
26+
<email>[email protected]</email>
27+
<active>yes</active>
28+
</lead>
29+
<date>2015-12-04</date>
30+
<time>18:56:58</time>
31+
<version>
32+
<release>0.1.0</release>
33+
<api>0.1.0</api>
34+
</version>
35+
<stability>
36+
<release>beta</release>
37+
<api>beta</api>
38+
</stability>
39+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD style</license>
40+
<notes>
41+
Initial release on PECL (with PHP 7 support).
42+
</notes>
43+
<contents>
44+
<dir name="/">
45+
<file name="LICENSE" role="doc" />
46+
<file name="config.m4" role="src" />
47+
<file name="config.w32" role="src" />
48+
<file name="geo_array.h" role="src" />
49+
<file name="php_geospatial.h" role="src" />
50+
<file name="geo_array.c" role="src" />
51+
<file name="geospatial.c" role="src" />
52+
</dir> <!-- / -->
53+
</contents>
54+
<dependencies>
55+
<required>
56+
<php>
57+
<min>5.4.0</min>
58+
</php>
59+
<pearinstaller>
60+
<min>1.4.0b1</min>
61+
</pearinstaller>
62+
</required>
63+
</dependencies>
64+
<providesextension>geospatial</providesextension>
65+
<extsrcrelease />
66+
<changelog>
67+
</changelog>
68+
</package>
69+
<!--
70+
vim:et:ts=1:sw=1
71+
-->

php_geospatial.h

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#ifndef PHP_GEOSPATIAL_H
2323
#define PHP_GEOSPATIAL_H
2424

25+
#define PHP_GEOSPATIAL_VERSION "0.1.0"
26+
2527
extern zend_module_entry geospatial_module_entry;
2628
#define phpext_geospatial_ptr &geospatial_module_entry
2729

0 commit comments

Comments
 (0)