Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # $FreeBSD$
  2. PORTNAME= mod_wsgi
  3. DISTVERSION= 4.6.7
  4. CATEGORIES= www python
  5. MASTER_SITES= CHEESESHOP
  6. PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}${PYTHON_PKGNAMEPREFIX}
  7. MAINTAINER= douglas@douglasthrift.net
  8. COMMENT= Python WSGI adapter module for Apache
  9. LICENSE= APACHE20
  10. USES= apache:2.2+ gettext python
  11. USE_PYTHON= flavors
  12. GNU_CONFIGURE= yes
  13. CONFIGURE_ARGS+=--with-apxs="${APXS}" --with-python="${PYTHON_CMD}"
  14. SUB_FILES= pkg-message ${APMOD_FILE}
  15. APMOD_FILE= 270_${PORTNAME}.conf.sample
  16. PLIST_SUB+= APMOD_FILE=${APMOD_FILE}
  17. pre-everything::
  18. @${ECHO_MSG} "======================= ATTENTION! ======================"
  19. @${ECHO_MSG}
  20. @${ECHO_MSG} "If you want to use daemon mode you will need to make sure"
  21. @${ECHO_MSG} "Apache and APR include thread support."
  22. @${ECHO_MSG}
  23. @${ECHO_MSG} "========================================================="
  24. post-install:
  25. @${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d
  26. ${INSTALL_DATA} ${WRKDIR}/${APMOD_FILE} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d
  27. ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${PORTNAME}.so
  28. .include <bsd.port.mk>