summaryrefslogtreecommitdiff
path: root/pkgtools/p5-pkgsrc-Dewey/Makefile
blob: 5f67a036e46d26ab6cda4455c5dc22ceba581056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $NetBSD: Makefile,v 1.28 2015/08/21 07:40:39 wiz Exp $

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

MAINTAINER=	wiz@NetBSD.org
HOMEPAGE=	http://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=		c
USE_FEATURES+=		err
MAKE_ENV+=		LIBS=${LIBS:Q}

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"