mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
4f838f52a1
- Define the license - Release maintainership. Reported by: jason (at) ixsystems.com
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# Created by: Thierry Thomas <thierry@pompo.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= fpdf
|
|
PORTVERSION= 1.81
|
|
PORTEPOCH= 1
|
|
CATEGORIES= print www
|
|
MASTER_SITES= http://www.fpdf.org/en/
|
|
DISTNAME= ${PORTNAME}${PORTVERSION:S|.||}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Free PHP class to generate PDF files with pure PHP
|
|
|
|
LICENSE= As_Is
|
|
LICENSE_NAME= As_Is
|
|
LICENSE_FILE= ${WRKSRC}/license.txt
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
FETCH_CMD= ${FETCH_BINARY} -ARr -o ${DISTDIR}/${DISTFILES}
|
|
USES= dos2unix php tar:tgz
|
|
USE_PHP= zlib
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
|
|
FPDF_DIR?= share/fpdf
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= FPDF_DIR=${FPDF_DIR}
|
|
PLIST_SUB= FPDF_DIR=${FPDF_DIR}
|
|
|
|
EXT2CNV= afm css htm php txt
|
|
DOCS= FAQ.htm changelog.htm doc fpdf.css install.txt tutorial
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
do-fetch:
|
|
@if [ ! -f ${DISTDIR}/${DISTFILES} ]; then \
|
|
${FETCH_CMD} ${FETCH_BEFORE_ARGS} \
|
|
'${MASTER_SITES}dl.php?v=${PORTVERSION:S|.||}&f=${EXTRACT_SUFX:S|.||}'; \
|
|
fi
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/${FPDF_DIR}
|
|
${INSTALL_DATA} ${WRKSRC}/fpdf.php ${STAGEDIR}${PREFIX}/${FPDF_DIR}
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} "font makefont" ${STAGEDIR}${PREFIX}/${FPDF_DIR}/)
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} "${DOCS}" ${STAGEDIR}${DOCSDIR}/)
|
|
|
|
.include <bsd.port.mk>
|