pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/48361: pkgsrc zlib missing at least pkg-config zlib.pc from upstream

The following reply was made to PR pkg/48361; it has been noted by GNATS.

From: David Holland <>
Subject: Re: pkg/48361: pkgsrc zlib missing at least pkg-config zlib.pc from
Date: Fri, 22 Nov 2013 02:25:08 +0000

 On Thu, Nov 21, 2013 at 05:35:00AM +0000, Richard PALO wrote:
  >  >   It is easier for everyone if you don't send mime-attachments to gnats;
  >  >   can you send the patch inline? (Or, alternatively, send it to me
  >  >   instead of gnats as a regular attachment and I'll post it)
 Here is the patch; I can commit it (or you can, for that matter) if we
 decide it's what we want.
 Sorry, I keep getting high-priority NMI's from real life objects. :-/
  >  On the otherhand, is there any reason not to do a normal build to ease 
  >  future upgrades?
 I ... don't follow.
 diff --git a/devel/zlib/Makefile b/devel/zlib/Makefile
 index d2c7ab7..639c25e 100644
 --- a/devel/zlib/Makefile
 +++ b/devel/zlib/Makefile
 @@ -1,6 +1,7 @@
  # $NetBSD: Makefile,v 1.47 2013/05/27 16:22:10 adam Exp $
  DISTNAME=     zlib-1.2.8
  CATEGORIES=   devel
 @@ -15,10 +16,23 @@ PKG_INSTALLATION_TYPES=    overwrite pkgviews
  USE_LIBTOOL=          yes
  CFLAGS+=              ${CPPFLAGS}
  LDFLAGS.Cygwin=               -no-undefined
 -INSTALLATION_DIRS=    include lib ${PKGMANDIR}/man3
 +SUBST_MESSAGE.pc= pkg-config file substitutions
 +SUBST_STAGE.pc= pre-configure
 +SUBST_SED.pc= -e "s,@prefix@,${PREFIX},g"
 +SUBST_SED.pc+=        -e "s,@exec_prefix@,${PREFIX},g"
 +SUBST_SED.pc+=        -e "s,@VERSION@,${PKGVERSION_NOREV},g"
 +SUBST_SED.pc+=        -e "s,@includedir@,${PREFIX}/include,g"
 +SUBST_SED.pc+=        -e "s,@libdir@,${PREFIX}/lib,g"
 +SUBST_SED.pc+=        -e "s,@sharedlibdir@,${PREFIX}/lib,g"
 +INSTALLATION_DIRS=    include lib/pkgconfig ${PKGMANDIR}/man3
        ${CP} -r ${FILESDIR} ${WRKSRC}
 @@ -28,5 +42,6 @@ do-install:
        ${INSTALL_MAN} ${WRKSRC}/zlib.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
        ${INSTALL_DATA} ${WRKSRC}/zconf.h ${DESTDIR}${PREFIX}/include
        ${INSTALL_DATA} ${WRKSRC}/zlib.h ${DESTDIR}${PREFIX}/include
 +      ${INSTALL_DATA} ${WRKSRC}/ 
  .include "../../mk/"
 diff --git a/devel/zlib/PLIST b/devel/zlib/PLIST
 index 7008f62..5ef561a 100644
 --- a/devel/zlib/PLIST
 +++ b/devel/zlib/PLIST
 @@ -2,4 +2,5 @@
 diff --git a/devel/zlib/files/ b/devel/zlib/files/
 new file mode 100644
 index 0000000..7e5acf9
 --- /dev/null
 +++ b/devel/zlib/files/
 @@ -0,0 +1,13 @@
 +Name: zlib
 +Description: zlib compression library
 +Version: @VERSION@
 +Libs: -L${libdir} -L${sharedlibdir} -lz
 +Cflags: -I${includedir}
 David A. Holland

Home | Main Index | Thread Index | Old Index