source: trunk/dports/print/psutils/Portfile @ 74779

Last change on this file since 74779 was 74779, checked in by ryandesign@…, 9 years ago

psbind: support universal and non-default-build_arch builds

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 74779 2011-01-02 09:28:00Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            psutils
6version         p17
7revision        1
8categories      print
9maintainers     jp-www@dcs.gla.ac.uk
10description     Useful utilities for manipulating PostScript documents
11long_description        PSUtils is a collection of useful utilities for \
12                        manipulating PostScript documents. Programs included \
13                        are psnup, for placing out several logical pages on a \
14                        single sheet of paper, psselect, for selecting pages \
15                        from a document, pstops, for general imposition, \
16                        psbook, for signature generation for booklet printing, \
17                        and psresize, for adjusting page sizes.
18platforms       darwin
19homepage        http://www.knackered.org/angus/psutils/
20master_sites    ftp://ftp.knackered.org/pub/psutils/
21checksums       md5 b161522f3bd1507655326afa7db4a0ad
22
23worksrcdir      ${name}
24
25pre-configure   {
26        file rename ${worksrcpath}/Makefile.unix ${worksrcpath}/Makefile
27        reinplace "s|/usr/local/bin/perl|perl|" "${worksrcpath}/Makefile"
28        reinplace "s|/usr/local|${prefix}|g" "${worksrcpath}/Makefile"
29}
30use_configure   no
31
32variant universal {}
33if {[variant_isset universal]} {
34        set archflags ${configure.universal_cflags}
35} else {
36        set archflags ${configure.cc_archflags}
37}
38build.args      CC="${configure.cc} ${archflags}"
39
40pre-destroot    {
41        reinplace "s|${prefix}|${destroot}${prefix}|g" "${worksrcpath}/Makefile"
42}
Note: See TracBrowser for help on using the repository browser.