Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= libnids
  5. PKG_VERSION:= 1.24
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 72d37c79c85615ffe158aa524d649610
  8. PKG_DESCR:= Network Intrusion Detection System library
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libnet libpcap glib
  11. PKG_BUILDDEP:= libnet libpcap glib
  12. PKG_URL:= http://libnids.sourceforge.net/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libnids/}
  14. PKG_SUBPKGS:= LIBNIDS LIBNIDS_DEV
  15. PKGSC_LIBNIDS_DEV:= devel
  16. PKGSD_LIBNIDS_DEV:= libnids headers
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,LIBNIDS,libnids,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,LIBNIDS_DEV,libnids-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBNIDS_DEV},${PKGSC_LIBNIDS_DEV}))
  20. TARGET_LDFLAGS+= -lpthread
  21. CONFIGURE_ENV+= ac_cv_lib_nsl_gethostbyname=no
  22. CONFIGURE_ARGS+= --with-libpcap=${STAGING_TARGET_DIR}/usr
  23. XAKE_FLAGS+= install_prefix="${WRKINST}"
  24. libnids-install:
  25. ${INSTALL_DIR} ${IDIR_LIBNIDS}/usr/lib
  26. ${CP} ${WRKINST}/usr/lib/libnids.so* ${IDIR_LIBNIDS}/usr/lib
  27. libnids-dev-install:
  28. ${INSTALL_DIR} ${IDIR_LIBNIDS_DEV}/usr/include
  29. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBNIDS_DEV}/usr/include
  30. include ${TOPDIR}/mk/pkg-bottom.mk