2010-02-18 13:10:21 +00:00
|
|
|
#
|
2008-10-28 22:51:27 +00:00
|
|
|
# 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:=libsynce
|
|
|
|
PKG_VERSION:=0.12
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_RELEASE:=2
|
2008-10-28 22:51:27 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/synce
|
|
|
|
PKG_MD5SUM:=fd473d3deceda7912af4427dede1736f
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-02-02 18:54:24 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2008-10-28 22:51:27 +00:00
|
|
|
|
2010-10-08 19:37:43 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_INSTALL:=1
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2008-10-28 22:51:27 +00:00
|
|
|
|
|
|
|
define Package/libsynce
|
2011-02-02 18:54:24 +00:00
|
|
|
DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS)
|
2008-10-28 22:51:27 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=SynCE library
|
2009-06-13 17:01:55 +00:00
|
|
|
URL:=http://synce.sourceforge.net/
|
2008-10-28 22:51:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libsynce/description
|
|
|
|
The purpose of the SynCE project is to provide a means of communication with a
|
|
|
|
Windows CE or Pocket PC device from a computer running Linux, *BSD or other unices.
|
|
|
|
endef
|
|
|
|
|
|
|
|
MAKE_FLAGS += \
|
|
|
|
OPTIM="$(TARGET_CFLAGS)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2010-10-08 19:37:43 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)"
|
2008-10-28 22:51:27 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-hal-support=no \
|
|
|
|
--enable-odccm-support=no
|
|
|
|
|
|
|
|
CONFIGURE_VARS+= \
|
2011-02-02 18:54:24 +00:00
|
|
|
CPPFLAGS="$$$$CPPFLAGS -I$(ICONV_PREFIX)/include" \
|
|
|
|
CPPFLAGS="$$$$CPPFLAGS -I$(INTL_PREFIX)/include" \
|
|
|
|
LDFLAGS="$$$$LDFLAGS -L$(ICONV_PREFIX)/lib" \
|
|
|
|
LDFLAGS="$$$$LDFLAGS -L$(INTL_PREFIX)/lib" \
|
2008-10-28 22:51:27 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2008-10-28 22:51:27 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2008-10-28 22:51:27 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsynce.so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libsynce/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsynce.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libsynce))
|