Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
libcfu-0.03 (rebuild on x86_64)
  • Loading branch information
fd00 committed Nov 2, 2014
1 parent cfb5e47 commit b2ab001
Show file tree
Hide file tree
Showing 8 changed files with 117 additions and 114 deletions.
34 changes: 18 additions & 16 deletions libcfu/README
Expand Up @@ -6,18 +6,18 @@ linked list, self-extending strings, a configuration file parser, a simple
timer, and a thread queue.

Runtime requirements:
cygwin-1.7.17-1
cygwin-1.7.32-1
libcfu0-0.03-1bl2

Build requirements:
(besides corresponding -devel packages)
autoconf-10-1
automake-7-1
binutils-2.23.51-1
cygport-0.11.3-1
gawk-4.0.1-1
gcc4-core-4.5.3-3
libtool-2.4-1
make-3.82.90-1
autoconf-13-1
automake-9-1
binutils-2.24.51-6
cygport-0.17.0-1
gcc-core-4.9.0-1
libtool-2.4.2-5
make-4.0-2

Canonical website:
http://libcfu.sf.net/
Expand All @@ -28,17 +28,17 @@ Canonical download:
-------------------------------------------

Build instructions:
unpack libcfu-0.03-X-src.tar.bz2
unpack libcfu-0.03-X-src.tar.xz
if you use setup to install this src package, it will be
unpacked under /usr/src automatically
unpacked under /usr/src automatically
cd /usr/src
cygport ./libcfu-0.03-X.cygport all

This will create:
/usr/src/libcfu-0.03-X-src.tar.bz2
/usr/src/libcfu-0.03-X.tar.bz2
/usr/src/libcfu0-0.03-X.tar.bz2
/usr/src/libcfu-devel-0.03-X.tar.bz2
/usr/src/libcfu-0.03-X-src.tar.xz
/usr/src/libcfu-0.03-X.tar.xz
/usr/src/libcfu0-0.03-X.tar.xz
/usr/src/libcfu-devel-0.03-X.tar.xz

-------------------------------------------

Expand Down Expand Up @@ -66,13 +66,15 @@ Files included in the binary package:
/usr/include/cfutime.h
/usr/include/cfutypes.h
/usr/lib/libcfu.dll.a
/usr/lib/libcfu.la
/usr/share/info/libcfu.info.gz

------------------

Port Notes:

----- version 0.03-1bl2 -----
rebuild on x86_64

----- version 0.03-1bl1 -----
Initial release for Cygwin-1.7 by fd0 <http://fd0.hatenablog.jp/>

27 changes: 0 additions & 27 deletions libcfu/libcfu-0.03-1bl1.cygport

This file was deleted.

48 changes: 0 additions & 48 deletions libcfu/libcfu-0.03-1bl1.src.patch

This file was deleted.

37 changes: 37 additions & 0 deletions libcfu/libcfu-0.03-1bl2.cygport
@@ -0,0 +1,37 @@
HOMEPAGE="http://${PN}.sf.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

CATEGORY="Libs"
SUMMARY="Simple library of tools for developing multithreaded software"
DESCRIPTION="Libcfu is a library of tools that I have found useful, particularly when
developing multithreaded software. It currently includes a hash table, a
linked list, self-extending strings, a configuration file parser, a simple
timer, and a thread queue."

DIFF_EXCLUDES="
*.info
stamp-vti
version.texi
"

