Ticket #28596: libsockets-2.3.9.5.diff
File libsockets-2.3.9.5.diff, 4.0 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago) |
---|
-
files/patch-Makefile.diff
1 --- Makefile 2008-10-07 19:12:46.000000000 +02002 +++ Makefile 20 08-11-01 21:07:04.000000000 +01003 @@ - 13,6 +13,7@@4 # include paths5 INCLUDE = -I/usr/include/libxml21 --- Makefile.orig 2010-02-21 02:57:49.000000000 -0600 2 +++ Makefile 2011-03-02 08:15:17.000000000 -0600 3 @@ -6,6 +6,8 @@ 4 # solaris8 5 PLATFORM = linux-x86-32 6 6 7 7 +include Makefile.macports 8 + 9 # 'Makefile.version' defines the $(VERSION) of the library, and also 10 # setup the OBJS variable - stuff to be compiled. 8 11 include Makefile.version 12 @@ -74,6 +76,9 @@ 13 sed -e "s/%VERSION%/$(VERSION)/g"| \ 14 sed -e "s/%NAME%/$(NAME)/g" > pkgconfig/libSockets.pc 9 15 10 # CXX, CFLAGS, LIBS11 @@ -39,6 +40,9 @@12 Sockets-config: Sockets-config.o13 $(CXX) -o $@ $^14 15 16 +libSockets.dylib: libSockets.a 16 17 + CC="$(CXX)" LDFLAGS="$(LDFLAGS) $(LIBS)" ./create-dylib.sh libSockets.a 1.0.0 $(PREFIX)/lib 17 18 + 18 19 clean: 19 rm -f *.o *~ slask *.d $(PROGS) *.a * /*~20 rm -f *.o *~ slask *.d $(PROGS) *.a *.so *.so.* */*~ 20 21 21 @@ - 57,7 +61,7 @@22 @@ -92,7 +97,7 @@ 22 23 @mkdir -p $(DESTDIR)/$(PREFIX)/lib 23 cp libSockets.a$(DESTDIR)/$(PREFIX)/lib24 @mkdir -p $(DESTDIR)/$(PREFIX)/include/ Sockets25 - cp -a *.h $(DESTDIR)/$(PREFIX)/include/ Sockets26 + cp -Rp *.h $(DESTDIR)/$(PREFIX)/include/ Sockets27 @rm -f $(DESTDIR)/$(PREFIX)/include/ Sockets/SSLSocket.*28 @rm -f $(DESTDIR)/$(PREFIX)/include/ Sockets/HttpsGetSocket.*29 @rm -f $(DESTDIR)/$(PREFIX)/include/ Sockets/HttpsSocket.*24 cp $(LIBNAME) $(DESTDIR)/$(PREFIX)/lib 25 @mkdir -p $(DESTDIR)/$(PREFIX)/include/$(NAME) 26 - cp -a *.h $(DESTDIR)/$(PREFIX)/include/$(NAME) 27 + cp -Rp *.h $(DESTDIR)/$(PREFIX)/include/$(NAME) 28 @rm -f $(DESTDIR)/$(PREFIX)/include/$(NAME)/SSLSocket.* 29 @rm -f $(DESTDIR)/$(PREFIX)/include/$(NAME)/HttpsGetSocket.* 30 @rm -f $(DESTDIR)/$(PREFIX)/include/$(NAME)/HttpsSocket.* -
files/patch-HttpRequest.cpp.diff
1 HttpRequest.cpp: In constructor 'HttpRequest::HttpRequest(FILE*)': 2 HttpRequest.cpp:74: error: 'environ' was not declared in this scope 3 --- HttpRequest.cpp.orig 2011-01-22 03:19:51.000000000 -0600 4 +++ HttpRequest.cpp 2011-03-02 08:20:42.000000000 -0600 5 @@ -63,6 +63,7 @@ 6 7 // -------------------------------------------------------------------------------------- 8 #ifndef _WIN32 9 +extern char** environ; 10 HttpRequest::HttpRequest(FILE *fil) : HttpTransaction() 11 , m_server_port(0) 12 , m_is_ssl(false) -
Portfile
3 3 PortSystem 1.0 4 4 5 5 name libsockets 6 version 2.3.3 7 revision 1 6 version 2.3.9.5 8 7 categories devel net 9 8 platforms darwin 10 9 maintainers mww … … 12 11 long_description ${description} 13 12 14 13 homepage http://www.alhem.net/Sockets/ 15 master_sites ${homepage}:tar \ 16 http://www.die.net/doc/linux/include/uuid/:header 17 distfiles uuid.h:header \ 18 Sockets-${version}.tar.gz:tar 19 checksums uuid.h sha1 c466612c98aea27d92423589018e1a69d480c793 \ 20 Sockets-${version}.tar.gz sha1 1344dcfcfd3cac4f28f041c9d8a0bcf5f4c3bab9 21 patchfiles patch-Makefile.diff patch-Makefile.Defines.macosx.diff 14 master_sites ${homepage} 22 15 16 checksums sha1 44ada63bdae7d58fab4904a73b9caaaadbb06912 \ 17 rmd160 5d05997c0560568a7105838f9d9de62b76695672 18 19 patchfiles patch-HttpRequest.cpp.diff patch-Makefile.diff patch-Makefile.Defines.macosx.diff 20 23 21 depends_lib port:openssl 24 22 25 worksrcdirSockets-${version}23 distname Sockets-${version} 26 24 27 extract.only Sockets-${version}.tar.gz28 25 post-extract { 29 file copy ${distpath}/uuid.h ${worksrcpath}30 26 xinstall -m 755 ${filespath}/configure ${worksrcpath} 31 27 xinstall -m 755 ${filespath}/create-dylib.sh ${worksrcpath} 32 28 }