1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/print/fpdf/Makefile
Thierry Thomas c60f363713 Replace tr by DOS2UNIX: when using tr with LANG or LC_ALL set to a
multibyte locale, "Illegal byte sequence" were reported.

Reported by:	Derek Kulinski <takeda (at) takeda.tk>
2006-02-11 21:20:18 +00:00

57 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.53
PORTREVISION= 2
CATEGORIES= print www
MASTER_SITES= http://www.fpdf.org/fr/
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
USE_DOS2UNIX= yes
FETCH_CMD= /usr/bin/fetch -ARr -o ${DISTDIR}/${DISTFILES}
NO_BUILD= yes
FPDF_DIR?= share/fpdf
SUB_FILES= pkg-message
SUB_LIST= FPDF_DIR=${FPDF_DIR}
PLIST_SUB= FPDF_DIR=${FPDF_DIR}
DOCS= FAQ.htm doc/* fpdf.css histo.htm install.txt tutoriel
do-fetch:
@if [ ! -f ${DISTDIR}/${DISTFILES} ]; then \
${FETCH_CMD} ${FETCH_BEFORE_ARGS} \
'${MASTER_SITES}dl.php?v=${PORTVERSION:S|.||}&f=${EXTRACT_SUFX:S|.||}'; \
fi
pre-patch:
@${FIND} ${WRKSRC} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
do-install:
${MKDIR} ${PREFIX}/${FPDF_DIR}
${INSTALL_DATA} ${WRKSRC}/fpdf.php ${PREFIX}/${FPDF_DIR}
${CP} -R ${WRKSRC}/font ${PREFIX}/${FPDF_DIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${CP} -R ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
post-install:
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk>