source: trunk/dports/devel/ois/Portfile

Last change on this file was 89553, checked in by ryandesign@…, 5 years ago

ois: also install OIS.pc file; see #33116

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 89553 2012-02-02 15:57:15Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               xcode 1.0
6
7name                    ois
8version                 1.3
9revision                1
10categories              devel
11platforms               darwin
12maintainers             nomaintainer
13license                 zlib
14
15description             An Object Oriented Input System (OIS)
16
17long_description        Object Oriented Input System (OIS) is meant \
18                        to be a cross platform, simple solution for \
19                        using all kinds of Input Devices (Keyboards, \
20                        Mice, Joysticks, etc) and feedback devices \
21                        (e.g. force feedback). Written in C++ using \
22                        Object Oriented Design pattern. \
23                        NOTE: \
24                        This version includes Cocoa 64-bit patches \
25                        based on a submission by David Rogers \
26                        (masterfalcon) to the OIS trac system. \
27                        These patches are required to use OIS + Ogre \
28                        in a 64-bit Mac OS environment.
29
30homepage                http://sourceforge.net/projects/wgois/
31master_sites            sourceforge:wgois/Source%20Release/${version}
32
33# Accommodate the funny version convention ois underscore v number dash number
34distname                ${name}_v[strsed ${version} {g/[.]/-/}]
35# However the extracted directory is ois dash v number dash number
36worksrcdir              ${name}-v[strsed ${version} {g/[.]/-/}]
37
38checksums               md5     9697fead17eac6025151cd2e1fca1518 \
39                        sha1    860f366f87e5103109e72724ce096ce8559c2d3d
40
41patchfiles              patch-Mac_XCode-2_2_OIS_xcodeproj_project.pbxproj.diff \
42                        patch-demos_OISConsole.cpp.diff \
43                        patch-includes_mac_CocoaHelpers.h.diff \
44                        patch-includes_mac_CocoaInputManager.h.diff \
45                        patch-includes_mac_CocoaJoyStick.h.diff \
46                        patch-includes_mac_CocoaKeyboard.h.diff \
47                        patch-includes_mac_CocoaMouse.h.diff \
48                        patch-includes_mac_MacHelpers.h.diff \
49                        patch-src_OISInputManager.cpp.diff \
50                        patch-src_mac_CocoaInputManager.mm.diff \
51                        patch-src_mac_CocoaJoystick.mm.diff \
52                        patch-src_mac_CocoaKeyboard.mm.diff \
53                        patch-src_mac_CocoaMouse.mm.diff \
54                        patch-src_mac_MacHIDManager.cpp.diff \
55                        patch-src_mac_MacHelpers.cpp.diff \
56                        patch-src_mac_MacInputManager.cpp.diff \
57                        patch-src_mac_MacKeyboard.cpp.diff \
58                        patch-src_mac_MacMouse.cpp.diff
59
60xcode.project           Mac/XCode-2.2/OIS.xcodeproj
61
62destroot {
63    delete ${worksrcpath}/includes/Makefile.am
64    set include_subdir OIS
65    copy ${worksrcpath}/includes ${destroot}${prefix}/include/${include_subdir}
66    xinstall -m 644 ${worksrcpath}/Mac/XCode-2.2/build/Release/libOIS.a \
67        ${destroot}${prefix}/lib
68   
69    set pc ${destroot}${prefix}/lib/pkgconfig/OIS.pc
70    xinstall -m 644 ${worksrcpath}/OIS.pc.in ${pc}
71    reinplace "s|@prefix@|${prefix}|g" ${pc}
72    reinplace "s|@exec_prefix@|\${prefix}|g" ${pc}
73    reinplace "s|@libdir@|\${exec_prefix}/lib|g" ${pc}
74    reinplace "s|@includedir@|\${prefix}/include|g" ${pc}
75    reinplace "s|@VERSION@|${version}|g" ${pc}
76    reinplace "s|@PACKAGE@|${include_subdir}|g" ${pc}
77}
Note: See TracBrowser for help on using the repository browser.