From 4cf211193b9a4a8de295153d34eb45452802f80d Mon Sep 17 00:00:00 2001 From: ijliao Date: Mon, 19 Jun 2006 01:34:37 +0000 Subject: upgrade to 0.38 --- misc/chmlib/Makefile | 7 ++-- misc/chmlib/distinfo | 6 ++-- misc/chmlib/files/patch-Makefile.in | 69 ------------------------------------- misc/chmlib/files/patch-ltmain.sh | 15 ++++++++ misc/chmlib/pkg-descr | 2 +- misc/chmlib/pkg-plist | 2 +- 6 files changed, 23 insertions(+), 78 deletions(-) delete mode 100644 misc/chmlib/files/patch-Makefile.in create mode 100644 misc/chmlib/files/patch-ltmain.sh (limited to 'misc') diff --git a/misc/chmlib/Makefile b/misc/chmlib/Makefile index a1c197bca499..968e86ddb90a 100644 --- a/misc/chmlib/Makefile +++ b/misc/chmlib/Makefile @@ -7,19 +7,18 @@ # PORTNAME= chmlib -PORTVERSION= 0.37.4 +PORTVERSION= 0.38 CATEGORIES= misc -MASTER_SITES= http://66.93.236.84/~jedwin/projects/chmlib/ -EXTRACT_SUFX= .tgz +MASTER_SITES= http://morte.jedrea.com/~jedwin/projects/chmlib/ MAINTAINER= ports@FreeBSD.org COMMENT= A library for dealing with Microsoft ITSS/CHM format files +USE_BZIP2= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-io64 --disable-pread --exec-prefix=${PREFIX} USE_GMAKE= yes INSTALLS_SHLIB= yes -WRKSRC= ${WRKDIR}/${PORTNAME}-0.37 post-patch: @${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS}," ${WRKSRC}/configure diff --git a/misc/chmlib/distinfo b/misc/chmlib/distinfo index ddc623a5b1a0..33e4597c0caf 100644 --- a/misc/chmlib/distinfo +++ b/misc/chmlib/distinfo @@ -1,3 +1,3 @@ -MD5 (chmlib-0.37.4.tgz) = 458c14c7a38c441263e6984924a05b24 -SHA256 (chmlib-0.37.4.tgz) = 9c6dde31330b77e760600c187c8279f38bc8b7fada8e03bb9cf5cfd9f91d2aab -SIZE (chmlib-0.37.4.tgz) = 363315 +MD5 (chmlib-0.38.tar.bz2) = d72661526aaea377ed30e9f58a086964 +SHA256 (chmlib-0.38.tar.bz2) = 086a8a5d12c1dbacaf4ccd74b5a506dc834573c2a49e2ed6cfb2bd9890834b59 +SIZE (chmlib-0.38.tar.bz2) = 262494 diff --git a/misc/chmlib/files/patch-Makefile.in b/misc/chmlib/files/patch-Makefile.in deleted file mode 100644 index 7b722c5bd062..000000000000 --- a/misc/chmlib/files/patch-Makefile.in +++ /dev/null @@ -1,69 +0,0 @@ ---- Makefile.in.orig Wed Oct 26 16:13:45 2005 -+++ Makefile.in Thu Oct 27 21:33:48 2005 -@@ -30,7 +31,7 @@ - src/%.lo: $(srcdir)/src/%.c - ${LIBTOOL} --mode=compile ${CC} -c -o $@ $^ ${CFLAGS} - --src/libchm.la: src/chm_lib.lo src/lzx.lo -+src/libchm.la: src/chm_lib.lo src/lzx.lo src/az_chmlib_add.lo - ${LIBTOOL} --mode=link ${CC} -o $@ $^ ${LDFLAGS} -rpath $(libdir) - - install: src/libchm.la -patch-az_chmlib_add.c ---- /dev/null Fri Feb 25 18:33:00 2005 -+++ src/az_chmlib_add.c Fri Feb 25 18:29:45 2005 -@@ -0,0 +1,54 @@ -+#include -+#include "chm_lib.h" -+ -+/* -+ * callback function for enumerate API -+ */ -+int _get_name(struct chmFile *h, -+ chmUnitInfo *ui, -+ void *context) -+{ -+ int i; -+ -+ -+ chm_dir *dirp = (chm_dir *)context; -+ -+ dirp->info=realloc(dirp->info,(dirp->nentries+1)*sizeof (char*)); -+ -+ dirp->info[dirp->nentries] = malloc(sizeof(ui->path)); -+ strcpy(dirp->info[dirp->nentries], ui->path); -+ -+ dirp->nentries++; -+ return CHM_ENUMERATOR_CONTINUE; -+} -+ -+chm_dir get_names(struct chmFile *h) -+//note: you should free() dir.info and all dir.info[i] in caller -+{ -+ chm_dir dir; -+ -+ dir.nentries=0; -+ dir.info = NULL; -+ -+ if (! chm_enumerate(h, -+ CHM_ENUMERATE_ALL, -+ _get_name, -+ (void *)&dir)) -+ printf(" *** ERROR ***\n"); -+ -+ return dir; -+} -+ -+ -+int main() -+{ -+ int i; -+ -+ struct chmFile *h = chm_open("/home/az/new/txt/chm/reg.chm"); -+ chm_dir dir=get_names(h); -+ for(i=0;i