# $OpenBSD: Makefile,v 1.4 2010/11/19 07:23:09 espie Exp $ SHARED_ONLY = Yes COMMENT = PHP extension for parsing and working with rfc822/MIME mail DISTNAME = mailparse-2.1.5 PKGNAME = pecl-${DISTNAME} REVISION = 1 CATEGORIES = www mail HOMEPAGE = http://pecl.php.net/package/mailparse MAINTAINER = Stuart Henderson # PHP License PERMIT_PACKAGE_CDROM = Yes PERMIT_PACKAGE_FTP = Yes PERMIT_DISTFILES_CDROM =Yes PERMIT_DISTFILES_FTP = Yes MASTER_SITES = http://pecl.php.net/get/ EXTRACT_SUFX = .tgz AUTOCONF_VERSION = 2.52 AUTOMAKE_VERSION = 1.4 BUILD_DEPENDS = www/pear \ www/php5/extensions,-mbstring:patch \ ${MODGNU_AUTOCONF_DEPENDS} \ ${MODGNU_AUTOMAKE_DEPENDS} RUN_DEPENDS = www/php5/core \ www/php5/extensions,-mbstring CONFIGURE_STYLE = gnu CONFIGURE_ENV = AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \ AUTOCONF_VERSION=${AUTOCONF_VERSION} PREFIX = /var/www FAKE_FLAGS = INSTALL_ROOT=${WRKINST} SUBST_VARS = LOCALBASE # needs command-line PHP installed and has some interactions # with chroot directory structure. NO_REGRESS = Yes USE_LIBTOOL = Yes LIBTOOL_FLAGS = --tag=disable-static pre-configure: @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${LOCALBASE}/bin/phpize @ln -s ${WRKDIR}/www/php5/extensions/php-5* ${WRKDIR}/php post-install: @${INSTALL_DATA_DIR} ${PREFIX}/conf/php5.sample @echo "extension=mailparse.so" > \ ${PREFIX}/conf/php5.sample/mailparse.ini @chown ${BINOWN}:${BINGRP} ${PREFIX}/lib/php/modules/mailparse.so .include