Ignore:
Timestamp:
2011-10-21T22:56:04+02:00 (5 years ago)
Author:
mhei
Message:

[packages] php5: Rework/fix config var handlin when built in SDK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/lang/php5/Makefile

    r28491 r28508  
    1010PKG_NAME:=php 
    1111PKG_VERSION:=5.3.8 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
     
    142142        --disable-phar 
    143143 
    144 ifneq ($(SDK),) 
    145   PKG_BUILD_DEPENDS+=libopenssl zlib libcurl libgd libgmp libopenldap libmysqlclient libpq libsqlite2 libpthread libsqlite3 libpcre libxml2 
    146 # force PKG_CONFIGURE_{LIBS,OPTS} below when built in the SDK 
    147   CONFIG_PACKAGE_php5-cli:=m 
    148   CONFIG_PACKAGE_php5-cgi:=m 
    149   CONFIG_PACKAGE_php5-fastcgi:=m 
    150   CONFIG_PACKAGE_php5-mod-curl:=m 
    151   CONFIG_PACKAGE_php5-mod-gd:=m 
    152   CONFIG_PACKAGE_php5-mod-gmp:=m 
    153   CONFIG_PACKAGE_php5-mod-ldap:=m 
    154   CONFIG_PACKAGE_php5-mod-mysql:=m 
    155   CONFIG_PACKAGE_php5-mod-pgsql:=m 
    156   CONFIG_PACKAGE_php5-mod-sqlite:=m 
    157   CONFIG_PACKAGE_php5-mod-sqlite3:=m 
    158   CONFIG_PACKAGE_php5-mod-xml:=m 
    159 endif 
    160  
    161 ifneq ($(CONFIG_PACKAGE_php5-cli),) 
     144ifneq ($(SDK)$(CONFIG_PACKAGE_php5-cli),) 
    162145  CONFIGURE_ARGS+= --enable-cli 
    163146else 
     
    165148endif 
    166149 
    167 ifneq ($(CONFIG_PACKAGE_php5-cgi),) 
     150ifneq ($(SDK)$(CONFIG_PACKAGE_php5-cgi),) 
    168151  CONFIGURE_ARGS+= --enable-cgi 
    169152else 
     
    171154endif 
    172155 
    173 ifneq ($(CONFIG_PACKAGE_php5-mod-apc),) 
     156ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-apc),) 
    174157  CONFIGURE_ARGS+= --enable-apc=shared --disable-apc-mmap --disable-apc-pthreadmutex 
    175158else 
     
    177160endif 
    178161 
    179 ifneq ($(CONFIG_PACKAGE_php5-mod-ctype),) 
     162ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-ctype),) 
    180163  CONFIGURE_ARGS+= --enable-ctype=shared 
    181164else 
     
    183166endif 
    184167 
    185 ifneq ($(CONFIG_PACKAGE_php5-mod-curl),) 
     168ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-curl),) 
    186169  CONFIGURE_ARGS+= --with-curl=shared,"$(STAGING_DIR)/usr" 
    187170else 
     
    189172endif 
    190173 
    191 ifneq ($(CONFIG_PACKAGE_php5-mod-fileinfo),) 
     174ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-fileinfo),) 
    192175  CONFIGURE_ARGS+= --enable-fileinfo=shared 
    193176else 
     
    195178endif 
    196179 
    197 ifneq ($(CONFIG_PACKAGE_php5-mod-gettext),) 
     180ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-gettext),) 
    198181  CONFIGURE_ARGS+= --with-gettext=shared,"$(STAGING_DIR)/usr/lib/libintl-full" 
    199182else 
     
    201184endif 
    202185 
    203 ifneq ($(CONFIG_PACKAGE_php5-mod-dio),) 
     186ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-dio),) 
    204187  CONFIGURE_ARGS+= --enable-dio=shared 
    205188else 
     
    207190endif 
    208191 
    209 ifneq ($(CONFIG_PACKAGE_php5-mod-dom),) 
     192ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-dom),) 
    210193  CONFIGURE_ARGS+= --enable-dom=shared 
    211194else 
     
    213196endif 
    214197 
    215 ifneq ($(CONFIG_PACKAGE_php5-mod-exif),) 
     198ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-exif),) 
    216199  CONFIGURE_ARGS+= --enable-exif=shared 
    217200else 
     
    219202endif 
    220203 
    221 ifneq ($(CONFIG_PACKAGE_php5-mod-ftp),) 
     204ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-ftp),) 
    222205  CONFIGURE_ARGS+= --enable-ftp=shared 
    223206else 
     
    225208endif 
    226209 
    227 ifneq ($(CONFIG_PACKAGE_php5-mod-gd),) 
     210ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-gd),) 
    228211  CONFIGURE_ARGS+= \ 
    229212        --with-gd=shared,"$(STAGING_DIR)/usr" \ 
     
    239222endif 
    240223 
    241 ifneq ($(CONFIG_PACKAGE_php5-mod-gmp),) 
     224ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-gmp),) 
    242225  CONFIGURE_ARGS+= --with-gmp=shared,"$(STAGING_DIR)/usr" 
    243226else 
     
    245228endif 
    246229 
    247 ifneq ($(CONFIG_PACKAGE_php5-mod-hash),) 
     230ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-hash),) 
    248231  CONFIGURE_ARGS+= --enable-hash=shared 
    249232else 
     
    251234endif 
    252235 
    253 ifneq ($(CONFIG_PACKAGE_php5-mod-http),) 
     236ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-http),) 
    254237  CONFIGURE_ARGS+= \ 
    255238        --enable-http=shared \ 
     
    260243endif 
    261244 
    262 ifneq ($(CONFIG_PACKAGE_php5-mod-iconv),) 
     245ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-iconv),) 
    263246  CONFIGURE_ARGS+= --with-iconv=shared,"$(ICONV_PREFIX)" 
    264247else 
     
    272255endif 
    273256 
    274 ifneq ($(CONFIG_PACKAGE_php5-mod-ldap),) 
     257ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-ldap),) 
    275258  CONFIGURE_ARGS+= \ 
    276259        --with-ldap=shared,"$(STAGING_DIR)/usr" \ 
     
    280263endif 
    281264 
    282 ifneq ($(CONFIG_PACKAGE_php5-mod-libevent),) 
     265ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-libevent),) 
    283266  CONFIGURE_ARGS+= --with-libevent=shared,"$(STAGING_DIR)/usr" 
    284267else 
     
    286269endif 
    287270 
    288 ifneq ($(CONFIG_PACKAGE_php5-mod-mbstring),) 
     271ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-mbstring),) 
    289272  CONFIGURE_ARGS+= --enable-mbstring=shared --enable-mbregex 
    290273else 
     
    292275endif 
    293276 
    294 ifneq ($(CONFIG_PACKAGE_php5-mod-mcrypt),) 
     277ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-mcrypt),) 
    295278  CONFIGURE_ARGS+=  --with-mcrypt=shared,"$(STAGING_DIR)/usr" 
    296279else 
     
    298281endif 
    299282 
    300 ifneq ($(CONFIG_PACKAGE_php5-mod-mysql),) 
     283ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-mysql),) 
    301284  CONFIGURE_ARGS+= --with-mysql=shared,"$(STAGING_DIR)/usr" 
    302285else 
     
    304287endif 
    305288 
    306 ifneq ($(CONFIG_PACKAGE_php5-mod-openssl),) 
     289ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-openssl),) 
    307290  CONFIGURE_ARGS+= \ 
    308291        --with-openssl=shared,"$(STAGING_DIR)/usr" \ 
     
    313296endif 
    314297 
    315 ifneq ($(CONFIG_PACKAGE_php5-mod-pcntl),) 
     298ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-pcntl),) 
    316299  CONFIGURE_ARGS+= --enable-pcntl=shared 
    317300else 
     
    319302endif 
    320303 
    321 ifneq ($(CONFIG_PACKAGE_php5-mod-pdo),) 
     304ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-pdo),) 
    322305  CONFIGURE_ARGS+= --enable-pdo=shared 
    323   ifneq ($(CONFIG_PACKAGE_php5-mod-pdo-mysql),) 
     306  ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-pdo-mysql),) 
    324307    CONFIGURE_ARGS+= --with-pdo-mysql=shared,"$(STAGING_DIR)/usr" 
    325308  else 
    326309    CONFIGURE_ARGS+= --without-pdo-mysql 
    327310  endif 
    328   ifneq ($(CONFIG_PACKAGE_php5-mod-pdo-pgsql),) 
     311  ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-pdo-pgsql),) 
    329312    CONFIGURE_ARGS+= --with-pdo-pgsql=shared,"$(STAGING_DIR)/usr" 
    330313  else 
    331314    CONFIGURE_ARGS+= --without-pdo-pgsql 
    332315  endif 
    333   ifneq ($(CONFIG_PACKAGE_php5-mod-pdo-sqlite),) 
     316  ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-pdo-sqlite),) 
    334317    CONFIGURE_ARGS+= --with-pdo-sqlite=shared,"$(STAGING_DIR)/usr" 
    335318  else 
     
    340323endif 
    341324 
    342 ifneq ($(CONFIG_PACKAGE_php5-mod-pgsql),) 
     325ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-pgsql),) 
    343326  CONFIGURE_ARGS+= --with-pgsql=shared,"$(STAGING_DIR)/usr" 
    344327else 
     
    346329endif 
    347330 
    348 ifneq ($(CONFIG_PACKAGE_php5-mod-session),) 
     331ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-session),) 
    349332  CONFIGURE_ARGS+= --enable-session=shared 
    350333else 
     
    352335endif 
    353336 
    354 ifneq ($(CONFIG_PACKAGE_php5-mod-simplexml),) 
     337ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-simplexml),) 
    355338  CONFIGURE_ARGS+= --enable-simplexml=shared 
    356339else 
     
    358341endif 
    359342 
    360 ifneq ($(CONFIG_PACKAGE_php5-mod-soap),) 
     343ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-soap),) 
    361344  CONFIGURE_ARGS+= --enable-soap=shared 
    362345else 
     
    364347endif 
    365348 
    366 ifneq ($(CONFIG_PACKAGE_php5-mod-sockets),) 
     349ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-sockets),) 
    367350  CONFIGURE_ARGS+= --enable-sockets=shared 
    368351else 
     
    370353endif 
    371354 
    372 ifneq ($(CONFIG_PACKAGE_php5-mod-sqlite),) 
     355ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-sqlite),) 
    373356  CONFIGURE_ARGS+= --with-sqlite=shared,"$(STAGING_DIR)/usr" 
    374357else 
     
    376359endif 
    377360 
    378 ifneq ($(CONFIG_PACKAGE_php5-mod-sqlite3),) 
     361ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-sqlite3),) 
    379362  CONFIGURE_ARGS+= --with-sqlite3=shared,"$(STAGING_DIR)/usr" 
    380363else 
     
    382365endif 
    383366 
    384 ifneq ($(CONFIG_PACKAGE_php5-mod-sysvmsg),) 
     367ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-sysvmsg),) 
    385368  CONFIGURE_ARGS+= --enable-sysvmsg=shared 
    386369else 
     
    388371endif 
    389372 
    390 ifneq ($(CONFIG_PACKAGE_php5-mod-sysvsem),) 
     373ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-sysvsem),) 
    391374  CONFIGURE_ARGS+= --enable-sysvsem=shared 
    392375else 
     
    394377endif 
    395378 
    396 ifneq ($(CONFIG_PACKAGE_php5-mod-sysvshm),) 
     379ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-sysvshm),) 
    397380  CONFIGURE_ARGS+= --enable-sysvshm=shared 
    398381else 
     
    400383endif 
    401384 
    402 ifneq ($(CONFIG_PACKAGE_php5-mod-tokenizer),) 
     385ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-tokenizer),) 
    403386  CONFIGURE_ARGS+= --enable-tokenizer=shared 
    404387else 
     
    406389endif 
    407390 
    408 ifneq ($(CONFIG_PACKAGE_php5-mod-xml),) 
     391ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-xml),) 
    409392  CONFIGURE_ARGS+= --enable-xml=shared,"$(STAGING_DIR)/usr" 
    410393  ifneq ($(CONFIG_PHP5_LIBXML),) 
     
    417400endif 
    418401 
    419 ifneq ($(CONFIG_PACKAGE_php5-mod-xmlreader),) 
     402ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-xmlreader),) 
    420403  CONFIGURE_ARGS+= --enable-xmlreader=shared,"$(STAGING_DIR)/usr" 
    421404else 
     
    423406endif 
    424407 
    425 ifneq ($(CONFIG_PACKAGE_php5-mod-xmlwriter),) 
     408ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-xmlwriter),) 
    426409  CONFIGURE_ARGS+= --enable-xmlwriter=shared,"$(STAGING_DIR)/usr" 
    427410else 
     
    429412endif 
    430413 
    431 ifneq ($(CONFIG_PHP5_FILTER),) 
     414ifneq ($(SDK)$(CONFIG_PHP5_FILTER),) 
    432415  CONFIGURE_ARGS+= --enable-filter 
    433416else 
     
    435418endif 
    436419 
    437 ifneq ($(CONFIG_PHP5_LIBXML),) 
     420ifneq ($(SDK)$(CONFIG_PHP5_LIBXML),) 
    438421  CONFIGURE_ARGS+= --enable-libxml 
    439422  CONFIGURE_ARGS+= --with-libxml-dir="$(STAGING_DIR)/usr/include/libxml2" 
Note: See TracChangeset for help on using the changeset viewer.