2010-02-18 13:10:21 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007-2010 OpenWrt.org
|
2007-11-11 20:02:58 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libatomicops
|
|
|
|
PKG_VERSION:=1.2
|
2008-10-27 18:00:04 +00:00
|
|
|
PKG_EXTRA_VERSION:=+cvs20080819.orig
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_RELEASE:=2
|
2007-11-11 20:02:58 +00:00
|
|
|
|
2008-10-27 18:00:04 +00:00
|
|
|
PKG_SOURCE:=libatomic-ops_$(PKG_VERSION)$(PKG_EXTRA_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/liba/libatomic-ops/
|
|
|
|
PKG_MD5SUM:=bf26c062f28796e3daaab586a38abec1
|
2007-11-11 20:02:58 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/libatomic_ops-$(PKG_VERSION)
|
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2014-03-11 16:00:31 +00:00
|
|
|
PKG_USE_MIPS16:=0
|
|
|
|
|
2007-11-11 20:02:58 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libatomicops
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=implementations for atomic memory update operations
|
2008-08-05 20:31:09 +00:00
|
|
|
DEPENDS:=@!TARGET_avr32
|
2007-11-11 20:02:58 +00:00
|
|
|
URL:=http://www.hpl.hp.com/research/linux/atomic_ops/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libatomicops/description
|
|
|
|
Provides implementations for atomic memory update
|
|
|
|
operations on a number of architectures. This allows
|
|
|
|
direct use of these in reasonably portable code. Unlike
|
|
|
|
earlier similar packages, this one explicitly considers
|
|
|
|
memory barrier semantics, and allows the construction of
|
|
|
|
code that involves minimum overhead across a variety of
|
|
|
|
architectures.
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-11-11 20:02:58 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include/
|
2007-12-19 08:36:59 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
2007-12-29 17:37:12 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/atomic_ops $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-11-11 20:02:58 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libatomic_ops*.a $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libatomicops))
|