librem: clean up Makefile
Remove unneeded variables, whitespaces, depends and trailing slashes. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
394e4bc773
commit
f38e08a904
1 changed files with 6 additions and 9 deletions
|
@ -28,9 +28,9 @@ define Package/librem
|
||||||
SUBMENU:=Telephony
|
SUBMENU:=Telephony
|
||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
CATEGORY:=Libraries
|
CATEGORY:=Libraries
|
||||||
DEPENDS:=+libre +libpthread
|
DEPENDS:=+libre
|
||||||
TITLE:=Audio and video processing media library
|
TITLE:=Audio and video processing media library
|
||||||
URL:=http://www.creytiv.com/
|
URL:=http://www.creytiv.com
|
||||||
endef
|
endef
|
||||||
|
|
||||||
MAKE_FLAGS+= \
|
MAKE_FLAGS+= \
|
||||||
|
@ -40,21 +40,18 @@ MAKE_FLAGS+= \
|
||||||
LIBRE_SO="$(STAGING_DIR)/usr/lib" \
|
LIBRE_SO="$(STAGING_DIR)/usr/lib" \
|
||||||
SYSROOT="$(shell $(FIND) $(TOOLCHAIN_DIR) -path '*/include/pthread.h' | sed -ne '1s|/include/pthread.h||p')" \
|
SYSROOT="$(shell $(FIND) $(TOOLCHAIN_DIR) -path '*/include/pthread.h' | sed -ne '1s|/include/pthread.h||p')" \
|
||||||
SYSROOT_ALT="$(STAGING_DIR)/usr" \
|
SYSROOT_ALT="$(STAGING_DIR)/usr" \
|
||||||
RELEASE=1 \
|
RELEASE=1
|
||||||
OS=linux
|
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/include
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/rem $(1)/usr/include/
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/rem $(1)/usr/include
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librem.{a,so} $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librem.{a,so} $(1)/usr/lib
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/librem/install
|
define Package/librem/install
|
||||||
rm -f $(BUILD_DIR)/$(PKG_NAME)
|
|
||||||
ln -sf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librem.so $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librem.so $(1)/usr/lib
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,librem))
|
$(eval $(call BuildPackage,librem))
|
||||||
|
|
Loading…
Reference in a new issue