libpoll stable port information

Package: libpoll
Version: 1.4
Revision: 12
Depends: %n-shlibs (= %v-%r)
Replaces: %n (<< 1.1-4)
BuildDepends: fink (>= 0.24.12)
BuildDependsOnly: true
Source: http://www.clapper.org/software/poll/poll-emulator-%v.tar.gz
Source-MD5: b00a85c5c46873dc1c1078cdd3c101f3
PatchFile: %n.patch
PatchFile-MD5: 3e81999698a2d2dbaed0ff0345839a46
PatchScript: sed 's|@PREFIX@|%p|g' <%{PatchFile} | patch -p1
CompileScript: make PREFIX=%p
InstallScript: <<
make install PREFIX=%i
rm -rf %i/lib/libpoll.1.dylib
(cd %i/lib; ln -s libpoll.1.3.dylib libpoll.1.dylib)
(cd %i/lib; ln -s libpoll.1.dylib libpoll.1.1.dylib)
(cd %i/lib; ln -s libpoll.1.dylib libpoll.1.2.dylib)
rm -rf %i/include
rm -rf %i/lib/libpoll.dylib
rm -rf %i/lib/libpoll.a
install -d %i/share/doc/dummy
touch %i/share/doc/dummy/%N
<<
SplitOff: <<
Package: %N-shlibs
Replaces: %N (<< 1.1-4)
Files: lib/%N.*.dylib
Shlibs: %p/lib/libpoll.1.dylib 1.1.0 %n (>= 1.4-12)
DocFiles: INSTALL LICENSE README
<<
DocFiles: INSTALL LICENSE README
Description: SysV poll(2) Emulation Library
DescDetail: <<
The libpoll package provides System V compatibility for
BSD-like OSes.

libpoll is no longer necessary for Panther, this package is
a placeholder to make old packages happy.
<<
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, " 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
Homepage: http://www.clapper.org/software/poll/

libpoll stable port .patch

diff -uNbr poll-emulator-1.3/Makefile poll-emulator-1.3-new/Makefile
--- poll-emulator-1.3/Makefile Mon Sep 30 07:48:00 2002
+++ poll-emulator-1.3-new/Makefile Sun Nov 10 12:39:55 2002
@@ -18,21 +18,21 @@
# Platform-specific bits
#
# For GNU CC on *BSD. Should work for FreeBSD, NetBSD, OpenBSD and BSD/OS
-LINK_SHARED = $(CC) -shared
-SHLIB_EXT = so
-SHLIB_NOVER = $(LIB_NAME).$(SHLIB_EXT)
-SHLIB = $(LIB_NAME).$(SHLIB_EXT).$(VERSION)
-SHLIB_INSTALLED = $(LIBDIR)/$(LIB_NAME).$(SHLIB_EXT).$(MAJOR)
+#LINK_SHARED = $(CC) -shared
+#SHLIB_EXT = so
+#SHLIB_NOVER = $(LIB_NAME).$(SHLIB_EXT)
+#SHLIB = $(LIB_NAME).$(SHLIB_EXT).$(VERSION)
+#SHLIB_INSTALLED = $(LIBDIR)/$(LIB_NAME).$(SHLIB_EXT).$(MAJOR)

# Benjamin Reed :
# On Mac OS X, comment out the above lines, and uncomment these instead.
-#LINK_SHARED = $(CC) -install_name $(PREFIX)/lib/$(SHLIB) \
-# -compatibility_version $(COMPAT_VERSION) \
-# -current_version $(VERSION) -dynamiclib
-#SHLIB_EXT = dylib
-#SHLIB_NOVER = $(LIB_NAME).$(SHLIB_EXT)
-#SHLIB = $(LIB_NAME).$(VERSION).$(SHLIB_EXT)
-#SHLIB_INSTALLED= $(LIBDIR)/$(LIB_NAME).$(MAJOR).$(SHLIB_EXT)
+LINK_SHARED = $(CC) -install_name $(PREFIX)/lib/$(LIB_NAME).1.$(SHLIB_EXT) \
+ -compatibility_version $(COMPAT_VERSION) \
+ -current_version $(VERSION) -dynamiclib
+SHLIB_EXT = dylib
+SHLIB_NOVER = $(LIB_NAME).$(SHLIB_EXT)
+SHLIB = $(LIB_NAME).$(VERSION).$(SHLIB_EXT)
+SHLIB_INSTALLED= $(LIBDIR)/$(LIB_NAME).$(MAJOR).$(SHLIB_EXT)

# If you have a BSD-compatible install(1), use:
INSTALL = install -c
@@ -46,7 +46,7 @@
MAJOR = 1
MINOR = 4
VERSION = $(MAJOR).$(MINOR)
-COMPAT_VERSION = $(MAJOR)
+COMPAT_VERSION = 1.1
CC = cc
LIB_NAME = libpoll
LIB = $(LIB_NAME).a

libpoll _unstable_ port .patch