3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=416b765e9d9961501ac85e9a366fd219
10 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/libdnet-
$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,LIBDNET
,libdnet
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
28 $(TARGET_CONFIGURE_OPTS
) \
29 CFLAGS
="$(TARGET_CFLAGS)" \
30 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
31 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
33 --target
=$(GNU_TARGET_NAME
) \
34 --host
=$(GNU_TARGET_NAME
) \
35 --build
=$(GNU_HOST_NAME
) \
41 --datadir=/usr
/share \
42 --includedir=/usr
/include \
43 --infodir=/usr
/share
/info \
45 --libexecdir
=/usr
/lib \
46 --localstatedir
=/var
/run \
47 --mandir=/usr
/share
/man \
51 $(DISABLE_LARGEFILE
) \
57 $(PKG_BUILD_DIR
)/.built
:
58 rm -rf
$(PKG_INSTALL_DIR
)
59 mkdir
-p
$(PKG_INSTALL_DIR
)
60 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
61 $(TARGET_CONFIGURE_OPTS
) \
62 CFLAGS
="$(TARGET_CFLAGS)" \
63 DESTDIR
="$(PKG_INSTALL_DIR)" \
68 install -m0755
-d
$(IDIR_LIBDNET
)/usr
/lib
69 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdnet.so.
* $(IDIR_LIBDNET
)/usr
/lib
/
70 install -m0755
-d
$(IDIR_LIBDNET
)/usr
/sbin
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/dnet
$(IDIR_LIBDNET
)/usr
/sbin
/
72 $(RSTRIP
) $(IDIR_LIBDNET
)
73 $(IPKG_BUILD
) $(IDIR_LIBDNET
) $(PACKAGE_DIR
)
75 $(STAGING_DIR
)/usr
/lib
/libdnet.so
: $(PKG_BUILD_DIR
)/.built
76 mkdir
-p
$(STAGING_DIR
)/usr
/bin
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/dnet-config
$(STAGING_DIR
)/usr
/bin
/
78 mkdir
-p
$(STAGING_DIR
)/usr
/include
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/dnet.h
$(STAGING_DIR
)/usr
/include/
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/dnet
$(STAGING_DIR
)/usr
/include/
81 mkdir
-p
$(STAGING_DIR
)/usr
/lib
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdnet.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
85 install-dev
: $(STAGING_DIR
)/usr
/lib
/libdnet.so
89 $(STAGING_DIR
)/usr
/bin
/dnet-config \
90 $(STAGING_DIR
)/usr
/include/dnet.h \
91 $(STAGING_DIR
)/usr
/include/dnet \
92 $(STAGING_DIR
)/usr
/lib
/libdnet.
{a
,so
*} \
94 compile-targets
: install-dev
95 clean-targets
: uninstall-dev