[83219] trunk/dports/net/pwlib/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sun Aug 28 12:53:07 PDT 2011
Revision: 83219
http://trac.macports.org/changeset/83219
Author: ryandesign at macports.org
Date: 2011-08-28 12:53:03 -0700 (Sun, 28 Aug 2011)
Log Message:
-----------
pwlib: whitespace changes / reformatting / add modeline
Modified Paths:
--------------
trunk/dports/net/pwlib/Portfile
Modified: trunk/dports/net/pwlib/Portfile
===================================================================
--- trunk/dports/net/pwlib/Portfile 2011-08-28 17:41:25 UTC (rev 83218)
+++ trunk/dports/net/pwlib/Portfile 2011-08-28 19:53:03 UTC (rev 83219)
@@ -1,47 +1,59 @@
+# -*- 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
# $Id$
-PortSystem 1.0
+PortSystem 1.0
-name pwlib
-version 1.5.2
-revision 1
-distname ${name}_${version}
-categories net
-maintainers nomaintainer
-description PWLib libraries for openh323
-long_description \
- libraries for openh323
-homepage http://www.openh323.org
+name pwlib
+version 1.5.2
+revision 1
+categories net
+platforms darwin
+maintainers nomaintainer
+
+description PWLib libraries for openh323
+
+long_description libraries for openh323
+
+homepage http://www.openh323.org
# Disable this mirror, #23915
-#master_sites http://www.openh323.org/bin/
-master_sites sourceforge:openh323
-platforms darwin
-checksums md5 0fa33ba1b32b254abe0b731a52c0f2f9
-worksrcdir pwlib
-patchfiles patch-all.diff
-configure.args --mandir=${prefix}/share/man
-configure.env PWLIBDIR="${worksrcpath}" \
- CFLAGS="-I${prefix}/include" \
- LDFLAGS="-L${prefix}/lib" \
- CPPFLAGS="-I${prefix}/include" \
- LD_LIBRARY_PATH="${worksrcpath}/lib"
-depends_lib lib:libldap:openldap \
- lib:libsdl:libsdl \
- lib:libexpat:expat \
- lib:libssl:openssl
-build.target both
+#master_sites http://www.openh323.org/bin/
+master_sites sourceforge:openh323
+distname ${name}_${version}
+
+checksums md5 0fa33ba1b32b254abe0b731a52c0f2f9
+
+depends_lib lib:libldap:openldap \
+ lib:libsdl:libsdl \
+ lib:libexpat:expat \
+ lib:libssl:openssl
+
+worksrcdir pwlib
+
+patchfiles patch-all.diff
+
post-patch {
- reinplace "s|@@PREFIX@@|${prefix}|g" \
- ${worksrcpath}/src/ptlib/unix/Makefile \
- ${worksrcpath}/make/unix.mak
+ reinplace "s|@@PREFIX@@|${prefix}|g" \
+ ${worksrcpath}/src/ptlib/unix/Makefile \
+ ${worksrcpath}/make/unix.mak
}
+
+configure.args --mandir=${prefix}/share/man
+
+configure.env PWLIBDIR="${worksrcpath}" \
+ CFLAGS="-I${prefix}/include" \
+ LDFLAGS="-L${prefix}/lib" \
+ CPPFLAGS="-I${prefix}/include" \
+ LD_LIBRARY_PATH="${worksrcpath}/lib"
+
+build.target both
+
destroot {
- # sigh sigh sigh
- file mkdir ${destroot}${prefix}/include
- file mkdir ${destroot}${prefix}/bin
- file mkdir ${destroot}${prefix}/lib
- file mkdir ${destroot}${prefix}/share/pwlib
- system " cd ${worksrcpath} && \
+ # sigh sigh sigh
+ file mkdir ${destroot}${prefix}/include
+ file mkdir ${destroot}${prefix}/bin
+ file mkdir ${destroot}${prefix}/lib
+ file mkdir ${destroot}${prefix}/share/pwlib
+ system "cd ${worksrcpath} && \
chmod a+r lib/*dylib && \
cp -R lib/*dylib* ${destroot}${prefix}/lib/ && \
cp -R include/ptclib ${destroot}${prefix}/include/ && \
@@ -49,21 +61,28 @@
cp -R include/ptbuildopts.h ${destroot}${prefix}/include/ && \
cp -R include/ptlib.h ${destroot}${prefix}/include/ && \
cp tools/asnparser/obj*/asnparser ${destroot}${prefix}/bin/"
- file mkdir ${destroot}${prefix}/share/pwlib/make/
- system " cd ${worksrcpath} && \
+ file mkdir ${destroot}${prefix}/share/pwlib/make/
+ system "cd ${worksrcpath} && \
cp -R make/*.mak ${destroot}${prefix}/share/pwlib/make/ && \
cp make/ptlib-config ${destroot}${prefix}/bin/ && \
rm -rf ${destroot}${prefix}/include/ptlib/CVS/ && \
rm -rf ${destroot}${prefix}/include/ptlib/unix/CVS/ && \
rm -rf ${destroot}${prefix}/include/ptlib/unix/ptlib/CVS/ && \
rm -rf ${destroot}${prefix}/include/ptclib/CVS/ && \
- cd ${destroot}${prefix}/lib && ln -fs libpt_Darwin_ppc_r.dylib libpt.dylib && cd - && \
- chmod -R a+r ${destroot}${prefix}/include/ptlib ${destroot}${prefix}/include/ptclib \
- ${destroot}${prefix}/include/ptlib.h \
- ${destroot}${prefix}/share/pwlib ${destroot}${prefix}/include/ptbuildopts.h \
- ${destroot}${prefix}/include/ptlib.h && \
- chmod a+rx ${destroot}${prefix}/include/ptlib ${destroot}${prefix}/include/ptlib/unix \
- ${destroot}${prefix}/include/ptlib/unix/ptlib ${destroot}${prefix}/include/ptclib \
- ${destroot}${prefix}/bin/ptlib-config ${destroot}${prefix}/share/pwlib/make/ \
- "
+ cd ${destroot}${prefix}/lib && \
+ ln -fs libpt_Darwin_ppc_r.dylib libpt.dylib && \
+ cd - && \
+ chmod -R a+r ${destroot}${prefix}/include/ptlib \
+ ${destroot}${prefix}/include/ptclib \
+ ${destroot}${prefix}/include/ptlib.h \
+ ${destroot}${prefix}/share/pwlib \
+ ${destroot}${prefix}/include/ptbuildopts.h \
+ ${destroot}${prefix}/include/ptlib.h && \
+ chmod a+rx ${destroot}${prefix}/include/ptlib \
+ ${destroot}${prefix}/include/ptlib/unix \
+ ${destroot}${prefix}/include/ptlib/unix/ptlib \
+ ${destroot}${prefix}/include/ptclib \
+ ${destroot}${prefix}/bin/ptlib-config \
+ ${destroot}${prefix}/share/pwlib/make/ \
+ "
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110828/b5d798b8/attachment.html>
More information about the macports-changes
mailing list