diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-03-13 22:07:11 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-03-13 22:07:11 +0100 |
commit | 56e554d65183edf7bcbab7ff04f0d13fa5a4a403 (patch) | |
tree | 11bdc0ebfe37397d17f7f81404b5fdbd80d516cc /package/libnids/Makefile | |
parent | c222009ae2041c53e2fce319c12b1c1b08dfe4fa (diff) |
add a lot of new devel subpackages and fix native builds of packages
Diffstat (limited to 'package/libnids/Makefile')
-rw-r--r-- | package/libnids/Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/package/libnids/Makefile b/package/libnids/Makefile index 671aa5f57..0b5ab1dee 100644 --- a/package/libnids/Makefile +++ b/package/libnids/Makefile @@ -14,15 +14,25 @@ PKG_BUILDDEP:= libnet libpcap glib PKG_URL:= http://libnids.sourceforge.net/ PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libnids/} +PKG_SUBPKGS:= LIBNIDS LIBNIDS_DEV +PKGSC_LIBNIDS_DEV:= devel +PKGSD_LIBNIDS_DEV:= libnids headers + include ${TOPDIR}/mk/package.mk -$(eval $(call PKG_template,LIBNIDS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +$(eval $(call PKG_template,LIBNIDS,libnids,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +$(eval $(call PKG_template,LIBNIDS_DEV,libnids-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBNIDS_DEV},${PKGSC_LIBNIDS_DEV})) +CONFIGURE_ENV+= ac_cv_lib_nsl_gethostbyname=no CONFIGURE_ARGS+= --with-libpcap=${STAGING_TARGET_DIR}/usr XAKE_FLAGS+= install_prefix="${WRKINST}" -post-install: +libnids-install: ${INSTALL_DIR} ${IDIR_LIBNIDS}/usr/lib - ${CP} ${WRKINST}/usr/lib/libnids.so* ${IDIR_LIBNIDS}/usr/lib/ + ${CP} ${WRKINST}/usr/lib/libnids.so* ${IDIR_LIBNIDS}/usr/lib + +libnids-dev-install: + ${INSTALL_DIR} ${IDIR_LIBNIDS_DEV}/usr/include + ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBNIDS_DEV}/usr/include include ${TOPDIR}/mk/pkg-bottom.mk |