packages: Update s-lang library to 2.2.4
[openwrt/svn-archive/archive.git] / libs / libsynce / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libsynce
11 PKG_VERSION:=0.12
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/synce
16 PKG_MD5SUM:=fd473d3deceda7912af4427dede1736f
17
18 include $(INCLUDE_DIR)/package.mk
19 include $(INCLUDE_DIR)/nls.mk
20
21 PKG_BUILD_PARALLEL:=1
22 PKG_INSTALL:=1
23 PKG_FIXUP:=libtool
24
25 define Package/libsynce
26 DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS)
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=SynCE library
30 URL:=http://synce.sourceforge.net/
31 endef
32
33 define Package/libsynce/description
34 The purpose of the SynCE project is to provide a means of communication with a
35 Windows CE or Pocket PC device from a computer running Linux, *BSD or other unices.
36 endef
37
38 MAKE_FLAGS += \
39 OPTIM="$(TARGET_CFLAGS)" \
40 CFLAGS="$(TARGET_CFLAGS)" \
41 DESTDIR="$(PKG_INSTALL_DIR)"
42
43 CONFIGURE_ARGS += \
44 --enable-hal-support=no \
45 --enable-odccm-support=no
46
47 CONFIGURE_VARS+= \
48 CPPFLAGS="$$$$CPPFLAGS -I$(ICONV_PREFIX)/include" \
49 CPPFLAGS="$$$$CPPFLAGS -I$(INTL_PREFIX)/include" \
50 LDFLAGS="$$$$LDFLAGS -L$(ICONV_PREFIX)/lib" \
51 LDFLAGS="$$$$LDFLAGS -L$(INTL_PREFIX)/lib" \
52
53 define Build/InstallDev
54 $(INSTALL_DIR) $(1)/usr/include
55 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsynce.so* $(1)/usr/lib/
58 endef
59
60 define Package/libsynce/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsynce.so.* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,libsynce))