diff options
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 |