[28798] trunk/dports/net/libfetch
source_changes at macosforge.org
source_changes at macosforge.org
Sun Sep 9 00:31:24 PDT 2007
Revision: 28798
http://trac.macosforge.org/projects/macports/changeset/28798
Author: afb at macports.org
Date: 2007-09-09 00:31:24 -0700 (Sun, 09 Sep 2007)
Log Message:
-----------
port upgrade from 4.6.2 (2001) to 6.2.0 (2007)
Modified Paths:
--------------
trunk/dports/net/libfetch/Portfile
trunk/dports/net/libfetch/files/patch-Makefile
Added Paths:
-----------
trunk/dports/net/libfetch/files/patch-common.h
Modified: trunk/dports/net/libfetch/Portfile
===================================================================
--- trunk/dports/net/libfetch/Portfile 2007-09-09 07:30:43 UTC (rev 28797)
+++ trunk/dports/net/libfetch/Portfile 2007-09-09 07:31:24 UTC (rev 28798)
@@ -3,34 +3,43 @@
PortSystem 1.0
name libfetch
-version 4.6.2-RELEASE
-revision 2
+version 6.2.0-RELEASE
categories net
-maintainers nomaintainer at macports.org
+maintainers afb at macports.org openmaintainer
description FreeBSD file fetching library
long_description These functions implement a high-level library for retrieving and \
uploading files using Uniform Resource Locators (URLs).
-platforms darwin
+platforms darwin freebsd
use_bzip2 yes
homepage http://www.freebsd.org/
master_sites macports
-checksums md5 81e390ad3bf8309f65c923a0c034e841
-patchfiles patch-Makefile patch-http.c
+checksums md5 0d0b59e7c13b7bce67bcdd13e1fde7d5
build.type bsd
worksrcdir ${name}
use_configure no
-set libver 3
-destroot { cd ${workpath}/${worksrcdir}
- xinstall -m 644 -c libfetch.${libver}.dylib \
- ${destroot}${prefix}/lib
- system "ln -sf libfetch.3.dylib ${destroot}${prefix}/lib/libfetch.dylib"
- xinstall -m 644 -c fetch.h ${destroot}${prefix}/include
- xinstall -m 644 -c fetch.3 ${destroot}${prefix}/share/man/man3 }
+set libver 4
+destroot {
+ xinstall -m 644 -c ${worksrcpath}/fetch.h ${destroot}${prefix}/include
+ xinstall -m 644 -c ${worksrcpath}/fetch.3 ${destroot}${prefix}/share/man/man3 }
platform darwin 6 {
patchfiles-append patch-ftp.c
}
platform darwin {
+ patchfiles patch-Makefile patch-common.h
build.env LDADD="-Wl,-install_name,${prefix}/lib/libfetch.${libver}.dylib"
+ pre-destroot {
+ xinstall -m 644 -c ${worksrcpath}/libfetch.${libver}.dylib \
+ ${destroot}${prefix}/lib
+ ln -sf libfetch.${libver}.dylib ${destroot}${prefix}/lib/libfetch.dylib
+ }
}
+
+platform freebsd {
+ pre-destroot {
+ xinstall -m 644 -c ${worksrcpath}/libfetch.so.${libver} \
+ ${destroot}${prefix}/lib
+ ln -sf libfetch.so.${libver} ${destroot}${prefix}/lib/libfetch.so
+ }
+}
Modified: trunk/dports/net/libfetch/files/patch-Makefile
===================================================================
--- trunk/dports/net/libfetch/files/patch-Makefile 2007-09-09 07:30:43 UTC (rev 28797)
+++ trunk/dports/net/libfetch/files/patch-Makefile 2007-09-09 07:31:24 UTC (rev 28798)
@@ -1,13 +1,24 @@
---- Makefile.orig Tue Aug 20 19:34:06 2002
-+++ Makefile Tue Aug 20 19:35:02 2002
-@@ -3,8 +3,8 @@
- MAINTAINER= des at freebsd.org
+--- Makefile.orig 2007-09-08 22:24:45.000000000 +0200
++++ Makefile 2007-09-08 22:29:04.000000000 +0200
+@@ -1,8 +1,8 @@
+ # $FreeBSD: src/lib/libfetch/Makefile,v 1.44.2.1 2005/07/22 17:29:05 kensmith Exp $
+
LIB= fetch
- WARNS?= 2
-CFLAGS+= -I.
-CFLAGS+= -DINET6
-+CFLAGS+= -no-cpp-precomp -fno-common -I. -DINET6 -D__FBSDID=__RCSID
-+CFLAGS+= -D__unused=__attribute__\(\(__unused__\)\)
++CFLAGS+= -no-cpp-precomp -fno-common -I.
++CFLAGS+= -DINET6 -D__FBSDID=__RCSID -D__unused=__attribute__\(\(__unused__\)\)
SRCS= fetch.c common.c ftp.c http.c file.c \
ftperr.h httperr.h
INCS= fetch.h
+@@ -11,8 +11,8 @@
+
+ .if !defined(NO_CRYPT) && !defined(NO_OPENSSL)
+ CFLAGS+= -DWITH_SSL
+-DPADD= ${LIBSSL} ${LIBCRYPTO}
+-LDADD= -lssl -lcrypto
++DPADD+= ${LIBSSL} ${LIBCRYPTO}
++LDADD+= -lssl -lcrypto
+ .endif
+
+ CSTD?= c99
Added: trunk/dports/net/libfetch/files/patch-common.h
===================================================================
--- trunk/dports/net/libfetch/files/patch-common.h (rev 0)
+++ trunk/dports/net/libfetch/files/patch-common.h 2007-09-09 07:31:24 UTC (rev 28798)
@@ -0,0 +1,14 @@
+--- common.h.orig 2004-09-21 20:35:20.000000000 +0200
++++ common.h 2007-09-08 22:33:03.000000000 +0200
+@@ -31,6 +31,11 @@
+ #ifndef _COMMON_H_INCLUDED
+ #define _COMMON_H_INCLUDED
+
++/* from <sys/cdefs.h> */
++#ifndef __DECONST
++#define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var))
++#endif
++
+ #define FTP_DEFAULT_PORT 21
+ #define HTTP_DEFAULT_PORT 80
+ #define FTP_DEFAULT_PROXY_PORT 21
Property changes on: trunk/dports/net/libfetch/files/patch-common.h
___________________________________________________________________
Name: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070909/eb1bdaec/attachment.html
More information about the macports-changes
mailing list