[package] fix some openswan netdev_ops thinkos (#6183)
[openwrt/svn-archive/archive.git] / libs / glibmm / Makefile
1 #
2 # Copyright (C) 2007 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:=glibmm
11 PKG_VERSION:=2.22.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@GNOME/glibmm/2.22
16
17 PKG_FIXUP:=libtool
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/glibmm
23 SECTION:=libs
24 CATEGORY:=Libraries
25 DEPENDS:=+libsigcxx +glib2 +libstdcpp
26 TITLE:=glibmm
27 URL:=http://www.gtk.org/
28 endef
29
30 define Package/glibmm/description
31 c++ bindings for glib2
32 endef
33
34 TARGET_CFLAGS+= \
35 -I$(STAGING_DIR)/usr/lib/libiconv/include \
36 -I$(STAGING_DIR)/usr/lib/libintl/include
37
38 TARGET_LDFLAGS+= \
39 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
40 -L$(STAGING_DIR)/usr/lib/libiconv/lib \
41 -L$(STAGING_DIR)/usr/lib/libintl/lib
42
43 CONFIGURE_ARGS+= --disable-fulldocs
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include
47 $(CP) \
48 $(PKG_INSTALL_DIR)/usr/include/* \
49 $(1)/usr/include/
50
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) \
53 $(PKG_INSTALL_DIR)/usr/lib/* \
54 $(1)/usr/lib/
55
56 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
57 $(INSTALL_DATA) \
58 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
59 $(1)/usr/lib/pkgconfig
60 endef
61
62 define Package/glibmm/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) \
65 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
66 $(1)/usr/lib/
67 endef
68
69 $(eval $(call BuildPackage,glibmm))