Skip to content

Instantly share code, notes, and snippets.

@tkak
Forked from tkuchiki/php-build.patch
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save tkak/e00c7d6e6880ceaa27d0 to your computer and use it in GitHub Desktop.

Select an option

Save tkak/e00c7d6e6880ceaa27d0 to your computer and use it in GitHub Desktop.

Revisions

  1. tkak revised this gist Jun 3, 2014. 1 changed file with 12 additions and 4 deletions.
    16 changes: 12 additions & 4 deletions php-build.patch
    Original file line number Diff line number Diff line change
    @@ -2,11 +2,19 @@

    cd "$source_path"
    {
    + if which apxs > /dev/null 2>&1; then
    + _LIBEXECDIR=`apxs -q LIBEXECDIR`
    + sed -i "" -e "s|LIBEXECDIR='\$(INSTALL_ROOT)$_LIBEXECDIR'|LIBEXECDIR=$PREFIX/libexec|" $TMP/source/$DEFINITION/Makefile
    + if [ -n $APXS ]; then
    + _LIBEXECDIR=`$APXS -q LIBEXECDIR`
    + sed -i -e "s|LIBEXECDIR='\$(INSTALL_ROOT)$_LIBEXECDIR'|LIBEXECDIR=$PREFIX/libexec|" $TMP/source/$DEFINITION/Makefile
    + fi
    +
    make
    make install
    make clean
    make clean
    @@ -500,6 +505,7 @@
    if [ -z "$apxs" ]; then
    apxs="$PHP_BUILD_APXS"
    fi
    + APXS="$apxs"

    configure_option "--with-apxs2" "$apxs"
    }
  2. @tkuchiki tkuchiki revised this gist Apr 30, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion php-build.patch
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    {
    + if which apxs > /dev/null 2>&1; then
    + _LIBEXECDIR=`apxs -q LIBEXECDIR`
    + sed -i"" -e "s|LIBEXECDIR='\$(INSTALL_ROOT)$_LIBEXECDIR'|LIBEXECDIR=$PREFIX/libexec|" $TMP/source/$DEFINITION/Makefile
    + sed -i "" -e "s|LIBEXECDIR='\$(INSTALL_ROOT)$_LIBEXECDIR'|LIBEXECDIR=$PREFIX/libexec|" $TMP/source/$DEFINITION/Makefile
    + fi
    +
    make
  3. @tkuchiki tkuchiki revised this gist Apr 30, 2014. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions php-build.patch
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,12 @@
    @@ -358,6 +358,7 @@
    @@ -358,6 +358,11 @@

    cd "$source_path"
    {
    + sed -i"" -e "s|LIBEXECDIR='\$(INSTALL_ROOT)/usr/lib64/httpd/modules'|LIBEXECDIR=$PREFIX/libexec|" $TMP/source/$DEFINITION/Makefile
    + if which apxs > /dev/null 2>&1; then
    + _LIBEXECDIR=`apxs -q LIBEXECDIR`
    + sed -i"" -e "s|LIBEXECDIR='\$(INSTALL_ROOT)$_LIBEXECDIR'|LIBEXECDIR=$PREFIX/libexec|" $TMP/source/$DEFINITION/Makefile
    + fi
    +
    make
    make install
    make clean
  4. @tkuchiki tkuchiki created this gist Apr 8, 2014.
    8 changes: 8 additions & 0 deletions php-build.patch
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    @@ -358,6 +358,7 @@

    cd "$source_path"
    {
    + sed -i"" -e "s|LIBEXECDIR='\$(INSTALL_ROOT)/usr/lib64/httpd/modules'|LIBEXECDIR=$PREFIX/libexec|" $TMP/source/$DEFINITION/Makefile
    make
    make install
    make clean