kernel: update linux 3.1 to 3.1.9
[openwrt.git] / package / pjsip / Makefile
index e9acaeb..b762808 100644 (file)
@@ -8,71 +8,96 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=pjsip
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=pjsip
-PKG_VERSION:=1.8.5
-PKG_RELEASE:=2
+PKG_VERSION:=1.10
+PKG_RELEASE:=3
 
 PKG_SOURCE:=pjproject-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://www.pjsip.org/release/$(PKG_VERSION)/
 
 PKG_SOURCE:=pjproject-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://www.pjsip.org/release/$(PKG_VERSION)/
-PKG_MD5SUM:=f9aa9e58b4d697245eb4bfa7d81a54a3
+PKG_MD5SUM:=e215d0637d3422d49a63c2cde6673951
+
 PKG_INSTALL:=1
 PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/pjproject-$(PKG_VERSION)
 
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/pjproject-$(PKG_VERSION)
+PKG_BUILD_DEPENDS:=TARGET_lantiq:kmod-ltq-tapi TARGET_lantiq:kmod-ltq-vmmc
 
 include $(INCLUDE_DIR)/package.mk
 
 
 include $(INCLUDE_DIR)/package.mk
 
-define Package/pjsip
+define Package/pjsip-template
   SECTION:=lib
   CATEGORY:=Libraries
   SECTION:=lib
   CATEGORY:=Libraries
-  TITLE:=Voip lib
   URL:=http://www.pjsip.org/
   URL:=http://www.pjsip.org/
-  DEPENDS:=+libuuid
   MAINTAINER:=John Crispin <blogic@openwrt.org>
   MAINTAINER:=John Crispin <blogic@openwrt.org>
+  TITLE:=pjsip-$(1)
+  VARIANT:=$(1)
+  DEPENDS:=+libuuid $(2)
 endef
 
 endef
 
-define Package/pjsip/config
-       source "$(SOURCE)/Config.in"
-endef
+CONFIGURE_PREFIX=/usr/pjsip-$(BUILD_VARIANT)
 
 
+ifeq ($(BUILD_VARIANT),oss)
 CONFIGURE_ARGS += \
 CONFIGURE_ARGS += \
+       --disable-floating-point \
        --enable-g711-codec \
        --disable-l16-codec \
        --disable-g722-codec \
        --disable-g7221-codec \
        --enable-g711-codec \
        --disable-l16-codec \
        --disable-g722-codec \
        --disable-g7221-codec \
+       --disable-gsm-codec \
        --disable-ilbc-coder \
        --disable-libsamplerate \
        --disable-ipp \
        --disable-ssl \
        --disable-ilbc-coder \
        --disable-libsamplerate \
        --disable-ipp \
        --disable-ssl \
-       $(call autoconf_bool,CONFIG_PJSIP_GSM,gsm-codec) \
-       $(call autoconf_bool,CONFIG_PJSIP_SPEEX,speex-aec) \
-       $(call autoconf_bool,CONFIG_PJSIP_OSS,oss) \
-       $(call autoconf_bool,CONFIG_PJSIP_SOUND,sound) \
-       $(call autoconf_bool,CONFIG_PJSIP_DEV_TAPI,ltq-tapi)
+       --enable-oss \
+       --enable-sound
+endif
 
 
-ifeq ($(CONFIG_PJSIP_DEV_TAPI),y)
+ifeq ($(BUILD_VARIANT),ltq-tapi)
+CONFIGURE_ARGS += \
+       --disable-floating-point \
+       --enable-g711-codec \
+       --disable-l16-codec \
+       --disable-g722-codec \
+       --disable-g7221-codec \
+       --disable-ilbc-coder \
+       --disable-gsm-codec \
+       --disable-libsamplerate \
+       --disable-ipp \
+       --disable-ssl \
+       --enable-sound \
+       --enable-ltq-tapi
 EXTRA_CFLAGS:=-I$(STAGING_DIR)/usr/include/drv_tapi -I$(STAGING_DIR)/usr/include/drv_vmmc
 endif
 
 EXTRA_CFLAGS:=-I$(STAGING_DIR)/usr/include/drv_tapi -I$(STAGING_DIR)/usr/include/drv_vmmc
 endif
 
+Package/pjsip-oss=$(call Package/pjsip-template,oss,)
+Package/pjsip-ltq-tapi=$(call Package/pjsip-template,ltq-tapi,@TARGET_lantiq +TARGET_lantiq:kmod-ltq-tapi +TARGET_lantiq:kmod-ltq-vmmc)
+
+define Build/Prepare
+       $(PKG_UNPACK)
+       $(Build/Patch)
+       $(CP) ./src/* $(PKG_BUILD_DIR)
+endef
+
 define Build/Configure
        (cd $(PKG_BUILD_DIR); autoconf aconfigure.ac > aconfigure)
        $(call Build/Configure/Default)
 endef
 
 define Build/Configure
        (cd $(PKG_BUILD_DIR); autoconf aconfigure.ac > aconfigure)
        $(call Build/Configure/Default)
 endef
 
-define Build/InstallDev
-       $(INSTALL_DIR) $(1)/usr/{include,lib}
-       $(CP) $(PKG_INSTALL_DIR)/usr/include/* \
-               $(1)/usr/include/
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/* \
-               $(1)/usr/lib/
+define Build/Compile
+       CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
+       CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
+       LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS) $(LIBGCC_S) -lm" \
+               $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(MAKE_PATH)
 endef
 
 endef
 
-define Package/pjsip/install
-       $(INSTALL_DIR) $(1)/usr/sbin
+define Build/InstallDev
+       $(INSTALL_DIR) $(1)/usr
+       $(CP) $(PKG_INSTALL_DIR)/usr/pjsip-$(BUILD_VARIANT) $(1)/usr
 endef
 
 endef
 
-define Build/Compile
-       CFLAGS="$(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
-       LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
-               $(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH)
+define Package/pjsip-$(BUILD_VARIANT)/install
+       echo "foo"
 endef
 
 endef
 
-$(eval $(call BuildPackage,pjsip))
+$(eval $(call BuildPackage,pjsip-oss))
+$(eval $(call BuildPackage,pjsip-ltq-tapi))
This page took 0.026591 seconds and 4 git commands to generate.