Makefile 1.1 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:= portmap
  5. PKG_VERSION:= 6.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= ac108ab68bf0f34477f8317791aaf1ff
  8. PKG_DESCR:= RPC portmapper
  9. PKG_SECTION:= net/misc
  10. PKG_URL:= http://neil.brown.name/portmap/
  11. PKG_SITES:= http://neil.brown.name/portmap/
  12. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
  13. WRKDIST= ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,PORTMAP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= manual
  17. INSTALL_STYLE:= manual
  18. ifneq ($(strip ${ADK_PACKAGE_PORTMAP_LIBWRAP}),)
  19. MAKE_FLAGS+= WRAP_LIB='-L${STAGING_TARGET_DIR}/usr/lib -lwrap'
  20. else
  21. MAKE_FLAGS+= NO_TCP_WRAPPER=1
  22. endif
  23. TARGET_CPPFLAGS+= -DDAEMON_UID=20 -DDAEMON_GID=20
  24. TARGET_CFLAGS+= -fPIC
  25. MAKE_FLAGS+= ${TARGET_CONFIGURE_OPTS} \
  26. CFLAGS='${TARGET_CFLAGS}'
  27. do-install:
  28. ${INSTALL_DIR} ${IDIR_PORTMAP}/usr/sbin
  29. ${INSTALL_BIN} ${WRKBUILD}/portmap ${IDIR_PORTMAP}/usr/sbin/
  30. include ${TOPDIR}/mk/pkg-bottom.mk