switch to lang/php

This commit is contained in:
robert 2011-07-08 21:57:03 +00:00
parent 82ac7ca187
commit 5f53c0df93
4 changed files with 11 additions and 41 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.10 2011/07/07 01:06:59 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.11 2011/07/08 21:57:03 robert Exp $
SHARED_ONLY= Yes
@ -27,15 +27,14 @@ NO_REGRESS= Yes
USE_LIBTOOL= Yes
LIBTOOL_FLAGS= --tag=disable-static
MODULES= converters/libiconv
MODULES= converters/libiconv lang/php
BUILD_DEPENDS= www/pear \
${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS}
LIB_DEPENDS= graphics/ffmpeg \
graphics/gd
RUN_DEPENDS= www/php5/core \
www/php5/extensions,-gd
RUN_DEPENDS= lang/php/${MODPHP_VERSION},-gd
WANTLIB += avcodec avformat avutil bz2 expat fontconfig freetype gd
WANTLIB += gsm jpeg m mp3lame ogg orc-0.4 png schroedinger-1.0
@ -51,12 +50,7 @@ CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lgd -lfreetype" \
AUTOCONF_VERSION=${AUTOCONF_VERSION}
CONFIGURE_STYLE=gnu
pre-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${LOCALBASE}/bin/phpize
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/conf/php5.sample
@echo "extension=ffmpeg.so" > \
${PREFIX}/conf/php5.sample/ffmpeg.ini
MODPHP_DO_SAMPLE= ffmpeg
MODPHP_DO_PHPIZE= Yes
.include <bsd.port.mk>

View File

@ -1,10 +0,0 @@
You can enable this module by creating a symbolic
link from ${PREFIX}/conf/php5.sample/ffmpeg.ini to
${PREFIX}/conf/php5/ffmpeg.ini.
ln -fs ${PREFIX}/conf/php5.sample/ffmpeg.ini \
${PREFIX}/conf/php5/ffmpeg.ini
If you already have Apache running on your machine,
you should not use "apachectl restart" - instead,
you should fully stop and then restart the server.

View File

@ -1,11 +1,6 @@
@comment $OpenBSD: PLIST,v 1.2 2009/08/16 20:10:06 jolan Exp $
@comment conf/php5.sample/
conf/php5.sample/ffmpeg.ini
@comment lib/
@comment lib/php/
@comment lib/php/modules/
@owner root
@group bin
lib/php/modules/ffmpeg.so
@owner
@group daemon
@comment $OpenBSD: PLIST,v 1.3 2011/07/08 21:57:03 robert Exp $
share/
share/examples/
share/examples/php-${MODPHP_VERSION}/
share/examples/php-${MODPHP_VERSION}/${MODULE_NAME}.ini
@sample ${SYSCONFDIR}/php-${MODPHP_VERSION}.sample/${MODULE_NAME}.ini

View File

@ -1,9 +0,0 @@
You can disable this module by removing the
${PREFIX}/conf/php5/ffmpeg.ini symbolic link by
issuing the following command:
rm -f ${PREFIX}/conf/php5/ffmpeg.ini
If you already have Apache running on your machine,
you should not use "apachectl restart" - instead,
you should fully stop and then restart the server.