pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkgfind Add libiberty to make this build on I...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/865b4600e746
branches:  trunk
changeset: 487706:865b4600e746
user:      tv <tv%pkgsrc.org@localhost>
date:      Tue Jan 18 22:03:55 2005 +0000

description:
Add libiberty to make this build on Interix.

Don't build catpages inside the package.  Not every system has a nroff
shipped standard.

diffstat:

 pkgtools/pkgfind/Makefile |  20 +++++++++++---------
 pkgtools/pkgfind/PLIST    |   3 +--
 2 files changed, 12 insertions(+), 11 deletions(-)

diffs (61 lines):

diff -r 156bbbea2473 -r 865b4600e746 pkgtools/pkgfind/Makefile
--- a/pkgtools/pkgfind/Makefile Tue Jan 18 22:01:52 2005 +0000
+++ b/pkgtools/pkgfind/Makefile Tue Jan 18 22:03:55 2005 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2005/01/06 05:32:29 tv Exp $
+# $NetBSD: Makefile,v 1.6 2005/01/18 22:03:55 tv Exp $
 
-DISTNAME=      pkgfind-20041023
+DISTNAME=      pkgfind-20050118
 CATEGORIES=    pkgtools
 MASTER_SITES=  # empty
 DISTFILES=     # empty
@@ -10,25 +10,21 @@
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
 
-NO_BUILDLINK=  yes
+USE_BUILDLINK3=        yes
 NO_CONFIGURE=  yes
 NO_CHECKSUM=   yes
 
-INSTALLATION_DIRS=     bin man/cat1 man/man1
-
-NROFF=         nroff -mandoc
+INSTALLATION_DIRS=     bin man/man1
 
 do-extract:
        @${CP} -R ${FILESDIR} ${WRKSRC}
 
 do-build:
-       ${CC} ${CFLAGS} -o ${WRKSRC}/pkgfind ${WRKSRC}/pkgfind.c
-       ${NROFF} ${WRKSRC}/pkgfind.1 > ${WRKSRC}/pkgfind.cat1
+       ${COMPILE.c} -o ${WRKSRC}/pkgfind ${WRKSRC}/pkgfind.c
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/pkgfind ${PREFIX}/bin/pkgfind
        ${INSTALL_MAN} ${WRKSRC}/pkgfind.1 ${PREFIX}/man/man1/pkgfind.1
-       ${INSTALL_MAN} ${WRKSRC}/pkgfind.cat1 ${PREFIX}/man/cat1/pkgfind.0
 
 SUBST_CLASSES=         path
 SUBST_STAGE.path=      post-patch
@@ -36,4 +32,10 @@
 SUBST_SED.path=                -e "s,/usr/pkgsrc,${PKGSRCDIR},g"
 SUBST_MESSAGE.path=    "Adjusting pkgsrc directory."
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Interix"
+.  include "../../devel/libiberty/application.mk" # need asprintf(3)
+.endif
+
 .include "../../mk/bsd.pkg.mk"
diff -r 156bbbea2473 -r 865b4600e746 pkgtools/pkgfind/PLIST
--- a/pkgtools/pkgfind/PLIST    Tue Jan 18 22:01:52 2005 +0000
+++ b/pkgtools/pkgfind/PLIST    Tue Jan 18 22:03:55 2005 +0000
@@ -1,4 +1,3 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2004/06/22 20:01:01 xtraeme Exp $
+@comment $NetBSD: PLIST,v 1.2 2005/01/18 22:03:55 tv Exp $
 bin/pkgfind
-man/cat1/pkgfind.0
 man/man1/pkgfind.1



Home | Main Index | Thread Index | Old Index