Annotation of pkgsrc/www/yaws/Makefile, revision 1.13

1.13    ! dholland    1: # $NetBSD: Makefile,v 1.12 2015/08/13 10:59:39 is Exp $
1.1       cheusov     2: #
                      3: 
1.8       is          4: DISTNAME=              yaws-1.97
1.12      is          5: PKGREVISION=           4
1.1       cheusov     6: CATEGORIES=            www
                      7: MASTER_SITES=          http://yaws.hyber.org/download/
                      8: 
                      9: MAINTAINER=            [email protected]
                     10: HOMEPAGE=              http://yaws.hyber.org/
                     11: COMMENT=               High perfomance HTTP 1.1 webserver written in Erlang
                     12: LICENSE=               modified-bsd
                     13: 
                     14: BUILD_DEFS+=           VARBASE
                     15: 
                     16: USE_TOOLS+=            gmake perl pax autoconf
                     17: GNU_CONFIGURE=         yes
                     18: AUTOCONF_REQD=         2.50
                     19: 
                     20: CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}/yaws
                     21: CONFIGURE_ARGS+=       --localstatedir=${VARBASE}
1.3       dholland   22: CONFIGURE_ARGS+=       --with-extrainclude=${PAMBASE}/include/security
1.1       cheusov    23: 
                     24: EGDIR=                 ${PREFIX}/share/examples/yaws
                     25: CONF_FILES=            ${EGDIR}/yaws.conf ${PKG_SYSCONFDIR}/yaws/yaws.conf
                     26: RCD_SCRIPTS=           yaws
                     27: RCD_SCRIPT_SRC.yaws=   ${WRKSRC}/scripts/netbsd/yaws.sh
                     28: 
                     29: LIBDIR=                        ${PREFIX}/lib/yaws
                     30: WWWDIR=                        ${PREFIX}/share/yaws/www
                     31: INSTALLATION_DIRS=     ${EGDIR}
                     32: INSTALLATION_DIRS+=    ${LIBDIR}/ebin ${LIBDIR}/include
                     33: INSTALLATION_DIRS+=    ${LIBDIR}/priv ${WWWDIR}
                     34: 
                     35: OWN_DIRS=              ${VARBASE}/log/yaws
                     36: 
                     37: REPLACE_PYTHON=                www/cgi-bin/foo.py
                     38: #CHECK_INTERPRETER_SKIP=       ${WWWDIR}/cgi-bin/foo.py
                     39: CHECK_INTERPRETER_SKIP=        share/yaws/www/cgi-bin/foo.py
                     40: 
                     41: INSTALLATION_DIRS+=    bin
                     42: INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
                     43: INSTALLATION_DIRS+=    ${PKGMANDIR}/man5
                     44: 
1.12      is         45: # remove after upgrading to a now()-less yaws:
1.13    ! dholland   46: SUBST_CLASSES+=                now
        !            47: SUBST_STAGE.now=       post-patch
        !            48: SUBST_FILES.now=       */*.erl
        !            49: SUBST_SED.now=         -e 's|\([^:a-zA-Z]\)now()|\1erlang:timestamp()|g'
        !            50: SUBST_SED.now+=                -e 's|\([^:a-zA-Z]\)erlang:now()|\1erlang:timestamp()|g'
        !            51: SUBST_MESSAGE.now=     Replacing now().
1.12      is         52: 
1.1       cheusov    53: post-patch:
                     54:        ${RM} ${WRKDIR}/yaws
                     55:        ${RM} -Rf ${WRKSRC}/www/.xvpics
                     56:        ${RM} -Rf ${WRKSRC}/www/testdir
1.2       hans       57:        ${FIND} ${WRKSRC} -name \*.orig -o -name .empty | ${XARGS} ${RM} -f
1.1       cheusov    58: 
                     59: pre-configure:
                     60:        cd ${WRKSRC} && autoconf
                     61: 
                     62: post-configure:
                     63:        ${SED} -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" \
                     64:                -e "s|@PREFIX@|${PREFIX}|g" \
                     65:                -e "s|@VARBASE@|${VARBASE}|g" \
                     66:                ${FILESDIR}/yaws.conf > ${WRKDIR}/yaws.conf
                     67: 
                     68: do-install:
                     69:        ${INSTALL_SCRIPT} ${WRKSRC}/bin/yaws ${DESTDIR}${PREFIX}/bin
                     70:        ${INSTALL_DATA} ${WRKDIR}/yaws.conf ${DESTDIR}${EGDIR}
                     71: 
                     72:        ${INSTALL_DATA} ${WRKSRC}/ebin/* ${DESTDIR}${LIBDIR}/ebin
                     73:        ${INSTALL_DATA} ${WRKSRC}/include/* ${DESTDIR}${LIBDIR}/include
                     74:        cd ${WRKSRC}/priv && pax -rw . ${DESTDIR}${LIBDIR}/priv
                     75: 
                     76:        cd ${WRKSRC}/www && pax -rw . ${DESTDIR}${WWWDIR}
                     77: 
                     78:        ${INSTALL_MAN} ${WRKSRC}/man/yaws.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
                     79:        ${INSTALL_MAN} ${WRKSRC}/man/*.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
                     80: 
                     81:        ${INSTALL_DATA_DIR} ${DESTDIR}${PKG_SYSCONFDIR}/yaws
                     82: 
1.12      is         83: BUILDLINK_API_DEPENDS.erlang+= erlang>=18.0
                     84: 
1.1       cheusov    85: .include "../../lang/erlang/buildlink3.mk"
1.3       dholland   86: .include "../../mk/pam.buildlink3.mk"
1.1       cheusov    87: .include "../../mk/bsd.pkg.mk"

CVSweb <[email protected]>