pkgsrc/pkgtools/pkgfind/Makefile
rillig b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00

43 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.14 2005/12/05 20:50:51 rillig Exp $
DISTNAME= pkgfind-20050804
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= peter@pointless.nl
COMMENT= Find packages by package name in pkgsrc
PKG_INSTALLATION_TYPES= overwrite pkgviews
NO_CONFIGURE= yes
NO_CHECKSUM= yes
INSTALLATION_DIRS= bin man/man1
do-extract:
@${CP} -R ${FILESDIR} ${WRKSRC}
do-build:
${LINK.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
SUBST_CLASSES+= path
SUBST_STAGE.path= post-patch
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"
# need err(1), warn(1), set/getprogname(1)
.if ${OPSYS} != "NetBSD" && ${OPSYS} != "FreeBSD" && ${OPSYS} != "DragonFly"
CFLAGS+= -DNEED_LIBNBCOMPAT
LDFLAGS+= -lnbcompat
. include "../../pkgtools/libnbcompat/buildlink3.mk"
.endif
.include "../../mk/bsd.pkg.mk"