Remove superfluous dependencies,
[openwrt.git] / package / libtasn1 / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=libtasn1
6 PKG_VERSION:=0.2.13
7 PKG_RELEASE:=0
8 PKG_MD5SUM:=d124b11908cfb88883fe71472c25d53a
9
10 PKG_SOURCE_URL:=ftp://ftp.gnutls.org/pub/gnutls/libtasn1/ \
11 ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/libtasn1/ \
12 http://www.mirrors.wiretapped.net/security/network-security/gnutls/libtasn1/ \
13 ftp://ftp.mirrors.wiretapped.net/pub/security/network-security/gnutls/libtasn1/ \
14 http://josefsson.org/gnutls/releases/libtasn1/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_CAT:=zcat
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
20
21 include $(TOPDIR)/package/rules.mk
22
23 BR2_PACKAGE_LIBTASN1=m
24
25 $(eval $(call PKG_template,LIBTASN1,libtasn1,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
26
27 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
28 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
29 touch configure.ac ; \
30 touch acinclude.m4 ; \
31 touch aclocal.m4 ; \
32 touch Makefile.in ; \
33 touch config.h.in ; \
34 touch configure ; \
35 $(TARGET_CONFIGURE_OPTS) \
36 CFLAGS="$(TARGET_CFLAGS)" \
37 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
38 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
39 ./configure \
40 --target=$(GNU_TARGET_NAME) \
41 --host=$(GNU_TARGET_NAME) \
42 --build=$(GNU_HOST_NAME) \
43 --program-prefix="" \
44 --program-suffix="" \
45 --prefix=/usr \
46 --exec-prefix=/usr \
47 --bindir=/usr/bin \
48 --datadir=/usr/share \
49 --includedir=/usr/include \
50 --infodir=/usr/share/info \
51 --libdir=/usr/lib \
52 --libexecdir=/usr/lib \
53 --localstatedir=/var \
54 --mandir=/usr/share/man \
55 --sbindir=/usr/sbin \
56 --sysconfdir=/etc \
57 $(DISABLE_NLS) \
58 $(DISABLE_LARGEFILE) \
59 --enable-shared \
60 --enable-static \
61 --disable-rpath \
62 );
63 touch $@
64
65 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
66 rm -rf $(PKG_INSTALL_DIR)
67 mkdir -p $(PKG_INSTALL_DIR)
68 $(MAKE) -C $(PKG_BUILD_DIR) \
69 DESTDIR="$(PKG_INSTALL_DIR)" \
70 all install
71 touch $@
72
73 $(IPKG_LIBTASN1): $(STAGING_DIR)/usr/lib/libtasn1.so
74 install -m0755 -d $(IDIR_LIBTASN1)/usr/lib
75 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(IDIR_LIBTASN1)/usr/lib/
76 $(RSTRIP) $(IDIR_LIBTASN1)
77 $(IPKG_BUILD) $(IDIR_LIBTASN1) $(PACKAGE_DIR)
78
79 $(STAGING_DIR)/usr/lib/libtasn1.so: $(PKG_BUILD_DIR)/.built
80 mkdir -p $(STAGING_DIR)/usr/bin
81 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/libtasn1-config $(STAGING_DIR)/usr/bin/
82 mkdir -p $(STAGING_DIR)/usr/include
83 cp -fpR $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(STAGING_DIR)/usr/include/
84 mkdir -p $(STAGING_DIR)/usr/lib
85 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(STAGING_DIR)/usr/lib/
86 mkdir -p $(STAGING_DIR)/usr/share/aclocal
87 cp -fpR $(PKG_INSTALL_DIR)/usr/share/aclocal/libtasn1.m4 $(STAGING_DIR)/usr/share/aclocal/
88 touch $@
89
90 install-dev: $(STAGING_DIR)/usr/lib/libtasn1.so
91
92 uninstall-dev:
93 rm -rf \
94 $(STAGING_DIR)/usr/bin/libtasn1-config \
95 $(STAGING_DIR)/usr/include/libtasn1.h \
96 $(STAGING_DIR)/usr/lib/libtasn1.{a,so*} \
97 $(STAGING_DIR)/usr/share/aclocal/libtasn1.m4 \
98
99 compile: install-dev
100
101 clean: uninstall-dev
102
103 mostlyclean:
104 make -C $(PKG_BUILD_DIR) clean
105 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.065645 seconds and 5 git commands to generate.