asp2php stable port information

Package: asp2php
Version: 2008-08-13
Revision: 12
Maintainer: None
Source: http://downloads.mikekohn.net/%n/%n-%v.tar.gz
Source-MD5: 2fcf9c6c0d7159553104a80870277f74
Depends: <<
atk1-shlibs (>= 1.24.0-1),
cairo-shlibs (>= 1.8-1),
fontconfig2-shlibs (>= 2.4.1-1),
freetype219-shlibs (>= 2.3.7-7),
glib2-shlibs (>= 2.18.0-1),
gtk+2-shlibs (>= 2.14.0-1),
imagemagick (>= 5.5.1-13),
libgettext3-shlibs,
pango1-xft2-ft219-shlibs (>= 1.22.0-4),
x11
<<
BuildDepends: <<
atk1 (>= 1.24.0-1),
cairo (>= 1.8-1),
fink (>= 0.24.12-1),
fontconfig2-dev (>= 2.4.1-1),
freetype219 (>= 2.3.7-7),
glib2-dev (>= 2.18.0-1),
glitz,
gtk+2-dev (>= 2.14.0-1),
libgettext3-dev,
libpng3,
pango1-xft2-ft219-dev (>= 1.22.0-4),
pkgconfig (>= 0.23),
x11-dev
<<
PatchFile: %n.patch
PatchFile-MD5: ce81d74d9a56ee51d9e096d42314e4b0
CompileScript: <<
#!/bin/sh -ev
# make default gui gtk_cflags="`gtk-config --cflags`" gtk_libs="`gtk-config --libs`"

export PKG_CONFIG_PATH="%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH"
make default gui gtk_cflags="`pkg-config --cflags gtk+-2.0`" gtk_libs="`pkg-config --libs gtk+-2.0`"
<<
InstallScript: <<
mkdir -p %i/bin
install -c asp2php gtkasp2php %i/bin
<<
Docfiles: LICENSE README
Description: Converts asp scripts to php
DescUsage: <<
Just type 'gtkasp2php' at the command prompt inside an x environment
for the gtk-frontend, or type 'asp2php' for a list of command options.
<<
DescPort: <<
Add missing #include to resolve implicit-declaration warnings
<<
DescPackaging: <<
Originally packaged by Matt Stephenson.

Tweak src/Makefile to display gtk flags being passed, and
trivial switch to gtk+2 instead of crufty old gtk+

Not bothering to separate into -nox and -x11 variants (or -cli
with -gui on top) because low-level need for system(convert),
and imagemagick already drags in the whole gtk stack.
<<
License: GPL
Homepage: http://asp2php.naken.cc

asp2php stable port .patch

diff -Nurd -x'*`' asp2php-2008-08-13.orig/src/Makefile asp2php-2008-08-13/src/Makefile
--- asp2php-2008-08-13.orig/src/Makefile 2008-08-13 08:32:19.000000000 -0400
+++ asp2php-2008-08-13/src/Makefile 2008-12-09 03:59:19.000000000 -0500
@@ -48,6 +48,6 @@
@cd jscript && make clean

gui:
- $(CC) -o gtkasp2php gtkasp2php.c `gtk-config --cflags` `gtk-config --libs`
+ $(CC) -o gtkasp2php gtkasp2php.c $(gtk_cflags) $(gtk_libs)


diff -Nurd -x'*`' asp2php-2008-08-13.orig/src/gtkasp2php.c asp2php-2008-08-13/src/gtkasp2php.c
--- asp2php-2008-08-13.orig/src/gtkasp2php.c 2008-08-13 08:32:19.000000000 -0400
+++ asp2php-2008-08-13/src/gtkasp2php.c 2008-12-09 03:53:35.000000000 -0500
@@ -5,6 +5,7 @@
#include
#include
#include
+#include

#include "asp.xpm"

asp2php _unstable_ port .patch