[packages] net-snmp: Enable ipv6 support if defined globally
[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:=1
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
20 PKG_BUILD_DEPENDS:=libiconv
21
22 define Package/libsynce
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=SynCE library
26 URL:=http://synce.sourceforge.net/
27 endef
28
29 define Package/libsynce/description
30 The purpose of the SynCE project is to provide a means of communication with a
31 Windows CE or Pocket PC device from a computer running Linux, *BSD or other unices.
32 endef
33
34 MAKE_FLAGS += \
35 OPTIM="$(TARGET_CFLAGS)" \
36 CFLAGS="$(TARGET_CFLAGS)" \
37 DESTDIR="$(PKG_INSTALL_DIR)" \
38 all install
39
40 CONFIGURE_ARGS += \
41 --enable-hal-support=no \
42 --enable-odccm-support=no
43
44 CONFIGURE_VARS+= \
45 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libiconv/include" \
46 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libintl/include" \
47 LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
48 LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libintl/lib" \
49
50 define Build/InstallDev
51 mkdir -p $(1)/usr/include
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
53 mkdir -p $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsynce.so* $(1)/usr/lib/
55 endef
56
57 define Package/libsynce/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsynce.so.* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,libsynce))