LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
  Search this Thread
Old 11-29-2013, 05:08 AM   #1
urulab
LQ Newbie
 
Registered: Nov 2013
Posts: 5

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, 11:17 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,821

Rep: Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892
Why don't you submit to SBo when submission is open?
please check the template guidelines first before submitting
 
Old 11-29-2013, 12:28 PM   #3
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,388

Rep: Reputation: 4356Reputation: 4356Reputation: 4356Reputation: 4356Reputation: 4356Reputation: 4356Reputation: 4356Reputation: 4356Reputation: 4356Reputation: 4356Reputation: 4356
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:48 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration