2 # Copyright (C) 2007-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=argp-standalone
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.lysator.liu.se
/~nisse
/misc
/
16 PKG_HASH
:=dec79694da1319acd2238ce95df57f3680fea2482096e483323fddf3d818d8be
17 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
20 PKG_LICENSE
:=Makefile.am
22 include $(INCLUDE_DIR
)/package.mk
23 include $(INCLUDE_DIR
)/host-build.mk
25 define Package
/argp-standalone
28 TITLE
:=Hierarchial argument parsing broken out from glibc
29 URL
:=http
://www.lysator.liu.se
/~nisse
/misc
/
32 define Package
/argp-standalone
/description
33 GNU libc hierarchial argument parsing library broken out from glibc.
37 CFLAGS
="$(TARGET_CFLAGS) $(FPIC) -std=gnu89"
40 CFLAGS
="$(HOST_CFLAGS) $(FPIC) -std=gnu89"
42 define Build
/InstallDev
43 $(INSTALL_DIR
) $(1)/usr
/include
44 $(CP
) $(PKG_BUILD_DIR
)/argp.h \
46 $(INSTALL_DIR
) $(1)/usr
/lib
47 $(CP
) $(PKG_BUILD_DIR
)/libargp.a \
52 $(INSTALL_DIR
) $(1)/include
53 $(CP
) $(HOST_BUILD_DIR
)/argp.h \
55 $(INSTALL_DIR
) $(1)/lib
56 $(CP
) $(HOST_BUILD_DIR
)/libargp.a \
60 $(eval
$(call BuildPackage
,argp-standalone
))
61 $(eval
$(call HostBuild
))