PKG_NAMES="
${PN}
${PN}0
${PN}-devel
"
libcfu_CONTENTS="
usr/share/doc
"
libcfu0_CONTENTS="
usr/bin/*.dll
"
libcfu_devel_CONTENTS="
usr/bin/*.exe
usr/include
usr/lib
usr/share/info
"

libcfu_SUMMARY="${SUMMARY} (licensing & readmes)"
libcfu0_SUMMARY="${SUMMARY} (runtime)"
libcfu_devel_SUMMARY="${SUMMARY} (development)"
62 changes: 62 additions & 0 deletions libcfu/libcfu-0.03-1bl2.src.patch
@@ -0,0 +1,62 @@
--- origsrc/libcfu-0.03/Makefile.am 2005-08-08 07:17:15.000000000 +0900
+++ src/libcfu-0.03/Makefile.am 2014-11-02 18:34:34.055175000 +0900
@@ -2,7 +2,7 @@ SUBDIRS = src examples doc
if DEBUG
AM_CFLAGS = -Wall -W -Werror -DCFU_VERSION="\"@VERSION@\"" -DCFU_DEBUG=1
else
-AM_CFLAGS = -Wall -W -Werror -DCFU_VERSION="\"@VERSION@\""
+AM_CFLAGS = -Wall -W -DCFU_VERSION="\"@VERSION@\""
endif

LIBCFU_TYPE_u_int=@LIBCFU_TYPE_u_int@
--- origsrc/libcfu-0.03/configure.ac 2005-08-15 09:16:15.000000000 +0900
+++ src/libcfu-0.03/configure.ac 2014-11-02 18:24:12.300292200 +0900
@@ -8,7 +8,7 @@ LIBCFU_CHECK_TYPE(u_int, unsigned int)
AC_SUBST(LIBCFU_TYPE_u_int)

AC_PROG_CC
-AC_PROG_RANLIB
+LT_INIT

dnl Check for pthread support
SAVECFLAGS="$CFLAGS"
--- origsrc/libcfu-0.03/examples/Makefile.am 2005-09-05 10:11:49.000000000 +0900
+++ src/libcfu-0.03/examples/Makefile.am 2014-11-02 18:34:41.212401600 +0900
@@ -1,10 +1,10 @@
noinst_PROGRAMS = hash_usage large_hash strings conf_example conf_example2 opt_example
-LDADD = -L$(top_srcdir)/src -lcfu
+LDADD = $(top_builddir)/src/libcfu.la

if DEBUG
AM_CFLAGS = -Wall -W -Werror -I$(top_srcdir)/include -DCFU_DEBUG=1
else
-AM_CFLAGS = -Wall -W -Werror -I$(top_srcdir)/include
+AM_CFLAGS = -Wall -W -I$(top_srcdir)/include
endif

AM_LDFLAGS = -Xlinker -rpath -Xlinker $(top_src_dir)/src
--- origsrc/libcfu-0.03/src/Makefile.am 2005-09-05 10:12:09.000000000 +0900
+++ src/libcfu-0.03/src/Makefile.am 2014-11-02 18:24:12.300292200 +0900
@@ -1,6 +1,9 @@
-lib_LIBRARIES = libcfu.a
-libcfu_a_SOURCES = cfuhash.c cfutime.c cfustring.c cfulist.c cfuconf.c cfuthread_queue.c cfu.c cfuopt.c
+lib_LTLIBRARIES = libcfu.la
+libcfu_la_SOURCES = cfuhash.c cfutime.c cfustring.c cfulist.c cfuconf.c cfuthread_queue.c cfu.c cfuopt.c
+libcfu_la_LDFLAGS = -no-undefined
bin_PROGRAMS = libcfu-config
+libcfu_config_SOURCES = libcfu-config.c
+libcfu_config_LDADD = libcfu.la

CFU_CONFIG_DEFINES = -DCFU_LIBDIR="\"@libdir@\"" -DCFU_LIBS="\"@LIBS@\"" -DCFU_INCLUDEDIR="\"@includedir@\"" -DCFU_PREFIX="\"@prefix@\"" -DCFU_EXEC_PREFIX="\"@exec_prefix@\""

@@ -19,10 +22,3 @@ include_HEADERS = $(top_srcdir)/include/
# libcfu_a_LDFLAGS = -lpthread
INCLUDES = -I$(top_srcdir)/include

-default: libcfu.a libcfu-config
-
-libcfu-config.o: libcfu-config.c
-
-libcfu-config: libcfu.a libcfu-config.o
- $(CC) $(CFLAGS) -o libcfu-config libcfu-config.o libcfu.a -pthread
-
8 changes: 0 additions & 8 deletions libcfu/libcfu-devel.hint

This file was deleted.

7 changes: 0 additions & 7 deletions libcfu/libcfu.hint

This file was deleted.

8 changes: 0 additions & 8 deletions libcfu/libcfu0.hint

This file was deleted.

0 comments on commit b2ab001

Please sign in to comment.