From a5f2fa457649dcae2a33a6f941a5e41bacf3f994 Mon Sep 17 00:00:00 2001 From: jolan Date: Wed, 22 Mar 2006 01:26:57 +0000 Subject: [PATCH] libebml-0.7.6, Extensible Binary Meta Language library --- textproc/libebml/Makefile | 26 +++++++++++ textproc/libebml/distinfo | 4 ++ .../libebml/patches/patch-make_linux_Makefile | 43 +++++++++++++++++++ textproc/libebml/pkg/DESCR | 4 ++ textproc/libebml/pkg/PFRAG.shared | 2 + textproc/libebml/pkg/PLIST | 31 +++++++++++++ 6 files changed, 110 insertions(+) create mode 100644 textproc/libebml/Makefile create mode 100644 textproc/libebml/distinfo create mode 100644 textproc/libebml/patches/patch-make_linux_Makefile create mode 100644 textproc/libebml/pkg/DESCR create mode 100644 textproc/libebml/pkg/PFRAG.shared create mode 100644 textproc/libebml/pkg/PLIST diff --git a/textproc/libebml/Makefile b/textproc/libebml/Makefile new file mode 100644 index 00000000000..9c85c85cd29 --- /dev/null +++ b/textproc/libebml/Makefile @@ -0,0 +1,26 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/03/22 01:26:57 jolan Exp $ + +COMMENT= "Extensible Binary Meta Language library" +DISTNAME= libebml-0.7.6 +SHARED_LIBS= ebml 0.0 +EXTRACT_SUFX= .tar.bz2 +CATEGORIES= textproc +MASTER_SITES= http://dl.matroska.org/downloads/libebml/ + +HOMEPAGE= http://www.matroska.org/ + +# LGPL +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes + +NO_REGRESS= Yes +USE_GMAKE= Yes + +WRKSRC= ${WRKDIST}/make/linux + +FAKE_FLAGS+= LIBebml_VERSION=${LIBebml_VERSION} +MAKE_FLAGS+= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" + +.include diff --git a/textproc/libebml/distinfo b/textproc/libebml/distinfo new file mode 100644 index 00000000000..02dcbd664a4 --- /dev/null +++ b/textproc/libebml/distinfo @@ -0,0 +1,4 @@ +MD5 (libebml-0.7.6.tar.bz2) = bb054799dfdf6bfa5dd2cf95416ff021 +RMD160 (libebml-0.7.6.tar.bz2) = d389dba159de1c8e2a783b3cee483dceff277801 +SHA1 (libebml-0.7.6.tar.bz2) = fe94f77d9f45529bce42ca16714882ce4d5ae843 +SIZE (libebml-0.7.6.tar.bz2) = 56317 diff --git a/textproc/libebml/patches/patch-make_linux_Makefile b/textproc/libebml/patches/patch-make_linux_Makefile new file mode 100644 index 00000000000..086c223ae64 --- /dev/null +++ b/textproc/libebml/patches/patch-make_linux_Makefile @@ -0,0 +1,43 @@ +$OpenBSD: patch-make_linux_Makefile,v 1.1.1.1 2006/03/22 01:26:57 jolan Exp $ +--- make/linux/Makefile.orig Tue Apr 19 01:56:06 2005 ++++ make/linux/Makefile Tue Mar 21 18:12:09 2006 +@@ -16,11 +16,11 @@ prefix=/boot/home/config + else + prefix=/usr/local + endif +-libdir=$(prefix)/lib +-includedir=$(prefix)/include/ebml ++libdir=$(PREFIX)/lib ++includedir=$(PREFIX)/include/ebml + + # Programs +-CXX=g++ ++#CXX=g++ + LD=$(CXX) + AR = ar rcvu + RANLIB = ranlib +@@ -52,7 +52,7 @@ LIBS= + # Names + LIBRARY=libebml.a + LIBRARY_SO=libebml.so +-LIBRARY_SO_VER=libebml.so.0 ++LIBRARY_SO_VER=libebml.so.${LIBebml_VERSION} + + # source-files + sources:=$(wildcard ${SRC_DIR}*$(EXTENSION)) +@@ -95,7 +95,6 @@ $(LIBRARY): $(objects) + + $(LIBRARY_SO): $(objects_so) + $(CXX) -shared -Wl,-soname,$(LIBRARY_SO_VER) -o $(LIBRARY_SO_VER) $(objects_so) +- ln -s $(LIBRARY_SO_VER) $(LIBRARY_SO) + + clean: + rm -f $(objects) $(objects_so) +@@ -139,7 +138,6 @@ install_staticlib: $(LIBRARY) + + install_sharedlib: $(LIBRARY_SO) + $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY_SO_VER) $(libdir) +- ln -s $(LIBRARY_SO_VER) $(libdir)/$(LIBRARY_SO) + + + ifneq ($(wildcard .depend),) diff --git a/textproc/libebml/pkg/DESCR b/textproc/libebml/pkg/DESCR new file mode 100644 index 00000000000..6914180cb80 --- /dev/null +++ b/textproc/libebml/pkg/DESCR @@ -0,0 +1,4 @@ +The libebml library allows to read and write files using EBML (the +Extensible Binary Meta Language), a binary pendant to XML. Using +libebml makes it easier to extend a file format without breaking support +in older parsers. diff --git a/textproc/libebml/pkg/PFRAG.shared b/textproc/libebml/pkg/PFRAG.shared new file mode 100644 index 00000000000..97bb23d41d9 --- /dev/null +++ b/textproc/libebml/pkg/PFRAG.shared @@ -0,0 +1,2 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2006/03/22 01:26:57 jolan Exp $ +@lib lib/libebml.so.${LIBebml_VERSION} diff --git a/textproc/libebml/pkg/PLIST b/textproc/libebml/pkg/PLIST new file mode 100644 index 00000000000..539685edf8f --- /dev/null +++ b/textproc/libebml/pkg/PLIST @@ -0,0 +1,31 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/03/22 01:26:57 jolan Exp $ +%%SHARED%% +include/ebml/ +include/ebml/Debug.h +include/ebml/EbmlBinary.h +include/ebml/EbmlConfig.h +include/ebml/EbmlContexts.h +include/ebml/EbmlCrc32.h +include/ebml/EbmlDate.h +include/ebml/EbmlDummy.h +include/ebml/EbmlElement.h +include/ebml/EbmlEndian.h +include/ebml/EbmlFloat.h +include/ebml/EbmlHead.h +include/ebml/EbmlId.h +include/ebml/EbmlMaster.h +include/ebml/EbmlSInteger.h +include/ebml/EbmlStream.h +include/ebml/EbmlString.h +include/ebml/EbmlSubHead.h +include/ebml/EbmlTypes.h +include/ebml/EbmlUInteger.h +include/ebml/EbmlUnicodeString.h +include/ebml/EbmlVersion.h +include/ebml/EbmlVoid.h +include/ebml/IOCallback.h +include/ebml/MemIOCallback.h +include/ebml/StdIOCallback.h +include/ebml/c/ +include/ebml/c/libebml_t.h +lib/libebml.a