# Created by: Veniamin Gvozdikov # $FreeBSD: head/www/mongrel2/Makefile 413746 2016-04-21 16:43:14Z swills $ PORTNAME= mongrel2 PORTVERSION= 1.7.5 PORTREVISION= 2 CATEGORIES= www MASTER_SITES= http://mongrel2.org/static/downloads/ MAINTAINER= vg@FreeBSD.org COMMENT= Is an application, language, and network arch LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_powerpc64= Does not build BROKEN_armv6= does not build BROKEN_mips= does not build (tests segfault) BROKEN_mips64= does not build (tests segfault) LIB_DEPENDS= libzmq.so:net/libzmq2 \ libsqlite3.so:databases/sqlite3 USES= gmake tar:bzip2 MAKE_FLAGS= freebsd EXAMPLES_LIST= bbs \ chat \ configs \ http_0mq \ kegogi \ mp3stream \ procer \ python \ tornado \ zcov MAKE_JOBS_UNSAFE=yes OPTIONS_DEFINE= EXAMPLES post-patch: @${REINPLACE_CMD} -e 's#/usr/local#${LOCALBASE}#g' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's#fdclose#my_fdclose#g' ${WRKSRC}/src/*.c \ ${WRKSRC}/src/task/*.[ch] ${WRKSRC}/tests/*.c post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mongrel2/*/*.so @${MKDIR} ${STAGEDIR}/${EXAMPLESDIR} .for example in ${EXAMPLES_LIST} @cd ${WRKSRC}/examples && ${COPYTREE_SHARE} ${example} ${STAGEDIR}/${EXAMPLESDIR} .endfor .include