ports/46201: New port: php-gtk
Thierry Thomas
thierry at pompo.net
Tue Apr 1 22:06:11 UTC 2003
Le Mar 1 avr 03 à 4:25:46 +0200, Edwin Groothuis <edwin at FreeBSD.org>
écrivait :
> Synopsis: New port: php-gtk
>
> State-Changed-From-To: open->feedback
> State-Changed-By: edwin
> State-Changed-When: Mon Mar 31 18:24:34 PST 2003
> State-Changed-Why:
> It fails to build for me on a -current system:
> ===> Building for php-gtk-0.5.2
> /bin/sh /local0/scratch/edwin/ports/NEW/php-gtk/work/php-gtk-0.5.2/libtool --mod[..]
> /local0/scratch/edwin/ports/NEW/php-gtk/work/php-gtk-0.5.2/./ext/gtk+/php_gtk+.c -fPIC -DPIC -o ./ext/gtk+/php_gtk+.lo
> cc: unrecognized option `-prefer-pic'
> In file included from /local0/scratch/edwin/ports/NEW/php-gtk/work/php-gtk-0.5.2/main/php_gtk.h:90,
> from /local0/scratch/edwin/ports/NEW/php-gtk/work/php-gtk-0.5.2/ext/gtk+/php_gtk+.c:23:
> /local0/scratch/edwin/ports/NEW/php-gtk/work/php-gtk-0.5.2/ext/gtk+/php_gtk+.h:94:21: gen_gtk.h: No such file or directory
> *** Error code 1
There were some changes since the original submission! (mod_php4, etc.)
If Alex Kiesel agrees with the following patch, it builds and runs the
included examples on -CURRENT.
diff -urN x11-toolkits/php-gtk.orig/Makefile x11-toolkits/php-gtk/Makefile
--- x11-toolkits/php-gtk.orig/Makefile Wed Dec 11 23:07:04 2002
+++ x11-toolkits/php-gtk/Makefile Tue Apr 1 23:58:34 2003
@@ -12,6 +12,7 @@
http://document-root.de/mirror/php-gtk/
MAINTAINER= kiesel at schlund.de
+COMMENT= An extension to use GTK in PHP applications
# Port does only build with automake-1.4 and
# automake-1.5 installed - what a mess
@@ -19,12 +20,14 @@
automake14:${PORTSDIR}/devel/automake14 \
autoconf:${PORTSDIR}/devel/autoconf213 \
${LOCALBASE}/bin/phpize:${PORTSDIR}/www/mod_php4
-RUN_DEPENDS= php:${PORTSDIR}/lang/php4
+RUN_DEPENDS= php:${PORTSDIR}/www/mod_php4
# Don't call autoconf directly, ./buildconf does this
GNU_CONFIGURE= yes
USE_AUTOCONF= no
USE_LIBTOOL= no
+USE_GMAKE= yes
+USE_PERL5_BUILD=yes
USE_GNOMENG= yes
USE_GNOME= gtk12
# Fix environment for self contained extensions
@@ -48,10 +51,15 @@
.if !defined(WITHOUT_GTKHTML)
USE_GNOME+= gtkhtml
CONFIGURE_ARGS+= --enable-gtkhtml=shared
-ENVSCE+= -DHAVE_HTML=1 -DPHP_GTK_COMPILE_DL_GTKHTML=1 -DGTKHTML_HAVE_GCONF=1
+ENVSCE+= -DHAVE_HTML=1 -DPHP_GTK_COMPILE_DL_GTKHTML=1 -DGTKHTML_HAVE_GCONF=1 -I${X11BASE}/include/gal-1.0
.endif
CONFIGURE_ENV= CPPFLAGS="${ENVSCE}"
+USE_REINPLACE= yes
+REINPLACE_ARGS= -i ""
+
+PIC2FIX= acinclude.m4 aclocal.m4 autom4te.cache configure
+
EXAMPLES= combobutton.php fileselection.php gtk.php hello.php list.php \
piemenu.php scribble.php scrollpane.php spaned.php sqpane.php \
testgtkrc testgtkrc2 window.xpm
@@ -70,6 +78,11 @@
post-patch-script:
@${ECHO_MSG} "===> Building configuration files for ${PKGNAME}"
(cd ${WRKSRC} && ./buildconf)
+
+pre-configure:
+.for FILE in ${PIC2FIX}
+ @${REINPLACE_CMD} -e "s|-prefer-pic|${CFLAGS}|g" ${WRKSRC}/${FILE}
+.endfor
do-install:
@$(MKDIR) -p ${PREFIX}/lib/php/extensions/
diff -urN x11-toolkits/php-gtk.orig/pkg-comment x11-toolkits/php-gtk/pkg-comment
--- x11-toolkits/php-gtk.orig/pkg-comment Thu Oct 3 15:07:47 2002
+++ x11-toolkits/php-gtk/pkg-comment Thu Jan 1 01:00:00 1970
@@ -1 +0,0 @@
-An extension to use gtk in PHP-applications
Best regards,
--
Th. Thomas.
More information about the freebsd-ports-bugs
mailing list