3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=ff409db977e4a4897aa09ea420a28a2f
10 PKG_SOURCE_URL
:=ftp
://ftp.gnupg.org
/gcrypt
/libgpg-error
/ \
11 http
://mirrors.rootmode.com
/ftp.gnupg.org
/libgpg-error
/ \
12 http
://gulus.usherbrooke.ca
/pub
/appl
/GnuPG
/libgpg-error
/ \
13 http
://gnupg.unixmexico.org
/ftp
/libgpg-error
/
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
20 include $(TOPDIR
)/package
/rules.mk
22 $(eval
$(call PKG_template
,LIBGPG_ERROR
,libgpg-error
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
24 $(PKG_BUILD_DIR
)/.configured
:
25 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
26 $(TARGET_CONFIGURE_OPTS
) \
27 CFLAGS
="$(TARGET_CFLAGS)" \
28 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
29 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
31 --target
=$(GNU_TARGET_NAME
) \
32 --host
=$(GNU_TARGET_NAME
) \
33 --build
=$(GNU_HOST_NAME
) \
39 --datadir=/usr
/share \
40 --includedir=/usr
/include \
41 --infodir=/usr
/share
/info \
43 --libexecdir
=/usr
/lib \
44 --localstatedir
=/var \
45 --mandir=/usr
/share
/man \
49 $(DISABLE_LARGEFILE
) \
56 $(PKG_BUILD_DIR
)/.built
:
57 rm -rf
$(PKG_INSTALL_DIR
)
58 mkdir
-p
$(PKG_INSTALL_DIR
)
59 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
60 DESTDIR
="$(PKG_INSTALL_DIR)" \
65 install -m0755
-d
$(IDIR_LIBGPG_ERROR
)/usr
/lib
66 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libgpg-error.so.
* $(IDIR_LIBGPG_ERROR
)/usr
/lib
/
67 $(RSTRIP
) $(IDIR_LIBGPG_ERROR
)
68 $(IPKG_BUILD
) $(IDIR_LIBGPG_ERROR
) $(PACKAGE_DIR
)
70 $(STAGING_DIR
)/usr
/lib
/libgpg-error.so
: $(PKG_BUILD_DIR
)/.built
71 mkdir
-p
$(STAGING_DIR
)/usr
/bin
72 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/gpg-error-config
$(STAGING_DIR
)/usr
/bin
/
73 mkdir
-p
$(STAGING_DIR
)/usr
/include
74 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/gpg-error.h
$(STAGING_DIR
)/usr
/include/
75 mkdir
-p
$(STAGING_DIR
)/usr
/lib
76 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libgpg-error.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
77 mkdir
-p
$(STAGING_DIR
)/usr
/share
/aclocal
78 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/gpg-error.m4
$(STAGING_DIR
)/usr
/share
/aclocal
/
81 install-dev
: $(STAGING_DIR
)/usr
/lib
/libgpg-error.so
85 $(STAGING_DIR
)/usr
/bin
/gpg-error-config \
86 $(STAGING_DIR
)/usr
/include/gpg-error.h \
87 $(STAGING_DIR
)/usr
/lib
/libgpg-error.
{a
,so
*} \
88 $(STAGING_DIR
)/usr
/share
/aclocal
/gpg-error.m4 \
95 make
-C
$(PKG_BUILD_DIR
) clean
96 rm -f
$(PKG_BUILD_DIR
)/.built