diff options
author | tv <tv@pkgsrc.org> | 2005-01-18 22:03:55 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-01-18 22:03:55 +0000 |
commit | 33ce58ee7d79493a31e897a5ce3a65e7556e7fdf (patch) | |
tree | 84c9c92191c472970a6e01b6a6631b6f7c19c33c /pkgtools/pkgfind | |
parent | 867a283ed5d36402b93c503c0a01504fe88d779a (diff) | |
download | pkgsrc-33ce58ee7d79493a31e897a5ce3a65e7556e7fdf.tar.gz |
Add libiberty to make this build on Interix.
Don't build catpages inside the package. Not every system has a nroff
shipped standard.
Diffstat (limited to 'pkgtools/pkgfind')
-rw-r--r-- | pkgtools/pkgfind/Makefile | 20 | ||||
-rw-r--r-- | pkgtools/pkgfind/PLIST | 3 |
2 files changed, 12 insertions, 11 deletions
diff --git a/pkgtools/pkgfind/Makefile b/pkgtools/pkgfind/Makefile index 1b995bbb313..7f3b132705b 100644 --- a/pkgtools/pkgfind/Makefile +++ b/pkgtools/pkgfind/Makefile @@ -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 @@ COMMENT= Find packages by package name in pkgsrc 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_FILES.path= pkgfind.c pkgfind.1 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 --git a/pkgtools/pkgfind/PLIST b/pkgtools/pkgfind/PLIST index 28c935bf742..aa1fe984fbe 100644 --- a/pkgtools/pkgfind/PLIST +++ b/pkgtools/pkgfind/PLIST @@ -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 |