Initial .bep and .patch file for libmatroska, based on files from disreali.

This commit is contained in:
Scott McCreary
2010-09-27 02:00:48 +00:00
parent d00863a3ce
commit 172d107ac0
2 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
DESCRIPTION="libmatroska is a C++ libary to parse Matroska files."
HOMEPAGE="http://www.matroska.org/"
SRC_URI="http://dl.matroska.org/downloads/libmatroska/libmatroska-1.0.0.tar.bz2"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-libs/libebml >= 1.0.0"
CHECKSUM_MD5="4efcf3945b17a6f0320cf1aaa326a4de"
BUILD {
cd libmatroska-1.0.0/make/linux
make PREFIX=/boot/common
}
INSTALL {
cd libmatroska-1.0.0/make/linux
if [ -n ${DESTDIR} ];then
make install DESTDIR="${DESTDIR}"
else
make install
fi
}
LICENSE="GNU LGPL v2.1"
COPYRIGHT="2005-2009 CoreCodec, Inc."

View File

@@ -0,0 +1,47 @@
diff -urN libmatroska-1.0.0/make/linux/Makefile libmatroska-1.0.0-haiku/make/linux/Makefile
--- libmatroska-1.0.0/make/linux/Makefile 2010-06-04 08:46:29.017825792 +0000
+++ libmatroska-1.0.0-haiku/make/linux/Makefile 2010-09-27 01:57:28.436994048 +0000
@@ -13,6 +13,10 @@
# BeOS wants the libs and headers in /boot/home/config
ifeq (BeOS,$(shell uname -s))
prefix=/boot/home/config
+endif
+# Haiku wants the libs and headers in /boot/common
+ifeq (Haiku,$(shell uname -s))
+prefix:=$(shell finddir B_COMMON_DIRECTORY)
else
prefix=/usr/local
endif
@@ -153,23 +157,23 @@
endif
install_headers:
- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(includedir)
+ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(includedir)
for i in $(INCLUDE_DIR)/*.h; do \
- $(INSTALL) $(INSTALL_OPTS) $$i $(includedir) ; \
+ $(INSTALL) $(INSTALL_OPTS) $$i $(DESTDIR)$(includedir) ; \
done
- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(includedir)/c
+ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(includedir)/c
for i in $(INCLUDE_DIR)/c/*.h; do \
- $(INSTALL) $(INSTALL_OPTS) $$i $(includedir)/c ; \
+ $(INSTALL) $(INSTALL_OPTS) $$i $(DESTDIR)$(includedir)/c ; \
done
install_staticlib: $(LIBRARY)
- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(libdir)
- $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY) $(libdir)
+ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(libdir)
+ $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY) $(DESTDIR)$(libdir)
install_sharedlib: $(LIBRARY_SO)
- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(libdir)
- $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY_SO_VER) $(libdir)
- ln -fs $(LIBRARY_SO_VER) $(libdir)/$(LIBRARY_SO)
+ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(libdir)
+ $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY_SO_VER) $(DESTDIR)$(libdir)
+ ln -fs $(LIBRARY_SO_VER) $(DESTDIR)$(libdir)/$(LIBRARY_SO)
ifneq ($(wildcard .depend),)
include .depend