61 lines
1.3 KiB
Makefile
61 lines
1.3 KiB
Makefile
|
# $OpenBSD: Makefile,v 1.1.1.1 2004/11/06 20:02:30 alek Exp $
|
||
|
|
||
|
COMMENT= "template engine for PHP"
|
||
|
COMMENT-docs= "documentation for Smarty"
|
||
|
|
||
|
VERSION= 2.6.5
|
||
|
DISTNAME= Smarty-${VERSION}
|
||
|
PKGNAME= ${DISTNAME:L}
|
||
|
PKGNAME-docs= smarty-docs-${VERSION}
|
||
|
CATEGORIES= devel www
|
||
|
|
||
|
HOMEPAGE= http://smarty.php.net/
|
||
|
|
||
|
MAINTAINER= Aleksander Piotrowski <alek@openbsd.org>
|
||
|
|
||
|
# PHP License
|
||
|
PERMIT_PACKAGE_CDROM= Yes
|
||
|
PERMIT_PACKAGE_FTP= Yes
|
||
|
PERMIT_DISTFILES_CDROM= Yes
|
||
|
PERMIT_DISTFILES_FTP= Yes
|
||
|
|
||
|
MASTER_SITES= ${HOMEPAGE}/do_download.php?download_file=
|
||
|
MASTER_SITES0= ${HOMEPAGE}/distributions/manual/en/
|
||
|
|
||
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
||
|
${DISTNAME}-docs${EXTRACT_SUFX}:0
|
||
|
|
||
|
MULTI_PACKAGES= -docs
|
||
|
SUBPACKAGE?=
|
||
|
|
||
|
PHP_VERSION= 5
|
||
|
RUN_DEPENDS= ::www/php${PHP_VERSION}/core
|
||
|
|
||
|
CHROOT_DIR= /var/www
|
||
|
|
||
|
.if defined(PACKAGING)
|
||
|
. if empty(SUBPACKAGE)
|
||
|
PREFIX= ${CHROOT_DIR}
|
||
|
. else
|
||
|
RUN_DEPENDS=
|
||
|
. endif
|
||
|
.endif
|
||
|
|
||
|
NO_BUILD= Yes
|
||
|
NO_REGRESS= Yes
|
||
|
|
||
|
PKG_ARCH= *
|
||
|
|
||
|
do-install:
|
||
|
${INSTALL_DATA_DIR} ${WRKINST}${CHROOT_DIR}/smarty
|
||
|
cd ${WRKSRC}/libs; tar cf - . | \
|
||
|
tar xf - -C ${WRKINST}${CHROOT_DIR}/smarty
|
||
|
${CHOWN} -R ${LIBOWN}:${LIBGRP} ${WRKINST}${CHROOT_DIR}/smarty
|
||
|
|
||
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/smarty
|
||
|
cd ${WRKDIR}/manual; tar cf - . | \
|
||
|
tar xf - -C ${PREFIX}/share/doc/smarty
|
||
|
${CHOWN} -R ${DOCOWN}:${DOCGRP} ${PREFIX}/share/doc/smarty
|
||
|
|
||
|
.include <bsd.port.mk>
|