standardize Makefile, change section from base to utils
[openwrt.git] / 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 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/kernel.mk
23
24 define Package/keynote
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=@LINUX_2_6 +libopenssl
28 TITLE:=Simple and flexible trust-management system
29 DESCRIPTION:=\
30 KeyNote is a simple and flexible trust-management system designed to work \\\
31 well for a variety of large- and small- scale Internet-based applications.\\\
32 It provides a single, unified language for both local policies and \\\
33 credentials.
34 URL:=http://www1.cs.columbia.edu/~angelos/keynote.html
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --enable-static \
40 --enable-shared \
41 )
42 endef
43
44 define Build/Compile
45 $(call Build/Compile/Default, \
46 CFLAGS="\$$$$(EXTRA_CFLAGS) \$$$$(EXTRA_LDFLAGS)" \
47 )
48 endef
49
50 define Build/InstallDev
51 mkdir -p $(STAGING_DIR)/usr/include
52 $(CP) $(PKG_BUILD_DIR)/{assertion,header,keynote,signature}.h $(STAGING_DIR)/usr/include/
53 mkdir -p $(STAGING_DIR)/usr/lib
54 $(CP) $(PKG_BUILD_DIR)/libkeynote.a $(STAGING_DIR)/usr/lib/
55 endef
56
57 define Build/UninstallDev
58 rm -rf \
59 $(STAGING_DIR)/usr/include/keynote \
60 $(STAGING_DIR)/usr/lib/libkeynote.a
61 endef
62
63 define Package/keynote/install
64 install -d -m0755 $(1)/usr/sbin
65 $(CP) $(PKG_BUILD_DIR)/keynote $(1)/usr/sbin/
66 endef
67
68 $(eval $(call BuildPackage,keynote))
This page took 0.037874 seconds and 5 git commands to generate.