aboutsummaryrefslogtreecommitdiffstats
path: root/print/pdfjam/Makefile
blob: 16818a197ffe5536ec62921d06e5c1d82698905f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:    pdfjam
# Date created:     Tue Mar 15 17:50:34 EST 2005
# Whom:         Paul Chvostek <paul@it.ca>
#
# $FreeBSD$
#

PORTNAME=   pdfjam
PORTVERSION=    1.20
PORTREVISION=   4
CATEGORIES= print
MASTER_SITES=   http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam/ \
        http://www.it.ca/~paul/src/
DISTNAME=   ${PORTNAME}_${PORTVERSION}
EXTRACT_SUFX=   .tgz

MAINTAINER= paul+ports@it.ca
COMMENT=    Shell scripts to manipulate PDF files

RUN_DEPENDS=    pdflatex:${PORTSDIR}/print/teTeX-base

WRKSRC=     ${WRKDIR}/${PORTNAME}

MAN1=       pdfjoin.1 pdf90.1 pdfnup.1
PLIST_FILES=    bin/pdfjoin bin/pdf90 bin/pdfnup
PORTDOCS=   PDFjam-README.html pdfdroplets.png

NO_BUILD=   yes

post-patch:
    @${LN} -s scripts ${WRKSRC}/bin
.for FILE in ${PLIST_FILES}
    @${REINPLACE_CMD} -e"s|__LOCALBASE__|${LOCALBASE}|g" ${WRKSRC}/${FILE}
.endfor

do-install:
.for FILE in ${PLIST_FILES}
    ${INSTALL_SCRIPT} ${WRKSRC}/${FILE} ${PREFIX}/bin
.endfor
.for FILE in ${MAN1}
    ${INSTALL_MAN} ${WRKSRC}/man1/${FILE} ${PREFIX}/man/man1
.endfor
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for FILE in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>