503528f5e868a73f6419ab60d21f374545007e77
[openwrt/staging/mkresin.git] / openwrt / package / keynote / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 4619 2006-08-22 09:50:02Z florian $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=keynote
12 PKG_VERSION:=2.3
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
18 PKG_MD5SUM:=b569066ac2ba1356c2112b118a7d74d0
19 PKG_CAT:=bzcat
20
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/kernel.mk
25
26 define Package/keynote
27 SECTION:=base
28 CATEGORY:=Network
29 DEPENDS:=@LINUX_2_6
30 TITLE:=IPsec management tools
31 DESCRIPTION:=IPsec management tools
32 URL:=http://www1.cs.columbia.edu/~angelos/keynote.html
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default,--enable-static --enable-shared,LDFLAGS="-L$(STAGING_DIR)/usr/lib")
37 endef
38
39 define Build/Compile
40 $(call Build/Compile/Default,$(TARGET_CONFIGURE_OPTS) \
41 CFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
42 all)
43 endef
44
45 define Package/keynote/install
46 install -d -m0755 $(1)/usr/sbin
47 $(CP) $(PKG_BUILD_DIR)/keynote $(1)/usr/sbin/
48 endef
49
50 define Build/InstallDev
51 $(CP) $(PKG_BUILD_DIR)/{assertion,header,keynote,signature}.h $(STAGING_DIR)/usr/include/
52 $(CP) $(PKG_BUILD_DIR)/libkeynote.a $(STAGING_DIR)/usr/lib/
53 endef
54
55 define Build/UninstallDev
56 rm -rf $(STAGING_DIR)/usr/include/{assertion,header,keynote,signature}.h
57 endef
58
59 $(eval $(call BuildPackage,keynote))