1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00
freebsd-ports/print/fpdf/Makefile
Thierry Thomas 6dc71a81a4 Upgrade to 1.7.
Changelog at <http://www.fpdf.org/en/changelog.php>.

PR:		ports/164650
Submitted by:	Robert Simmons <rsimmons0 (at) gmail.com>
2012-02-05 21:47:30 +00:00

55 lines
1.2 KiB
Makefile

# New ports collection makefile for: fpdf
# Date created: 21 March 2005
# Whom: Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
#
PORTNAME= fpdf
PORTVERSION= 1.7
PORTEPOCH= 1
CATEGORIES= print www
MASTER_SITES= http://www.fpdf.org/en/
DISTNAME= ${PORTNAME}${PORTVERSION:S|.||}
EXTRACT_SUFX= .tgz
MAINTAINER= thierry@FreeBSD.org
COMMENT= A free PHP class to generate PDF files with pure PHP
USE_PHP= zlib
FETCH_CMD= ${FETCH_BINARY} -ARr -o ${DISTDIR}/${DISTFILES}
USE_DOS2UNIX= yes
NO_BUILD= 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 license.txt tutorial
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} ${PREFIX}/${FPDF_DIR}
${INSTALL_DATA} ${WRKSRC}/fpdf.php ${PREFIX}/${FPDF_DIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "font makefont" ${PREFIX}/${FPDF_DIR}/)
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "${DOCS}" ${DOCSDIR}/)
.endif
post-install:
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk>