source: packages/libs/libowfat/Makefile @ 20376

Last change on this file since 20376 was 20376, checked in by thepeople, 6 years ago

It adds libowfat (http://www.fefe.de/libowfat/) to OpenWRT and closes
therefore (if accepted) https://dev.openwrt.org/ticket/6908.

Libowfat is a library that implements various C APIs suggested by D.J. Bernstein.
Also see http://cr.yp.to/software.html.

Signed-off-by: Oliver Ripka <olliwolli@…>

File size: 1.3 KB
Line 
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# $Id$
8
9include $(TOPDIR)/rules.mk
10
11LOWFAT_VERSION=0.28
12
13PKG_NAME:=libowfat
14PKG_VERSION:=$(LOWFAT_VERSION)
15PKG_RELEASE:=1
16
17PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18PKG_SOURCE_URL:=http://dl.fefe.de
19PKG_MD5SUM:=6bbee9a86506419657d87123b7a6f2c1
20
21include $(INCLUDE_DIR)/package.mk
22
23# set to 1 to enable debugging
24DEBUG=
25
26define Package/libowfat
27  SECTION:=libs
28  CATEGORY:=Libraries
29  TITLE:=reimplemented libdjb under GPL
30endef
31
32define Build/Configure
33endef
34
35TARGET_CFLAGS += $(FPIC)
36LOWFAT_MAKEOPTS = \
37               $(TARGET_CONFIGURE_OPTS) \
38               COPTS="$(TARGET_CFLAGS)" \
39               DEBUG="$(DEBUG)" \
40               VERSION="$(LOWFAT_VERSION)" \
41               CPPFLAGS="-I$(PKG_BUILD_DIR) -I$(STAGING_DIR)/usr/include" \
42               OS="Linux"
43
44# work around a nasty gcc bug
45ifneq ($(CONFIG_GCC_VERSION_4_2_4),)
46  LOWFAT_MAKEOPTS += WOPTS=""
47endif
48
49define Build/Compile
50       $(MAKE) -C $(PKG_BUILD_DIR) $(LOWFAT_MAKEOPTS)
51endef
52
53define Build/InstallDev
54       mkdir -p $(1)/usr/include/libowfat
55       $(CP) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/libowfat
56       $(INSTALL_DIR) $(1)/usr/lib
57       $(CP) $(PKG_BUILD_DIR)/*.a $(1)/usr/lib
58endef
59
60$(eval $(call BuildPackage,libowfat))
Note: See TracBrowser for help on using the repository browser.