[43522] trunk/dports/x11

jeremyhu at macports.org jeremyhu at macports.org
Thu Dec 11 00:10:04 PST 2008


Revision: 43522
          http://trac.macports.org/changeset/43522
Author:   jeremyhu at macports.org
Date:     2008-12-11 00:09:58 -0800 (Thu, 11 Dec 2008)
Log Message:
-----------
New port: xorg-libXaw

Added Paths:
-----------
    trunk/dports/x11/xorg-libXaw/
    trunk/dports/x11/xorg-libXaw/Portfile
    trunk/dports/x11/xorg-libXaw/files/
    trunk/dports/x11/xorg-libXaw/files/dylib_versions.patch

Added: trunk/dports/x11/xorg-libXaw/Portfile
===================================================================
--- trunk/dports/x11/xorg-libXaw/Portfile	                        (rev 0)
+++ trunk/dports/x11/xorg-libXaw/Portfile	2008-12-11 08:09:58 UTC (rev 43522)
@@ -0,0 +1,38 @@
+# $Id$
+
+PortSystem 1.0
+
+name            xorg-libXaw
+version         1.0.5
+categories      x11 devel
+maintainers     jeremyhu
+description     X.org libXaw
+homepage        http://www.x.org
+platforms       darwin macosx
+long_description Athena Widgets toolkit
+master_sites     ${homepage}/pub/individual/lib/
+
+distname    libXaw-${version}
+checksums           md5     64e7782db4653cb57c7f7e660b2431c3 \
+                    sha1    fb436a6ed72aa577b4b73397465f1e06844b954f \
+                    rmd160  3374c0479fcb43dcae3decb7b91f3297d0c8277d
+
+use_bzip2   yes
+use_parallel_build      yes
+
+depends_build   port:pkgconfig \
+                port:xorg-kbproto \
+                port:xorg-xproto \
+                port:xorg-xextproto
+depends_lib     port:xorg-libsm \
+                port:xorg-libXext \
+                port:xorg-libXmu \
+                port:xpm \
+                port:xorg-libXt
+
+patchfiles	dylib_versions.patch
+
+livecheck.check regex
+livecheck.url   [lindex ${master_sites} 0]?C=M&O=D
+livecheck.regex libXaw-(\\d+(?:\\.\\d+)*)
+


