2829e658f2
INSTALLATION_DIRS, as well as all occurrences of ${PREFIX}/man with ${PREFIX}/${PKGMANDIR}. Fixes PR 35265, although I did not use the patch provided therein.
41 lines
1 KiB
Makefile
41 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.31 2007/01/07 09:14:09 rillig Exp $
|
|
#
|
|
|
|
DISTNAME= port2pkg-1.11
|
|
PKGREVISION= 6
|
|
CATEGORIES= pkgtools
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
COMMENT= Convert from a FreeBSD port to a NetBSD package
|
|
|
|
DEPENDS+= pkglint-[0-9]*:../../pkgtools/pkglint
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
EXTRACT_ONLY= # empty
|
|
NO_CHECKSUM= yes
|
|
NO_CONFIGURE= yes
|
|
USE_TOOLS+= gtar perl:run
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1
|
|
|
|
do-build:
|
|
.if ${OPSYS} == "SunOS" || ${OPSYS} == "AIX"
|
|
# the pre-generated man-pages are 'mandoc'; these OS need 'man'
|
|
nroff -man ${FILESDIR}/port2pkg.1 >${WRKSRC}/port2pkg.0
|
|
.else
|
|
${CP} ${FILESDIR}/port2pkg.0 ${WRKSRC}/port2pkg.0
|
|
.endif
|
|
${SED} -e 's|$${GTAR}|${GTAR}|g' ${FILESDIR}/port2pkg.pl \
|
|
> ${WRKSRC}/port2pkg
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/port2pkg ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/port2pkg.0 ${PREFIX}/${PKGMANDIR}/cat1
|
|
${INSTALL_MAN} ${FILESDIR}/port2pkg.1 ${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|