[packages] libcrypto++: remove manual autoreconf invocation, use default configure...
[openwrt/svn-archive/archive.git] / libs / libcrypto++ / Makefile
index d98764d..8826d09 100644 (file)
@@ -1,5 +1,5 @@
-# 
-# Copyright (C) 2009 OpenWrt.org
+#
+# Copyright (C) 2009-2010 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -9,10 +9,14 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libcrypto++
 PKG_VERSION:=5.6.0
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/libc/libcrypto++/
-PKG_MD5SUM:=
+PKG_MD5SUM:=681f830145bf93cbc16113eaf61fbe2a
+
+PKG_FIXUP:=autoreconf
+PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -34,19 +38,8 @@ CONFIGURE_ARGS += \
        --enable-static \
        --enable-shared
 
-define Build/Configure
-       (cd $(PKG_BUILD_DIR); rm -f config.cache GNUmakefile; autoreconf --force --install)
-       $(call Build/Configure/Default,,\
-               LDFLAGS="$(TARGET_LDFLAGS) -lpthread" \
-       )
-endef
-
-define Build/Compile
-       $(MAKE) -C $(PKG_BUILD_DIR) \
-               DESTDIR="$(PKG_INSTALL_DIR)" \
-               all install
-endef
-
+TARGET_LDFLAGS += \
+       -lpthread
 
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include/crypto++