pkgsrc/www/http-parser/Makefile
adam c74f5dd62c http-parser: updated to 2.9.0
2.9.0:
Unknown changes (but needed for NodeJS 10.15.0).
2019-01-08 14:48:22 +00:00

33 lines
953 B
Makefile

# $NetBSD: Makefile,v 1.8 2019/01/08 14:48:22 adam Exp $
DISTNAME= http-parser-2.9.0
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_GITHUB:=nodejs/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= schnoebe@NetBSD.org
HOMEPAGE= https://github.com/nodejs/http-parser
COMMENT= Parser for HTTP messages written in C
LICENSE= mit
USE_LANGUAGES= c
USE_LIBTOOL= yes
USE_TOOLS+= gmake
INSTALLATION_DIRS= include lib
BUILDLINK_TRANSFORM+= rm:-Werror
do-build:
cd ${WRKSRC} && ${LIBTOOL} --mode=compile --tag=CC ${CC} ${CFLAGS} \
-c http_parser.c
cd ${WRKSRC} && ${LIBTOOL} --mode=link --tag=CC ${CC} ${LDFLAGS} \
${LIBS} -o libhttp_parser.la http_parser.lo \
-version-info 2:7:0 -rpath ${PREFIX}/lib
do-install:
cd ${WRKSRC} && ${LIBTOOL} --mode=install ${INSTALL_LIB} \
-c libhttp_parser.la ${DESTDIR}${PREFIX}/lib/libhttp_parser.la
${INSTALL_DATA} ${WRKSRC}/http_parser.h ${DESTDIR}${PREFIX}/include
.include "../../mk/bsd.pkg.mk"