source: trunk/package/keynote/Makefile @ 6580

Last change on this file since 6580 was 6580, checked in by nbd, 9 years ago

add a default for PKG_BUILD_DIR and PKG_INSTALL_DIR (will use KERNEL_BUILD_DIR if kernel.mk is included, BUILD_DIR otherwise)

  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
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$
8
9include $(TOPDIR)/rules.mk
10include $(INCLUDE_DIR)/kernel.mk
11
12PKG_NAME:=keynote
13PKG_VERSION:=2.3
14PKG_RELEASE:=1
15
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
18PKG_MD5SUM:=b569066ac2ba1356c2112b118a7d74d0
19PKG_CAT:=bzcat
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/keynote
24  SECTION:=net
25  CATEGORY:=Network
26  DEPENDS:=@LINUX_2_6 +libopenssl
27  TITLE:=Simple and flexible trust-management system
28  DESCRIPTION:=\
29        KeyNote is a simple and flexible trust-management system designed to work \\\
30        well for a variety of large- and small- scale Internet-based applications.\\\
31        It provides a single, unified language for both local policies and \\\
32        credentials.
33  URL:=http://www1.cs.columbia.edu/~angelos/keynote.html
34endef
35
36CONFIGURE_ARGS += \
37        --enable-static \
38        --enable-shared
39
40define Build/Compile
41        $(call Build/Compile/Default, \
42                LIBS="$(EXTRA_LDFLAGS) -L. -lkeynote -lm -lcrypto" \
43        )
44endef
45
46define Build/InstallDev
47        mkdir -p $(STAGING_DIR)/usr/include
48        $(CP) $(PKG_BUILD_DIR)/{assertion,header,keynote,signature}.h $(STAGING_DIR)/usr/include/
49        mkdir -p $(STAGING_DIR)/usr/lib
50        $(CP) $(PKG_BUILD_DIR)/libkeynote.a $(STAGING_DIR)/usr/lib/
51endef
52
53define Build/UninstallDev
54        rm -rf  $(STAGING_DIR)/usr/include/keynote \
55                $(STAGING_DIR)/usr/lib/libkeynote.a
56endef
57
58define Package/keynote/install
59        $(INSTALL_DIR) $(1)/usr/sbin
60        $(CP) $(PKG_BUILD_DIR)/keynote $(1)/usr/sbin/
61endef
62
63$(eval $(call BuildPackage,keynote))
Note: See TracBrowser for help on using the repository browser.