LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-29-2013, 04:08 AM   #1
urulab
LQ Newbie
 
Registered: Nov 2013
Posts: 4

Rep: Reputation: Disabled
slackbuid for Phalcon PHP framework


I'm a web developer with Phalcon PHP Framework
on slackware-current-x86_64.

Below I leave the SlackBuild corresponding to said framework.

Best regards. --cesar


Quote:
PKGNAME="phalcon"
VERSION="1.2.4"
BUILD="1"
CWD=$(pwd)
TMP="/tmp"
PKG=${TMP}/package-${PKGNAME}
ARCH="x86_64"
SLKLDFLAGS="-L/lib64 -L/usr/lib64";
SLKCFLAGS="-O2 -fPIC -pipe -fomit-frame-pointer";

rm -rf ${PKG}
mkdir -p ${PKG}
cd ${TMP}
rm -rf ${PKGNAME}-${VERSION} package-${PKGNAME}
tar xzvf ${CWD}/${PKGNAME}-v-${VERSION}.tar.gz
mv c${PKGNAME}-${VERSION} ${PKGNAME}-${VERSION}
cd ${PKGNAME}-${VERSION}/build/64bits
chown -R root:root .
chmod -R u+w,go+r-w,a-s .

phpize --clean
phpize
LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS}" \
./configure \
--with-libdir=/usr/lib64 \
--enable-phalcon \
--host=${ARCH}-slackware-linux \
--build=${ARCH}-slackware-linux
make
make INSTALL_ROOT=${PKG} install
strip --strip-unneeded ${PKG}/usr/lib64/php/extensions/phalcon.so

mkdir -p ${PKG}/etc/php/
echo 'extension=phalcon.so' > ${PKG}/etc/php/phalcon.ini
cd $PKG
/sbin/makepkg -l y -c n ${CWD}/${PKGNAME}-${VERSION}-${ARCH}-${BUILD}.txz
 
Old 11-29-2013, 10:17 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,343

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Why don't you submit to SBo when submission is open?
please check the template guidelines first before submitting
 
Old 11-29-2013, 11:28 AM   #3
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,314

Rep: Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816
you can also see the one of another php extension, as an example for how the submitted one should be

http://slackbuilds.org/repository/14.../php-memcache/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
firefox update and slackbuid flash plugin cmk77 Slackware 16 10-01-2010 01:35 AM
Does anyone know of a PHP framework that works with Oracle ? abakalidis Programming 2 10-20-2009 07:28 AM
LXer: PHP Speeds to the Cloud With Zend Framework 1.8 LXer Syndicated Linux News 0 05-02-2009 02:20 AM
php framework pipio Linux - Software 1 06-27-2004 10:35 PM
PHP Framework. Which one to choose? initpcsys Programming 1 07-16-2003 09:41 PM


All times are GMT -5. The time now is 02:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration