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