File:  [cvs.NetBSD.org] / pkgsrc / pkgtools / p5-pkgsrc-Dewey / Makefile
Revision 1.39: download - view: text, annotated - select for diffs
Tue Jun 28 11:35:25 2022 UTC (2 years, 5 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, HEAD
*: recursive bump for perl 5.36

# $NetBSD: Makefile,v 1.39 2022/06/28 11:35:25 wiz Exp $

PKGNAME=	p5-pkgsrc-Dewey-1.1
PKGREVISION=	13
CATEGORIES=	pkgtools perl5

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.NetBSD.org/docs/pkgsrc/
COMMENT=	Perl module to compare pkgsrc Dewey numbers
LICENSE=	${PERL5_LICENSE} OR 2-clause-bsd

CPPFLAGS+=		-DHAVE_CTYPE_H -DHAVE_STDLIB_H -DHAVE_STRING_H
CPPFLAGS.NetBSD+=	-DHAVE_ERR_H
CPPFLAGS.Linux+=	-fPIC

USE_LANGUAGES=		c99
USE_FEATURES+=		err
MAKE_ENV+=		LIBS=${LIBS:Q}

.include "../../mk/compiler.mk"

.if ${PKGSRC_COMPILER:Msunpro}
CPPFLAGS+=		-xcode=pic32
.endif

PERL5_PACKLIST=		auto/pkgsrc/Dewey/.packlist

PKG_INSTALL_FILESDIR=	${PKGSRCDIR}/pkgtools/pkg_install/files
PKG_INSTALL_FILES=	lib/dewey.c lib/dewey.h lib/defs.h

do-extract:
	${MKDIR} ${WRKSRC}
	${CP} -r ${FILESDIR}/* ${WRKSRC}
	for f in ${PKG_INSTALL_FILES}; do \
		${CP} ${PKG_INSTALL_FILESDIR}/$$f ${WRKSRC}; \
	done
	${MV} ${WRKSRC}/dewey.c ${WRKSRC}/lib_dewey.c
	${TOUCH} ${WRKSRC}/nbcompat.h

.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>