Thu Aug 25 18:30:33 2016 UTC ()
Use libtool for the build and install.  Fixes various issues with the
package which meant it only worked on NetBSD.  Bump PKGREVISION.


(jperkin)
diff -r1.3 -r1.4 pkgsrc/www/http-parser/Makefile
diff -r1.2 -r1.3 pkgsrc/www/http-parser/PLIST
diff -r1.2 -r1.3 pkgsrc/www/http-parser/distinfo
diff -r1.1 -r0 pkgsrc/www/http-parser/patches/patch-Makefile

cvs diff -r1.3 -r1.4 pkgsrc/www/http-parser/Makefile (expand / switch to context diff)
--- pkgsrc/www/http-parser/Makefile 2016/06/09 06:23:41 1.3
+++ pkgsrc/www/http-parser/Makefile 2016/08/25 18:30:33 1.4
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2016/06/09 06:23:41 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2016/08/25 18:30:33 jperkin Exp $
 
 DISTNAME=	http-parser-2.7.0
+PKGREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	${MASTER_SITE_GITHUB:=nodejs/}
 GITHUB_TAG=	v${PKGVERSION_NOREV}
@@ -11,8 +12,23 @@
 LICENSE=	mit
 
 USE_LANGUAGES=		c
+USE_LIBTOOL=		yes
 USE_TOOLS+=		gmake
-BUILD_TARGET=		library
+
+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"

cvs diff -r1.2 -r1.3 pkgsrc/www/http-parser/PLIST (expand / switch to context diff)
--- pkgsrc/www/http-parser/PLIST 2016/05/29 14:17:48 1.2
+++ pkgsrc/www/http-parser/PLIST 2016/08/25 18:30:33 1.3
@@ -1,4 +1,3 @@
-@comment $NetBSD: PLIST,v 1.2 2016/05/29 14:17:48 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2016/08/25 18:30:33 jperkin Exp $
 include/http_parser.h
-lib/libhttp_parser.so
+lib/libhttp_parser.la
-lib/libhttp_parser.so.2.7.0

cvs diff -r1.2 -r1.3 pkgsrc/www/http-parser/distinfo (expand / switch to context diff)
--- pkgsrc/www/http-parser/distinfo 2016/05/29 14:17:48 1.2
+++ pkgsrc/www/http-parser/distinfo 2016/08/25 18:30:33 1.3
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.2 2016/05/29 14:17:48 wiz Exp $
+$NetBSD: distinfo,v 1.3 2016/08/25 18:30:33 jperkin Exp $
 
 SHA1 (http-parser-2.7.0.tar.gz) = f24bd35cf6d663e2b9f916708d82a96f562bc78b
 RMD160 (http-parser-2.7.0.tar.gz) = 910c4bb7cf4c5463ad2a54eb82b78d1bc20de877
 SHA512 (http-parser-2.7.0.tar.gz) = 1fe13b5366e9d161dbce2f6ad340890713413e4c5865d2567cb5ccf5601a52bc03682ecc43bc4e2c5ee9c4f152993a658d87fd43373070da67530c58ad577ee1
 Size (http-parser-2.7.0.tar.gz) = 48523 bytes
-SHA1 (patch-Makefile) = d2563f8f1e7d85e3b7d7e1dc53ae20089a0e8cab

File Deleted: pkgsrc/www/http-parser/patches/Attic/patch-Makefile