diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-02-24 17:41:36 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-02-24 17:41:36 +0100 |
commit | 0aabef127155575e8c8d660605f9401ab15356aa (patch) | |
tree | b8cd5f06c60cd4e95fd7a2923dabb3b831dd93b3 /package/libdnet | |
parent | 0b09c2710166bd95ac9033b048bb6cbf7b4de7c2 (diff) |
allow native build of a lot of packages
STAGING_TARGET_DIR is used for package Makefile's for
include and library search path's. STAGING_DIR is used
for common code in mk/ or Makefile/rules.mk.
STAGING_TARGET_DIR is /usr when native builds are used.
Diffstat (limited to 'package/libdnet')
-rw-r--r-- | package/libdnet/Makefile | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/package/libdnet/Makefile b/package/libdnet/Makefile index ebe03f276..e38044d53 100644 --- a/package/libdnet/Makefile +++ b/package/libdnet/Makefile @@ -12,15 +12,28 @@ PKG_SECTION:= libs PKG_URL:= http://libdnet.sourceforge.net/ PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=$(PKG_NAME)/} +PKG_SUBPKGS:= LIBDNET LIBDNET_DEV +PKGSD_LIBDNET_DEV:= headers for a low-level networking library +PKGSC_LIBDNET_DEV:= devel + include $(TOPDIR)/mk/package.mk -$(eval $(call PKG_template,LIBDNET,${PKG_NAME},$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +$(eval $(call PKG_template,LIBDNET,libdnet,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +$(eval $(call PKG_template,LIBDNET_DEV,libdnet-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBDNET_DEV},${PKGSC_LIBDNET_DEV})) CONFIGURE_ENV+= ac_cv_dnet_bsd_bpf=no CONFIGURE_ARGS+= --without-check -post-install: +libdnet-install: $(INSTALL_DIR) $(IDIR_LIBDNET)/usr/lib - $(CP) $(WRKINST)/usr/lib/libdnet.so* $(IDIR_LIBDNET)/usr/lib/ + $(CP) $(WRKINST)/usr/lib/libdnet.so* $(IDIR_LIBDNET)/usr/lib + +libdnet-dev-install: + $(INSTALL_DIR) $(IDIR_LIBDNET_DEV)/usr/bin + $(CP) $(WRKINST)/usr/bin/dnet-config $(IDIR_LIBDNET_DEV)/usr/bin + $(INSTALL_DIR) $(IDIR_LIBDNET_DEV)/usr/include + $(CP) $(WRKINST)/usr/include/* \ + $(IDIR_LIBDNET_DEV)/usr/include + include ${TOPDIR}/mk/pkg-bottom.mk |