[31958] trunk/dports/security/afflib
ricci at macports.org
ricci at macports.org
Wed Dec 12 10:30:59 PST 2007
Revision: 31958
http://trac.macosforge.org/projects/macports/changeset/31958
Author: ricci at macports.org
Date: 2007-12-12 10:30:58 -0800 (Wed, 12 Dec 2007)
Log Message:
-----------
fix library install with auto* improvements, now creates a dylib as well (thanks to pogma@)
improve the configure.ac to shorten the configure script (thanks again to pogma@)
use autoreconf after the above patches
Modified Paths:
--------------
trunk/dports/security/afflib/Portfile
Added Paths:
-----------
trunk/dports/security/afflib/files/
trunk/dports/security/afflib/files/patch-configure.ac.diff
trunk/dports/security/afflib/files/patch-lib-Makefile.am.diff
Modified: trunk/dports/security/afflib/Portfile
===================================================================
--- trunk/dports/security/afflib/Portfile 2007-12-12 18:20:15 UTC (rev 31957)
+++ trunk/dports/security/afflib/Portfile 2007-12-12 18:30:58 UTC (rev 31958)
@@ -4,7 +4,7 @@
name afflib
version 3.0.4
-revision 0
+revision 1
categories security
maintainers opendarwin.org at darkart.com
description The Advanced Forensic Format
@@ -23,11 +23,17 @@
use_bzip2 no
+autoconf.cmd autoreconf
+use_autoconf yes
+
depends_lib port:libewf \
port:openssl \
port:readline \
port:zlib
+patchfiles patch-configure.ac.diff \
+ patch-lib-Makefile.am.diff
+
configure.args --enable-fuse=no \
--enable-s3=no \
--with-ssl=${prefix} \
@@ -36,8 +42,6 @@
pre-destroot {
## install things that don't get automatically installed (say, libs, headers...)
## really the auto* stuff needs to be reworked, below is a band-aid
- xinstall -d ${destroot}/${prefix}/lib
- xinstall -m 0644 ${worksrcpath}/lib/.libs/libafflib.a ${destroot}/${prefix}/lib/
xinstall -d ${destroot}/${prefix}/include/${name}/lib
foreach header [glob ${worksrcpath}/lib/*.h] {
xinstall -m 0644 $header ${destroot}${prefix}/include/${name}/lib
Added: trunk/dports/security/afflib/files/patch-configure.ac.diff
===================================================================
--- trunk/dports/security/afflib/files/patch-configure.ac.diff (rev 0)
+++ trunk/dports/security/afflib/files/patch-configure.ac.diff 2007-12-12 18:30:58 UTC (rev 31958)
@@ -0,0 +1,77 @@
+--- configure.ac 2007-11-26 23:38:55.000000000 -0800
++++ configure.ac 2007-12-10 19:15:51.000000000 -0800
+@@ -57,39 +57,41 @@
+
+
+ # Specific headers that I plan to use
+-AC_CHECK_HEADERS([sysexits.h])
+-AC_CHECK_HEADERS([assert.h])
+-AC_CHECK_HEADERS([arpa/inet.h])
+-AC_CHECK_HEADERS([ctype.h])
+-AC_CHECK_HEADERS([err.h])
+-AC_CHECK_HEADERS([errno.h])
+-AC_CHECK_HEADERS([fcntl.h])
+-AC_CHECK_HEADERS([getopt.h])
+-AC_CHECK_HEADERS([inttypes.h])
+-AC_CHECK_HEADERS([linux/fs.h])
+-AC_CHECK_HEADERS([dmalloc.h])
+-AC_CHECK_HEADERS([malloc.h])
+-AC_CHECK_HEADERS([netinet/in.h])
+-AC_CHECK_HEADERS([signal.h])
+-AC_CHECK_HEADERS([stdio.h])
+-AC_CHECK_HEADERS([stdlib.h])
+-AC_CHECK_HEADERS([string.h])
+-AC_CHECK_HEADERS([sys/cdefs.h])
+-AC_CHECK_HEADERS([sys/param.h])
+-AC_CHECK_HEADERS([sys/stat.h])
+-AC_CHECK_HEADERS([sys/types.h])
+-AC_CHECK_HEADERS([sys/disk.h])
+-AC_CHECK_HEADERS([sys/ioctl.h])
+-AC_CHECK_HEADERS([sys/ioctl.h])
+-AC_CHECK_HEADERS([sys/param.h])
+-AC_CHECK_HEADERS([sys/socket.h])
+-AC_CHECK_HEADERS([sys/time.h])
+-AC_CHECK_HEADERS([sys/vfs.h])
+-AC_CHECK_HEADERS([time.h])
+-AC_CHECK_HEADERS([term.h])
+-AC_CHECK_HEADERS([ncurses/term.h])
+-AC_CHECK_HEADERS([unistd.h])
+-AC_CHECK_HEADERS([zlib.h])
++AC_CHECK_HEADERS([ \
++ sysexits.h \
++ assert.h \
++ arpa/inet.h \
++ ctype.h \
++ err.h \
++ errno.h \
++ fcntl.h \
++ getopt.h \
++ inttypes.h \
++ linux/fs.h \
++ dmalloc.h \
++ malloc.h \
++ netinet/in.h \
++ signal.h \
++ stdio.h \
++ stdlib.h \
++ string.h \
++ sys/cdefs.h \
++ sys/param.h \
++ sys/stat.h \
++ sys/types.h \
++ sys/disk.h \
++ sys/ioctl.h \
++ sys/ioctl.h \
++ sys/param.h \
++ sys/socket.h \
++ sys/time.h \
++ sys/vfs.h \
++ time.h \
++ term.h \
++ ncurses/term.h \
++ unistd.h \
++ zlib.h \
++])
+
+ AC_CHECK_MEMBER([struct sockaddr_in.sin_len],
+ [ AC_DEFINE(HAVE_SOCKADDR_SIN_LEN, 1, [Do we have sockaddr.sin_len?]) ],
Added: trunk/dports/security/afflib/files/patch-lib-Makefile.am.diff
===================================================================
--- trunk/dports/security/afflib/files/patch-lib-Makefile.am.diff (rev 0)
+++ trunk/dports/security/afflib/files/patch-lib-Makefile.am.diff 2007-12-12 18:30:58 UTC (rev 31958)
@@ -0,0 +1,11 @@
+--- lib/Makefile.am 2007-11-26 19:38:07.000000000 -0800
++++ lib/Makefile.am 2007-12-11 10:26:11.000000000 -0800
+@@ -35,7 +35,7 @@
+ @top_srcdir@/lzma443/C/Common/Vector.cpp
+
+
+-noinst_LTLIBRARIES = libafflib.la
++lib_LTLIBRARIES = libafflib.la
+ libafflib_la_SOURCES = aff_db.cpp aff_db.h aff_toc.cpp \
+ afflib.cpp afflib.h afflib_i.h afflib_os.cpp \
+ afflib_pages.cpp afflib_stream.cpp afflib_util.cpp \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071212/16c40f69/attachment.html
More information about the macports-changes
mailing list