597afc47ba
With hat: portmgr Sponsored by: Absolight
37 lines
1 KiB
Makefile
37 lines
1 KiB
Makefile
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pdfoutline
|
|
PORTVERSION= 4.1
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= SF/fntsample/fntsample/${PORTVERSION}
|
|
DISTNAME= fntsample-${PORTVERSION}
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Add outlines to PDF files
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= p5-Locale-libintl>=0:devel/p5-Locale-libintl \
|
|
p5-PDF-API2>=0:textproc/p5-PDF-API2
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
USE_PERL5= run
|
|
USES= perl5 pkgconfig shebangfix
|
|
SHEBANG_FILES= pdfoutline.pl
|
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
man/man1/${PORTNAME}.1.gz
|
|
|
|
post-patch:
|
|
@${SED} -e 's|##PACKAGE##|fntsample|g; s|##LOCALEDIR##|${LOCALBASE}/share/locale|g' ${WRKSRC}/${PORTNAME}.pl > ${WRKSRC}/${PORTNAME}
|
|
@${SED} -e 's|@DATE@|2010-07-12|g' ${WRKSRC}/${PORTNAME}.1.in > ${WRKSRC}/${PORTNAME}.1
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1/
|
|
|
|
.include <bsd.port.mk>
|