Update of /cvsroot/fink/dists/10.2/stable/main/finkinfo/libs
In directory sc8-pr-cvs1:/tmp/cvs-serv4569

Added Files:
        libpoll-1.2-3.info libpoll-1.2-3.patch 
Removed Files:
        libpoll-1.2-2.info libpoll-1.2-2.patch 
Log Message:
updated libpoll from unstable


--- NEW FILE: libpoll-1.2-3.info ---
Package: libpoll
Version: 1.2
Revision: 3
Depends: %n-shlibs (= %v-%r)
Replaces: %n (<< 1.1-4)
BuildDepends: fink (>= 0.9.9)
BuildDependsOnly: true
Source: http://www.clapper.org/software/poll/poll-emulator-%v.tar.gz
PatchScript: sed 's|@PREFIX@|%p|g' <%a/%f.patch | patch -p1
CompileScript: make
InstallScript: <<
  make install PREFIX=%i
  pushd %i/lib; ln -s libpoll.1.2.dylib libpoll.1.1.dylib; popd
<<
SplitOff: <<
  Package: %N-shlibs
  Replaces: %N (<< 1.1-4)
  Files: lib/%N.*.dylib
  Shlibs: %p/lib/libpoll.1.dylib 1.1.0 %n (>= 1.2-2)
  DocFiles: INSTALL LICENSE README
<<
DocFiles: INSTALL LICENSE README
Description: SysV poll(2) Emulation Library
DescDetail: <<
The libpoll package provides System V <sys/poll.h> compatibility for
BSD-like OSes.
<<
DescPackaging: <<
Had to redefine a few things to build but it worked just fine.

Copyright (c) 1995-2002 Brian M. Clapper
All rights reserved.

Redistribution and use in source and binary forms are permitted provided
that:

  (1) source distributions retain this entire copyright notice and comment;
  (2) modifications made to the software are prominently mentioned, and a
      copy of the original software (or a pointer to its location) are
      included; and
  (3) distributions including binaries display the following
      acknowledgement: "This product includes software developed by Brian M.
      Clapper, <bmc @ clapper . org>" in the documentation or other materials
      provided with the distribution.  The name of the author may not be used
      to endorse or promote products derived from this software without
      specific prior written permission.

THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
<<
License: BSD
Maintainer: Benjamin Reed <[EMAIL PROTECTED]>
Homepage: http://www.clapper.org/software/poll/

--- NEW FILE: libpoll-1.2-3.patch ---
diff -uNbr poll-emulator-1.2/Makefile poll-emulator-1.2-new/Makefile
--- poll-emulator-1.2/Makefile  Mon Mar  5 09:47:52 2001
+++ poll-emulator-1.2-new/Makefile      Sun Sep  8 15:27:42 2002
@@ -8,22 +8,42 @@
 #############################################################################
 
 # ---------------------------------------------------------------------------
-# Compilation and Linkage
+# Installation prefix
+
+PREFIX         = @PREFIX@
+LIBDIR         = $(PREFIX)/lib
+INCDIR         = $(PREFIX)/include/sys
+
+# ---------------------------------------------------------------------------
+# Platform-specific bits
 #
 # For GNU CC. Should work for FreeBSD, NetBSD, OpenBSD and BSD/OS
+#LINK_SHARED   = $(CC) -shared
+#SHLIB_EXT     = so
 
-CC             = gcc
-COMPILE_STATIC = $(CC) -c 
-COMPILE_SHARED = $(CC) -c -fPIC 
-LINK_SHARED    = $(CC) -shared
-RANLIB         = ranlib
+# on MacOSX, comment out the above lines, and uncomment these instead
+LINK_SHARED    = $(CC) -install_name $(PREFIX)/lib/$(LIB_NAME).$(MAJOR).$(SHLIB_EXT) \
+                       -compatibility_version $(COMPAT_VERSION) \
+                       -current_version $(VERSION) -dynamiclib
+SHLIB_EXT      = dylib
 
 # ---------------------------------------------------------------------------
-# Installation prefix
+# Compilation and Linkage
+#
 
-PREFIX         = /usr/local
-LIBDIR         = $(PREFIX)/lib 
-INCDIR         = $(PREFIX)/include
+MAJOR          = 1
+MINOR          = 2
+VERSION                = $(MAJOR).$(MINOR)
+COMPAT_VERSION = 1.1
+CC             = cc
+INSTALL                = install -c
+LIB_NAME       = libpoll
+SHLIB_NOVER    = $(LIB_NAME).$(SHLIB_EXT)
+SHLIB          = $(LIB_NAME).$(VERSION).$(SHLIB_EXT)
+LIB            = $(LIB_NAME).a
+COMPILE_STATIC = $(CC) -c 
+COMPILE_SHARED = $(CC) -c -fPIC 
+RANLIB         = ranlib
 
 #############################################################################
 # There should be no need to edit past this point
@@ -36,22 +56,23 @@
 .c.o:
        $(COMPILE_STATIC) $<
 
-SHLIB_NOVER    = libpoll.so 
-SHLIB          = $(SHLIB_NOVER).1
-LIB            = libpoll.a
-
 all:           libs
 libs:          $(SHLIB) $(LIB)
 test:          polltest
-install:
-               mkdir -p $(LIBDIR)
-               cp $(SHLIB) $(LIB) $(LIBDIR)
-               cd $(LIBDIR) && ln -s $(SHLIB) $(SHLIB_NOVER)
-               mkdir -p $(INCDIR)
-               cp poll.h $(INCDIR)
+
+dirs:
+               @echo "creating directories..."
+               $(INSTALL) -m 755 -d $(LIBDIR)
+               $(INSTALL) -m 755 -d $(INCDIR)
+
+install:       all dirs
+               $(INSTALL) -m 755 $(SHLIB) $(LIB) $(LIBDIR)
+               ln -sf $(SHLIB) $(LIBDIR)/$(LIB_NAME).$(MAJOR).$(SHLIB_EXT)
+               ln -sf $(SHLIB) $(LIBDIR)/$(SHLIB_NOVER)
+               $(INSTALL) -m 644 poll.h $(INCDIR)
 
 clean:
-               rm -f poll.po *.o libpoll.so* libpoll.a polltest
+               rm -f poll.po *.o $(LIB) $(SHLIB) $(SHLIB_NOVER) polltest
 
 $(SHLIB):      poll.po
                $(LINK_SHARED) -o $(SHLIB) poll.po

--- libpoll-1.2-2.info DELETED ---

--- libpoll-1.2-2.patch DELETED ---



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to