2 # Copyright (C) 2010-2013 OpenWrt.org
3 # Copyright (C) 2010 Alfred E. Heggestad
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.creytiv.com
/pub
17 PKG_MD5SUM
:=c44bf87118b19464621fe459d69853d1
19 include $(INCLUDE_DIR
)/package.mk
24 DEPENDS
:=+libre
+libpthread
25 TITLE
:=Audio and video processing media library
26 URL
:=http
://www.creytiv.com
/
29 TARGET_CFLAGS
+= $(FPIC
)
32 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
33 LIBRE_MK
=$(STAGING_DIR
)/usr
/share
/re
/re.mk \
34 LIBRE_INC
=$(STAGING_DIR
)/usr
/include/re \
35 LIBRE_SO
=$(STAGING_DIR
)/usr
/lib \
37 EXTRA_CFLAGS
="$(TARGET_CFLAGS) -DOPENWRT" \
39 DESTDIR
="$(PKG_INSTALL_DIR)" \
40 SYSROOT
="$$$$($(FIND) $(TOOLCHAIN_DIR) -path '*/include/pthread.h' | sed -ne '1s#/include/pthread.h##p')" \
41 SYSROOT_ALT
="$(STAGING_DIR)/usr" \
43 CROSS_COMPILE
="$(TARGET_CROSS)" \
48 define Build
/InstallDev
49 $(INSTALL_DIR
) $(1)/usr
/include
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/rem
$(1)/usr
/include/
51 $(INSTALL_DIR
) $(1)/usr
/lib
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/librem.
{a
,so
} $(1)/usr
/lib
/
55 define Package
/librem
/install
56 rm -f
$(BUILD_DIR
)/$(PKG_NAME
)
57 ln
-sf
$(PKG_NAME
)-$(PKG_VERSION
) $(BUILD_DIR
)/$(PKG_NAME
)
58 $(INSTALL_DIR
) $(1)/usr
/lib
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/librem.so
$(1)/usr
/lib
/
62 $(eval
$(call BuildPackage
,librem
))