pjpoject: cleanups and fix for COPTS warnings
- Remove some unnecessary trailing slashes plus fix a whitespace. - Remove flags that do not seem to have a good reason to be there (anymore). - Add sed script to remove $(TARGET_CFLAGS) from pkgconfig file. This gets rid of the warnings in asterisk13 about COPTS duplication. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
c6493b543a
commit
630d92a0cf
1 changed files with 11 additions and 10 deletions
|
@ -14,7 +14,7 @@ PKG_VERSION:=2.6
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=pjproject-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=pjproject-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=http://www.pjsip.org/release/$(PKG_VERSION)/
|
PKG_SOURCE_URL:=http://www.pjsip.org/release/$(PKG_VERSION)
|
||||||
PKG_HASH:=2f5a1da1c174d845871c758bd80fbb580fca7799d3cfaa0d3c4e082b5161c7b4
|
PKG_HASH:=2f5a1da1c174d845871c758bd80fbb580fca7799d3cfaa0d3c4e082b5161c7b4
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=autoreconf
|
||||||
|
@ -31,13 +31,13 @@ define Package/pjproject/Default
|
||||||
SECTION:=lib
|
SECTION:=lib
|
||||||
CATEGORY:=Libraries
|
CATEGORY:=Libraries
|
||||||
SUBMENU:=Telephony
|
SUBMENU:=Telephony
|
||||||
URL:=http://www.pjsip.org/
|
URL:=http://www.pjsip.org
|
||||||
DEPENDS:=+libopenssl +libuuid +libstdcpp +libpthread
|
DEPENDS:=+libopenssl +libuuid +libstdcpp +libpthread
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/pjproject/install/lib
|
define Package/pjproject/install/lib
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/$(2).so* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/$(2).so* $(1)/usr/lib
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define PJSIPpackage
|
define PJSIPpackage
|
||||||
|
@ -54,7 +54,7 @@ $(call Package/pjproject/install/lib,$$(1),$2)
|
||||||
$$(eval $$(call BuildPackage,$(1)))
|
$$(eval $$(call BuildPackage,$(1)))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS+= \
|
||||||
$(if $(CONFIG_SOFT_FLOAT),--disable-floating-point) \
|
$(if $(CONFIG_SOFT_FLOAT),--disable-floating-point) \
|
||||||
--disable-ext-sound \
|
--disable-ext-sound \
|
||||||
--disable-ffmpeg \
|
--disable-ffmpeg \
|
||||||
|
@ -86,25 +86,26 @@ CONFIGURE_ARGS += \
|
||||||
--without-external-pa \
|
--without-external-pa \
|
||||||
--without-external-webrtc
|
--without-external-webrtc
|
||||||
|
|
||||||
TARGET_LDFLAGS+=-lc $(LIBGCC) -lm
|
TARGET_CFLAGS+=$(TARGET_CPPFLAGS)
|
||||||
TARGET_CFLAGS+=$(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)
|
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
|
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
PJPROJECT_LIBS = \
|
PJPROJECT_LIBS:= \
|
||||||
libpj libpjlib-util libpjmedia libpjnath libpjsip-simple \
|
libpj libpjlib-util libpjmedia libpjnath libpjsip-simple \
|
||||||
libpjsip-ua libpjsip libpjsua libpjsua2
|
libpjsip-ua libpjsip libpjsua libpjsua2
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/{include,lib}
|
$(INSTALL_DIR) $(1)/usr/{include,lib}
|
||||||
|
|
||||||
$(CP) -R $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
$(CP) -R $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
|
||||||
|
|
||||||
|
$(foreach m,$(PJPROJECT_LIBS),$(CP) $(PKG_INSTALL_DIR)/usr/lib/$(m)* $(1)/usr/lib;)
|
||||||
|
|
||||||
$(foreach m,$(PJPROJECT_LIBS),$(CP) $(PKG_INSTALL_DIR)/usr/lib/$(m)* $(1)/usr/lib/;)
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpjproject.pc $(1)/usr/lib/pkgconfig/
|
$(SED) 's|$(TARGET_CFLAGS)||' $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpjproject.pc
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpjproject.pc $(1)/usr/lib/pkgconfig
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call PJSIPpackage,libpj,libpj,+librt))
|
$(eval $(call PJSIPpackage,libpj,libpj,+librt))
|
||||||
|
|
Loading…
Reference in a new issue