1 # $NetBSD: Makefile,v 1.20 2012/09/11 23:19:35 asau Exp $
3 DISTNAME
= p5-pkgsrc-Dewey-1.1
5 CATEGORIES
= pkgtools perl5
9 MAINTAINER
= wiz@NetBSD.org
10 HOMEPAGE
= http
://www.NetBSD.org
/docs
/pkgsrc
/
11 COMMENT
= Perl module to compare pkgsrc Dewey numbers
12 LICENSE
= ${PERL5_LICENSE} OR
2-clause-bsd
14 PKG_INSTALLATION_TYPES
= overwrite pkgviews
16 CPPFLAGS
+= -DHAVE_CTYPE_H
-DHAVE_STDLIB_H
-DHAVE_STRING_H
17 CPPFLAGS.NetBSD
+= -DHAVE_ERR_H
21 PERL5_PACKLIST
= auto
/pkgsrc
/Dewey
/.packlist
23 PKG_INSTALL_FILESDIR
= ${PKGSRCDIR}/pkgtools
/pkg_install
/files
24 PKG_INSTALL_FILES
= lib
/dewey.c lib
/dewey.h lib
/defs.h
28 ${CP} -r
${FILESDIR}/* ${WRKSRC}
29 for f in
${PKG_INSTALL_FILES}; do \
30 ${CP} ${PKG_INSTALL_FILESDIR}/$$f ${WRKSRC}; \
32 ${MV} ${WRKSRC}/dewey.c
${WRKSRC}/lib_dewey.c
33 ${TOUCH} ${WRKSRC}/nbcompat.h
35 .
include "../../lang/perl5/module.mk"
36 .
include "../../mk/bsd.pkg.mk"