Changeset 83219
- Timestamp:
- 08/28/11 12:53:03 (4 years ago)
- File:
-
- 1 edited
-
trunk/dports/net/pwlib/Portfile (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/net/pwlib/Portfile
r82846 r83219 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 1 2 # $Id$ 2 3 3 PortSystem 1.04 PortSystem 1.0 4 5 5 name pwlib 6 version 1.5.2 7 revision 1 8 distname ${name}_${version} 9 categories net 10 maintainers nomaintainer 11 description PWLib libraries for openh323 12 long_description \ 13 libraries for openh323 14 homepage http://www.openh323.org 6 name pwlib 7 version 1.5.2 8 revision 1 9 categories net 10 platforms darwin 11 maintainers nomaintainer 12 13 description PWLib libraries for openh323 14 15 long_description libraries for openh323 16 17 homepage http://www.openh323.org 15 18 # Disable this mirror, #23915 16 #master_sites http://www.openh323.org/bin/ 17 master_sites sourceforge:openh323 18 platforms darwin 19 checksums md5 0fa33ba1b32b254abe0b731a52c0f2f9 20 worksrcdir pwlib 21 patchfiles patch-all.diff 22 configure.args --mandir=${prefix}/share/man 23 configure.env PWLIBDIR="${worksrcpath}" \ 24 CFLAGS="-I${prefix}/include" \ 25 LDFLAGS="-L${prefix}/lib" \ 26 CPPFLAGS="-I${prefix}/include" \ 27 LD_LIBRARY_PATH="${worksrcpath}/lib" 28 depends_lib lib:libldap:openldap \ 29 lib:libsdl:libsdl \ 30 lib:libexpat:expat \ 31 lib:libssl:openssl 32 build.target both 19 #master_sites http://www.openh323.org/bin/ 20 master_sites sourceforge:openh323 21 distname ${name}_${version} 22 23 checksums md5 0fa33ba1b32b254abe0b731a52c0f2f9 24 25 depends_lib lib:libldap:openldap \ 26 lib:libsdl:libsdl \ 27 lib:libexpat:expat \ 28 lib:libssl:openssl 29 30 worksrcdir pwlib 31 32 patchfiles patch-all.diff 33 33 34 post-patch { 34 reinplace "s|@@PREFIX@@|${prefix}|g" \35 ${worksrcpath}/src/ptlib/unix/Makefile \36 ${worksrcpath}/make/unix.mak35 reinplace "s|@@PREFIX@@|${prefix}|g" \ 36 ${worksrcpath}/src/ptlib/unix/Makefile \ 37 ${worksrcpath}/make/unix.mak 37 38 } 39 40 configure.args --mandir=${prefix}/share/man 41 42 configure.env PWLIBDIR="${worksrcpath}" \ 43 CFLAGS="-I${prefix}/include" \ 44 LDFLAGS="-L${prefix}/lib" \ 45 CPPFLAGS="-I${prefix}/include" \ 46 LD_LIBRARY_PATH="${worksrcpath}/lib" 47 48 build.target both 49 38 50 destroot { 39 # sigh sigh sigh40 file mkdir ${destroot}${prefix}/include41 file mkdir ${destroot}${prefix}/bin42 file mkdir ${destroot}${prefix}/lib43 file mkdir ${destroot}${prefix}/share/pwlib44 system "cd ${worksrcpath} && \51 # sigh sigh sigh 52 file mkdir ${destroot}${prefix}/include 53 file mkdir ${destroot}${prefix}/bin 54 file mkdir ${destroot}${prefix}/lib 55 file mkdir ${destroot}${prefix}/share/pwlib 56 system "cd ${worksrcpath} && \ 45 57 chmod a+r lib/*dylib && \ 46 58 cp -R lib/*dylib* ${destroot}${prefix}/lib/ && \ … … 50 62 cp -R include/ptlib.h ${destroot}${prefix}/include/ && \ 51 63 cp tools/asnparser/obj*/asnparser ${destroot}${prefix}/bin/" 52 file mkdir ${destroot}${prefix}/share/pwlib/make/53 system "cd ${worksrcpath} && \64 file mkdir ${destroot}${prefix}/share/pwlib/make/ 65 system "cd ${worksrcpath} && \ 54 66 cp -R make/*.mak ${destroot}${prefix}/share/pwlib/make/ && \ 55 67 cp make/ptlib-config ${destroot}${prefix}/bin/ && \ … … 58 70 rm -rf ${destroot}${prefix}/include/ptlib/unix/ptlib/CVS/ && \ 59 71 rm -rf ${destroot}${prefix}/include/ptclib/CVS/ && \ 60 cd ${destroot}${prefix}/lib && ln -fs libpt_Darwin_ppc_r.dylib libpt.dylib && cd - && \ 61 chmod -R a+r ${destroot}${prefix}/include/ptlib ${destroot}${prefix}/include/ptclib \ 62 ${destroot}${prefix}/include/ptlib.h \ 63 ${destroot}${prefix}/share/pwlib ${destroot}${prefix}/include/ptbuildopts.h \ 64 ${destroot}${prefix}/include/ptlib.h && \ 65 chmod a+rx ${destroot}${prefix}/include/ptlib ${destroot}${prefix}/include/ptlib/unix \ 66 ${destroot}${prefix}/include/ptlib/unix/ptlib ${destroot}${prefix}/include/ptclib \ 67 ${destroot}${prefix}/bin/ptlib-config ${destroot}${prefix}/share/pwlib/make/ \ 68 " 72 cd ${destroot}${prefix}/lib && \ 73 ln -fs libpt_Darwin_ppc_r.dylib libpt.dylib && \ 74 cd - && \ 75 chmod -R a+r ${destroot}${prefix}/include/ptlib \ 76 ${destroot}${prefix}/include/ptclib \ 77 ${destroot}${prefix}/include/ptlib.h \ 78 ${destroot}${prefix}/share/pwlib \ 79 ${destroot}${prefix}/include/ptbuildopts.h \ 80 ${destroot}${prefix}/include/ptlib.h && \ 81 chmod a+rx ${destroot}${prefix}/include/ptlib \ 82 ${destroot}${prefix}/include/ptlib/unix \ 83 ${destroot}${prefix}/include/ptlib/unix/ptlib \ 84 ${destroot}${prefix}/include/ptclib \ 85 ${destroot}${prefix}/bin/ptlib-config \ 86 ${destroot}${prefix}/share/pwlib/make/ \ 87 " 69 88 }
Note: See TracChangeset
for help on using the changeset viewer.