Property changes on: trunk/dports/x11/xorg-libXaw/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/x11/xorg-libXaw/files/dylib_versions.patch
===================================================================
--- trunk/dports/x11/xorg-libXaw/files/dylib_versions.patch	                        (rev 0)
+++ trunk/dports/x11/xorg-libXaw/files/dylib_versions.patch	2008-12-11 08:09:58 UTC (rev 43522)
@@ -0,0 +1,116 @@
+diff --git a/Makefile.am b/Makefile.am
+index 6cdbece..265ccfc 100644
+--- Makefile.am
++++ Makefile.am
+@@ -6,14 +6,22 @@ pkgconfig_DATA =
+ if BUILD_XAW6
+ 
+ pkgconfig_DATA += xaw6.pc
+-DEFAULT_LIB = libXaw6.so
++if PLATFORM_DARWIN
++DEFAULT_LIB = libXaw.6. at LIBEXT@
++else
++DEFAULT_LIB = libXaw6. at LIBEXT@
++endif
+ 
+ endif
+ 
+ if BUILD_XAW7
+ 
+ pkgconfig_DATA += xaw7.pc
+-DEFAULT_LIB = libXaw7.so
++if PLATFORM_DARWIN
++DEFAULT_LIB = libXaw.7. at LIBEXT@
++else
++DEFAULT_LIB = libXaw7. at LIBEXT@
++endif
+ 
+ endif
+ 
+@@ -26,7 +34,7 @@ EXTRA_DIST = xaw6.pc.in \
+ 
+ if !PLATFORM_WIN32
+ install-exec-hook:
+-	cd $(DESTDIR)$(libdir) && rm -f libXaw.so && ln -s $(DEFAULT_LIB) libXaw.so
++	cd $(DESTDIR)$(libdir) && rm -f libXaw. at LIBEXT@ && ln -s $(DEFAULT_LIB) libXaw. at LIBEXT@
+ endif
+ 
+ MAINTAINERCLEANFILES=ChangeLog
+diff --git a/configure.ac b/configure.ac
+index 5633a46..9ba2414 100644
+--- configure.ac
++++ configure.ac
+@@ -35,16 +35,22 @@ xorglibxawname="libXaw"
+ 	rm -f libtool_
+ ])
+ 
+-# Win32 DLL rules are different.
++# OSX/Win32 rules are different.
++platform_win32=no
++platform_darwin=no
++LIBEXT=so
+ case $host_os in
+     cygwin*|mingw*)
+ 	platform_win32=yes
+ 	;;
+-    *)
+-	platform_win32=no
++    darwin*)
++	LIBEXT=dylib
++	platform_darwin=yes
+ 	;;
+ esac
++AC_SUBST(LIBEXT)
+ AM_CONDITIONAL(PLATFORM_WIN32, test "x$platform_win32" = "xyes")
++AM_CONDITIONAL(PLATFORM_DARWIN, test "x$platform_darwin" = "xyes")
+ 
+ # Whether to build Xaw6
+ 
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 85573ce..af4be50 100644
+--- src/Makefile.am
++++ src/Makefile.am
+@@ -77,8 +77,13 @@ libXaw6_la_LIBADD = $(XAW6_LIBS)
+ 
+ if !PLATFORM_WIN32
+ install-exec-hook::
+-	-rm -f $(DESTDIR)$(libdir)/libXaw.so.6
+-	(cd $(DESTDIR)$(libdir) && ln -s libXaw6.so.6 libXaw.so.6)
++if PLATFORM_DARWIN
++	-rm -f $(DESTDIR)$(libdir)/libXaw.6. at LIBEXT@
++	(cd $(DESTDIR)$(libdir) && ln -s libXaw6.6. at LIBEXT@ libXaw.6. at LIBEXT@)
++else
++	-rm -f $(DESTDIR)$(libdir)/libXaw. at LIBEXT@.6
++	(cd $(DESTDIR)$(libdir) && ln -s libXaw6. at LIBEXT@.6 libXaw. at LIBEXT@.6)
++endif
+ endif
+ 
+ endif
+@@ -101,8 +106,13 @@ libXaw7_la_LIBADD = $(XAW7_LIBS)
+ 
+ if !PLATFORM_WIN32
+ install-exec-hook::
+-	-rm -f $(DESTDIR)$(libdir)/libXaw.so.7
+-	(cd $(DESTDIR)$(libdir) && ln -s libXaw7.so.7 libXaw.so.7)
++if PLATFORM_DARWIN
++	-rm -f $(DESTDIR)$(libdir)/libXaw.7. at LIBEXT@
++	(cd $(DESTDIR)$(libdir) && ln -s libXaw7.7. at LIBEXT@ libXaw.7. at LIBEXT@)
++else
++	-rm -f $(DESTDIR)$(libdir)/libXaw. at LIBEXT@.7
++	(cd $(DESTDIR)$(libdir) && ln -s libXaw7. at LIBEXT@.7 libXaw. at LIBEXT@.7)
++endif
+ endif
+ 
+ endif
+diff --git a/xaw6.pc.in b/xaw6.pc.in
+index ba5a90a..537df32 100644
+--- xaw6.pc.in
++++ xaw6.pc.in
+@@ -7,6 +7,6 @@ Name: Xaw
+ Description: X Athena Widgets Library, version 6
+ Version: @PACKAGE_VERSION@
+ Requires: xproto xt xmu
+-Requires.private: x11 xext xt xmu xpm
++Requires.private: x11 xext xt xmu
+ Cflags: -I${includedir}
+ Libs: -L${libdir} -lXaw6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081211/69ddc04d/attachment-0001.html>


More information about the macports-changes mailing list