Sure,
Here's how you build a custom php extension.
I couldn't get it to build actually however, here's what I did that may give you a head start...
First I downloaded and built the library because configure under the php extension complained about the binaries not being in the right place. I assume this needs the libs to be installed so I downloaded the source I found at:
wget http://megaui.net/fukuchi/works/qrencode/qrencode-3.0.3.tar.gz
untarred it...
tar xzvf qrencode-3.0.3.tar.gz
Installed some dependencies via apt:
sudo apt-get install pkg-config libpng12-dev
./configure
make
sudo make install
Then I went back to the source you're trying to build and ran (you may need build tools and php5-dev packages):
phpize
./configure --with-qrencode
make
However, I got a build error:
In file included from /usr/include/png.h:387,
from /usr/src/qrencode-0.1/qrencode.c:32:
/usr/include/pngconf.h:317: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â.â token
/usr/include/pngconf.h:318: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âincludeâ
/usr/src/qrencode-0.1/qrencode.c: In function âzif_qr_encodeâ:
/usr/src/qrencode-0.1/qrencode.c:119: warning: assignment makes pointer from integer without a cast
/usr/src/qrencode-0.1/qrencode.c:121: error: too few arguments to function âQRcode_encodeStringâ
make: *** [qrencode.lo] Error 1
Looks like Greek to me 🙂 Better luck!