Add synce-dccm from #4133
authorFlorian Fainelli <florian@openwrt.org>
Tue, 28 Oct 2008 22:52:38 +0000 (22:52 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 28 Oct 2008 22:52:38 +0000 (22:52 +0000)
SVN-Revision: 13069

net/synce-dccm/Makefile [new file with mode: 0644]

diff --git a/net/synce-dccm/Makefile b/net/synce-dccm/Makefile
new file mode 100644 (file)
index 0000000..3a140f5
--- /dev/null
@@ -0,0 +1,51 @@
+#
+# Copyright (C) 2008 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=synce-dccm
+PKG_VERSION:=0.9.1
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@SF/synce
+PKG_MD5SUM:=8818b71133049fe9c739166225aebe0c
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/synce-dccm
+  SECTION:=net
+  CATEGORY:=Network
+  DEPENDS:=+libsynce +libiconv
+  TITLE:=dccm for mobiles
+  URL:=http://sourceforge.net/projects/synce/
+endef
+
+define Package/synce-dccm/description
+Description TBD
+endef
+
+CONFIGURE_VARS+= \
+       CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libiconv/include" \
+       CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libintl/include" \
+       CPPFLAGS="$$$$CPPFLAGS -Wl,-rpath-link,$(STAGING_DIR)/usr/lib:$(STAGING_DIR)/usr/lib/libiconv/lib:$(STAGING_DIR)/usr/lib/libintl/lib" 
+
+define Build/Compile
+       $(MAKE) -C $(PKG_BUILD_DIR) \
+               DESTDIR="$(PKG_INSTALL_DIR)" \
+               LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
+               LIBS="-lsynce -liconv" \
+               all install
+endef
+
+define Package/synce-dccm/install
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dccm $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,synce-dccm))
+#LIBS="-Wl,-Bstatic,-lsynce,-Bdynamic,-liconv" \