diff options
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/libxslt/Makefile | 14 | ||||
-rw-r--r-- | textproc/libxslt/distinfo | 4 | ||||
-rw-r--r-- | textproc/libxslt/files/patch-libexslt_crypto.c | 11 | ||||
-rw-r--r-- | textproc/libxslt/files/patch-libexslt_date.c | 11 |
4 files changed, 36 insertions, 4 deletions
diff --git a/textproc/libxslt/Makefile b/textproc/libxslt/Makefile index 0cee374e7354..e009accdd2f8 100644 --- a/textproc/libxslt/Makefile +++ b/textproc/libxslt/Makefile @@ -6,7 +6,7 @@ # PORTNAME= libxslt -PORTVERSION= 1.1.6 +PORTVERSION= 1.1.8 CATEGORIES= textproc gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/1.1 @@ -22,7 +22,8 @@ INSTALLS_SHLIB= yes USE_GNOME= gnomehack gnometarget libxml2 USE_REINPLACE= yes CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" MAN3= libexslt.3 libxslt.3 MAN1= xsltproc.1 @@ -45,11 +46,20 @@ PKGNAMESUFFIX= -nopython CONFIGURE_ARGS+= --with-mem-debug .endif +.if exists(${LOCALBASE}/lib/libgcrypt.so) +WITH_GCRYPT= yes +.endif + +.if defined(WITH_GCRYPT) +LIB_DEPENDS+= gcrypt.12:${PORTSDIR}/security/libgcrypt +.endif + pre-everything:: @${ECHO_MSG} "" @${ECHO_MSG} "Libxslt has the following additional tunables:" @${ECHO_MSG} "" @${ECHO_MSG} " WITHOUT_PYTHON=yes Turns off python support" + @${ECHO_MSG} " WITH_GCRYPT=yes Turns on libgcrypt support" @${ECHO_MSG} "" post-patch: diff --git a/textproc/libxslt/distinfo b/textproc/libxslt/distinfo index 83045b2a3077..129cffda7842 100644 --- a/textproc/libxslt/distinfo +++ b/textproc/libxslt/distinfo @@ -1,2 +1,2 @@ -MD5 (gnome2/libxslt-1.1.6.tar.bz2) = 8e90ee0c7fc95a36ca91365739509a5c -SIZE (gnome2/libxslt-1.1.6.tar.bz2) = 1754070 +MD5 (gnome2/libxslt-1.1.8.tar.bz2) = 1ccf127b5a62c5fe475aab36004e913e +SIZE (gnome2/libxslt-1.1.8.tar.bz2) = 1750533 diff --git a/textproc/libxslt/files/patch-libexslt_crypto.c b/textproc/libxslt/files/patch-libexslt_crypto.c new file mode 100644 index 000000000000..da62d0d1919f --- /dev/null +++ b/textproc/libxslt/files/patch-libexslt_crypto.c @@ -0,0 +1,11 @@ +--- libexslt/crypto.c.orig Mon Jul 5 19:33:58 2004 ++++ libexslt/crypto.c Mon Jul 5 19:35:25 2004 +@@ -315,6 +315,8 @@ + #define PLATFORM_MD5 GCRY_MD_MD5 + #define PLATFORM_SHA1 GCRY_MD_SHA1 + ++#include <sys/types.h> ++#include <sys/time.h> + #include <sys/select.h> /* needed by gcrypt.h 4 Jul 04 */ + #include <gcrypt.h> + diff --git a/textproc/libxslt/files/patch-libexslt_date.c b/textproc/libxslt/files/patch-libexslt_date.c new file mode 100644 index 000000000000..39d58268a06e --- /dev/null +++ b/textproc/libxslt/files/patch-libexslt_date.c @@ -0,0 +1,11 @@ +--- libexslt/date.c.orig Mon Jul 5 19:38:13 2004 ++++ libexslt/date.c Mon Jul 5 19:44:09 2004 +@@ -28,7 +28,7 @@ + #include "config.h" + #endif + +-#if HAVE_LOCALTIME_R /* _POSIX_SOURCE required by gnu libc */ ++#if defined(HAVE_LOCALTIME_R) && defined(__GLIBC__) /* _POSIX_SOURCE required by gnu libc */ + #define _POSIX_SOURCE + #endif + |