3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=1d1b1d5c0245b1c00aff92da751e9aa1
10 PKG_SOURCE_URL
:=@GNU
/gdbm
11 PKG_SOURCE
:=gdbm-
$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/gdbm-
$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,LIBGDBM
,libgdbm
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
23 $(TARGET_CONFIGURE_OPTS
) \
24 CFLAGS
="$(TARGET_CFLAGS)" \
25 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
26 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
36 --datadir=/usr
/share \
37 --includedir=/usr
/include \
38 --infodir=/usr
/share
/info \
40 --libexecdir
=/usr
/lib \
41 --localstatedir
=/var \
42 --mandir=/usr
/share
/man \
46 $(DISABLE_LARGEFILE
) \
52 $(PKG_BUILD_DIR
)/.built
:
53 rm -rf
$(PKG_INSTALL_DIR
)
54 mkdir
-p
$(PKG_INSTALL_DIR
)
55 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
58 $(TARGET_CONFIGURE_OPTS
) \
59 INSTALL_ROOT
="$(PKG_INSTALL_DIR)" \
63 $(IPKG_LIBGDBM
): $(STAGING_DIR
)/usr
/lib
/libgdbm.so
64 install -m0755
-d
$(IDIR_LIBGDBM
)/usr
/lib
65 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libgdbm.so.
* $(IDIR_LIBGDBM
)/usr
/lib
/
66 $(RSTRIP
) $(IDIR_LIBGDBM
)
67 $(IPKG_BUILD
) $(IDIR_LIBGDBM
) $(PACKAGE_DIR
)
69 $(STAGING_DIR
)/usr
/lib
/libgdbm.so
: $(PKG_BUILD_DIR
)/.built
70 mkdir
-p
$(STAGING_DIR
)/usr
/include
71 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/gdbm.h
$(STAGING_DIR
)/usr
/include/
72 mkdir
-p
$(STAGING_DIR
)/usr
/lib
73 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libgdbm.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
74 touch
$(STAGING_DIR
)/usr
/lib
/libgdbm.so
76 install-dev
: $(STAGING_DIR
)/usr
/lib
/libgdbm.so
79 rm -rf
$(STAGING_DIR
)/usr
/include/gdbm.h
80 rm -rf
$(STAGING_DIR
)/usr
/lib
/libgdbm.
{a
,so
*}
82 compile-targets
: install-dev
83 clean-targets
: uninstall-dev