mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
5126c693a3
Approved by: portmgr
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# Created by: Fernan Aguero <fernan@iib.unsam.edu.ar>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= flpsed
|
|
PORTVERSION= 0.7.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= print
|
|
MASTER_SITES= http://www.ecademix.com/JohannesHofmann/
|
|
|
|
MAINTAINER= bf@FreeBSD.org
|
|
COMMENT= WYSIWYG Postscript annotator
|
|
|
|
LIB_DEPENDS+= fltk.1:${PORTSDIR}/x11-toolkits/fltk
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_GHOSTSCRIPT=yes
|
|
USES= gmake
|
|
|
|
PLIST_FILES= bin/flpsed
|
|
MAN1= flpsed.1
|
|
PORTDOCS= README
|
|
|
|
NO_STAGE= yes
|
|
post-configure:
|
|
@${FIND} -X ${WRKSRC} -type f -name Makefile | ${XARGS} \
|
|
${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g"
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/flpsed ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/flpsed.1 ${MANPREFIX}/man/man1
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
.endif
|
|
|
|
post-install:
|
|
.if !exists(${LOCALBASE}/bin/pdftops)
|
|
@${ECHO_CMD} ""
|
|
@${ECHO_CMD} " Consider installing graphics/xpdf, to take full advantage of "
|
|
@${ECHO_CMD} " flpsed's ability to edit PDF files by first converting them "
|
|
@${ECHO_CMD} " to PostScript via xpdf's pdftops(1) before editing, and then "
|
|
@${ECHO_CMD} " transforming the edited Postscript files back to PDF via "
|
|
@${ECHO_CMD} " Ghostscript's ps2pdf(1). "
|
|
@${ECHO_CMD} ""
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|