[84514] trunk/dports/devel/poll-emulator
jmr at macports.org
jmr at macports.org
Tue Sep 27 08:13:04 PDT 2011
Revision: 84514
http://trac.macports.org/changeset/84514
Author: jmr at macports.org
Date: 2011-09-27 08:13:03 -0700 (Tue, 27 Sep 2011)
Log Message:
-----------
poll-emulator: update to 1.5.1, add license, support build_arch
Modified Paths:
--------------
trunk/dports/devel/poll-emulator/Portfile
trunk/dports/devel/poll-emulator/files/patch-Makefile.diff
Modified: trunk/dports/devel/poll-emulator/Portfile
===================================================================
--- trunk/dports/devel/poll-emulator/Portfile 2011-09-27 14:44:26 UTC (rev 84513)
+++ trunk/dports/devel/poll-emulator/Portfile 2011-09-27 15:13:03 UTC (rev 84514)
@@ -3,26 +3,33 @@
PortSystem 1.0
name poll-emulator
-version 1.4
-revision 1
+version 1.5.1
categories devel
+license BSD
maintainers nomaintainer
platforms darwin freebsd
-homepage http://www.clapper.org/software/poll/
-master_sites http://www.clapper.org/software/poll/
+homepage http://software.clapper.org/poll/
+master_sites https://github.com/bmc/poll/tarball/release-${version}?dummy=
description Library to provide poll(2) functionality
long_description This package implements the System V poll(2) system \
call for Unix-like systems that do not support poll.
-checksums md5 b00a85c5c46873dc1c1078cdd3c101f3
+checksums rmd160 7a093fb4043d3dd10ea3ac823ae0a7cc7a5bb647 \
+ sha256 ea8a3607c2c652dadae7b25fda430fb4360bf27f855876bb1db447bdc727da75
-patchfiles patch-Makefile.diff
+worksrcdir bmc-poll-dc153bb
+platform darwin {
+ patchfiles patch-Makefile.diff
+}
+
use_configure no
build.pre_args PREFIX=${prefix}
-build.args CC=${configure.cc}
+build.args CC=${configure.cc} \
+ CFLAGS="${configure.cflags} ${configure.cc_archflags}" \
+ LDFLAGS="${configure.ld_archflags}"
destroot.destdir PREFIX=${destroot}${prefix}
Modified: trunk/dports/devel/poll-emulator/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/poll-emulator/files/patch-Makefile.diff 2011-09-27 14:44:26 UTC (rev 84513)
+++ trunk/dports/devel/poll-emulator/files/patch-Makefile.diff 2011-09-27 15:13:03 UTC (rev 84514)
@@ -1,20 +1,19 @@
---- Makefile.old Mon Sep 30 07:48:00 2002
-+++ Makefile Mon Sep 30 08:33:11 2002
-@@ -18,21 +18,21 @@
- # Platform-specific bits
- #
+--- Makefile.orig 2011-08-30 07:28:10.000000000 +1000
++++ Makefile 2011-09-28 01:05:26.000000000 +1000
+@@ -23,11 +23,6 @@
+ ########
+
# 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)
+ ############
+ # Mac OS X #
+@@ -35,13 +30,13 @@
+
# Benjamin Reed <ranger at befunk.com>:
# On Mac OS X, comment out the above lines, and uncomment these instead.
-#LINK_SHARED = $(CC) -install_name $(PREFIX)/lib/$(SHLIB) \
@@ -24,7 +23,7 @@
-#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/$(SHLIB) \
++LINK_SHARED = $(CC) $(LDFLAGS) -install_name $(PREFIX)/lib/$(SHLIB) \
+ -compatibility_version $(COMPAT_VERSION) \
+ -current_version $(VERSION) -dynamiclib
+SHLIB_EXT = dylib
@@ -32,5 +31,22 @@
+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
+ # NOTE: If you have linkage problems on the Mac (see the POSSIBLE ISSUES
+ # section in the INSTALL file), uncomment the following definition. Be sure
+@@ -68,8 +63,8 @@
+ CC = cc
+ LIB_NAME = libpoll
+ LIB = $(LIB_NAME).a
+-COMPILE_STATIC = $(CC) -c
+-COMPILE_SHARED = $(CC) -c -fPIC
++COMPILE_STATIC = $(CC) $(CFLAGS) -c
++COMPILE_SHARED = $(CC) $(CFLAGS) -c -fPIC
+ RANLIB = ranlib
+ CPPFLAGS = $(POLL_RENAME)
+
+@@ -107,4 +102,4 @@
+ $(LIB): poll.o
+ ar rv $(LIB) poll.o
+ polltest: polltest.o
+- $(CC) -o polltest polltest.o $(LIB)
++ $(CC) $(CFLAGS) -o polltest polltest.o $(LIB)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110927/d8946cfa/attachment.html>
More information about the macports-changes
mailing list