Ticket #6792: Portfile

File Portfile, 1.2 KB (added by sam.falkner@…, 18 years ago)

the pcal-1.0 portfile

Line 
1# $Id: $
2PortSystem     1.0
3name           pcal
4version        4.9.1
5categories     print
6maintainers    sam.falkner@gmail.com
7description    PostScript calendar program
8long_description  "Pcal" is a program to print PostScript calendars for any \
9                  month and year.  By default, it looks for a file in the \
10                  home directory named "calendar" for entries with leading \
11                  dates matching dates on the calendar, and prints any \
12                  following text under the appropriate day.
13homepage          http://pcal.sourceforge.net/
14master_sites      sourceforge
15distfiles         ${distname}.tgz
16checksums         md5 7646ae0b539466696484f311d79b2b02
17configure         {
18   reinplace "s|^BINDIR.*|BINDIR = ${destroot}${prefix}/bin|" \
19             "${worksrcpath}/Makefile"
20   reinplace "s|^MANDIR.*|MANDIR = ${destroot}${prefix}/share/man/man1|" \
21             "${worksrcpath}/Makefile"
22   reinplace "s|^CATDIR.*|CATDIR = ${destroot}${prefix}/share/cat/cat1|" \
23             "${worksrcpath}/Makefile"
24}
25build.target
26variant a4 {
27   reinplace "s|PAPERSIZE_DEFAULT.PAPERSIZE_LETTER|PAPERSIZE_DEFAULT PAPERSIZE_A4" \
28             "${worksrcpath}/src/pcalpapr.h"
29}
30destroot.destdir  prefix=${destroot}${prefix}
31build.type        gnu