source: trunk/dports/graphics/magicpoint/Portfile @ 20309

Last change on this file since 20309 was 8011, checked in by fenner, 15 years ago

Give configure LIBS= to make sure it can find libungif

Use "rm -rf" to remove man/ since it could be a real directory,
not a symlink.

Submitted by: fkr

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1# $Id: Portfile,v 1.3 2004/08/19 14:07:49 fenner Exp $
2PortSystem 1.0
3
4name            magicpoint
5version         1.10a
6categories      graphics
7maintainers     fenner@research.att.com
8homepage        http://www.mew.org/mgp/
9master_sites    ftp://ftp.mew.org/pub/mgp/
10checksums       md5 7a5d91b2b3bdabea704ee3cb6505d772
11description     An X11 based presentation tool.
12long_description Magic Point is an X11 based presentation tool. It \
13 is designed to make simple presentations easy while to make complicated \
14 presentations possible.  Its presentation file (whose suffix is \
15 typically .mgp) is just text so that you can create presentation \
16 files quickly with your favorite editor (e.g. Emacs, vi).
17
18#XXX this should be in portmain.tcl
19set localprefix ${prefix}
20prefix          ${x11prefix}
21
22patchfiles      patch-config.guess patch-image.h patch-new.c patch-parse.c \
23                patch-default.mgp patch-configure
24
25depends_lib     lib:libXft.2:Xft2 lib:libpng12.0:libpng \
26                lib:libungif.4:libungif
27
28# pkg-config should have both ${x11prefix} and ${prefix} hardcoded;
29# until it does, we let it know about ${x11prefix}.
30# LOCALPREFIX= is for configure to find libungif.
31configure.env   PKG_CONFIG_PATH=${x11prefix}/lib/pkgconfig LOCALPREFIX=${localprefix} LIBS=-L${localprefix}/lib
32configure.args  --enable-gif
33
34post-configure {
35        # unusual port: uses not just autoconf but also Imake
36        system "cd \"${worksrcpath}\" && xmkmf && make Makefiles"
37}
38
39# note destroot requires root due to use of "install -u root"
40
41destroot.target install install.man
42
43post-destroot {
44        # darwinports tries to force man pages into share/man;
45        # for X applications the man dir is simply man, so move them
46        system "cd \"${destroot}${prefix}\" && rm -rf man && mv share/man ."
47
48        # install some of the documentation and examples
49}
Note: See TracBrowser for help on using the repository browser.