Changeset 3090 for libpipi/trunk


Ignore:
Timestamp:
Oct 24, 2008, 9:39:13 PM (12 years ago)
Author:
nico
Message:
  • configuration file config.m4 rewritten
Location:
libpipi/trunk/pipi-php
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi-php/config.m4

    r3069 r3090  
    33
    44if test "$PHP_PIPI" = "yes"; then
    5   PHP_NEW_EXTENSION(pipi, php_pipi.c, $ext_shared)
    6   PHP_SUBST(PIPI_SHARED_LIBADD)
    7   AC_DEFINE(HAVE_PIPI, 1, [Whether you have Libpipi Ext])
    8   PIPI_INCDIR=$PHP_PIPI/include
    9   PIPI_LIBDIR=$PHP_PIPI/lib
    10   PHP_ADD_LIBRARY_WITH_PATH(pipi, $PIPI_LIBDIR, PIPI_SHARED_LIBADD)
    11   PHP_ADD_INCLUDE($PIPI_INCDIR) 
    12 fi
    13 
     5        AC_CHECK_LIB(pipi, pipi_get_version, [
     6                PHP_ADD_LIBRARY(pipi,, PIPI_SHARED_LIBADD)
     7        ], [
     8                AC_MSG_ERROR(libpipi required !)
     9        ])
     10        PHP_NEW_EXTENSION(pipi, php_pipi.c, $ext_shared,,)
     11        PHP_SUBST(PIPI_SHARED_LIBADD)
     12fi
  • libpipi/trunk/pipi-php/examples/example1.php

    r3087 r3090  
    11<?
    2 //print_r(pipi_get_command_list());
    3 echo PIPI_COLOR_Y;
    4 
    52$img = pipi_load_stock("random:128x128");
    63$img = pipi_gaussian_blur($img, 10);
  • libpipi/trunk/pipi-php/package.xml

    r3069 r3090  
    1515  </maintainers>
    1616 <release>
    17   <version>0.1</version>
     17  <version>0.0</version>
    1818  <date>2008-10-15</date>
    19   <license>GPL</license>
     19  <license>WTFPL</license>
    2020  <state>alpha</state>
    21   <notes>See  included ChangeLog for details...
     21  <notes>See included ChangeLog for details...
    2222  </notes>
    2323  <deps>
    24    <dep type="php" rel="ge" version="4.0.0"/>
     24   <dep type="php" rel="ge" version="5.0.0"/>
    2525  </deps>
    2626  <filelist>
    2727   <file role="data" name="examples/example1.php"/>
    2828   <file role="src" name="config.m4"/>
    29    <file role="data" name="COPYING"/>
    30    <file role="data" name="EXPERIMENTAL"/>
    3129   <file role="src" name="php_pipi.c"/>
    3230   <file role="src" name="php_pipi.h"/>
    33    <file role="data" name="README"/>
    34    <file role="data" name="ChangeLog"/>
    3531  </filelist>
    3632 </release>
  • libpipi/trunk/pipi-php/php_pipi.c

    r3087 r3090  
    125125
    126126
    127 //--------PIPI'S RESSOURCES---------//
     127//--------PIPI'S RESSOURCES DESTRUCTORS---------//
    128128
    129129static void php_pipi_image_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC) {
     
    138138        pipi_free_histogram(rsrc->ptr);
    139139}
     140
     141
     142//--------INITIALIZATION---------//
    140143
    141144PHP_MINIT_FUNCTION(pipi) {
Note: See TracChangeset for help on using the changeset viewer.