--- Makefile.orig	2010-02-21 02:57:49.000000000 -0600
+++ Makefile	2011-03-29 01:24:39.000000000 -0500
@@ -38,6 +38,7 @@
 INCLUDE =	-I/usr/include/libxml2 
 
 # CXX, CFLAGS, LIBS, LDFLAGS, LDFLAGSSO
+include		Makefile.macports
 include		Makefile.Defines.$(PLATFORM)
 
 # uncomment these lines if the library should be in its own namespace
@@ -74,6 +75,9 @@
 			sed -e "s/%VERSION%/$(VERSION)/g"| \
 			sed -e "s/%NAME%/$(NAME)/g" > pkgconfig/libSockets.pc 
 
+libSockets.dylib: libSockets.a
+		CC="$(CXX)" LDFLAGS="$(LDFLAGS) $(LIBS)" ./create-dylib.sh libSockets.a 1.0.0 $(PREFIX)/lib
+
 clean:
 		rm -f *.o *~ slask *.d $(PROGS) *.a *.so *.so.* */*~
 
@@ -92,7 +96,7 @@
 		@mkdir -p $(DESTDIR)/$(PREFIX)/lib
 		cp $(LIBNAME) $(DESTDIR)/$(PREFIX)/lib
 		@mkdir -p $(DESTDIR)/$(PREFIX)/include/$(NAME)
-		cp -a *.h $(DESTDIR)/$(PREFIX)/include/$(NAME)
+		cp -Rp *.h $(DESTDIR)/$(PREFIX)/include/$(NAME)
 		@rm -f $(DESTDIR)/$(PREFIX)/include/$(NAME)/SSLSocket.*
 		@rm -f $(DESTDIR)/$(PREFIX)/include/$(NAME)/HttpsGetSocket.*
 		@rm -f $(DESTDIR)/$(PREFIX)/include/$(NAME)/HttpsSocket.*