2022-06-28 13:30:51 +02:00
|
|
|
# $NetBSD: Makefile,v 1.39 2022/06/28 11:35:25 wiz Exp $
|
2005-11-13 20:53:19 +01:00
|
|
|
|
2014-03-03 04:30:52 +01:00
|
|
|
PKGNAME= p5-pkgsrc-Dewey-1.1
|
2022-06-28 13:30:51 +02:00
|
|
|
PKGREVISION= 13
|
2005-11-13 20:53:19 +01:00
|
|
|
CATEGORIES= pkgtools perl5
|
|
|
|
|
2022-02-16 11:25:44 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2020-01-19 00:30:43 +01:00
|
|
|
HOMEPAGE= https://www.NetBSD.org/docs/pkgsrc/
|
2005-11-13 20:53:19 +01:00
|
|
|
COMMENT= Perl module to compare pkgsrc Dewey numbers
|
2010-05-28 16:56:14 +02:00
|
|
|
LICENSE= ${PERL5_LICENSE} OR 2-clause-bsd
|
2005-11-13 20:53:19 +01:00
|
|
|
|
2018-01-27 20:07:46 +01:00
|
|
|
CPPFLAGS+= -DHAVE_CTYPE_H -DHAVE_STDLIB_H -DHAVE_STRING_H
|
2007-03-08 09:02:25 +01:00
|
|
|
CPPFLAGS.NetBSD+= -DHAVE_ERR_H
|
2015-08-21 09:40:39 +02:00
|
|
|
CPPFLAGS.Linux+= -fPIC
|
2005-11-13 20:53:19 +01:00
|
|
|
|
2021-07-04 19:43:27 +02:00
|
|
|
USE_LANGUAGES= c99
|
2015-06-18 08:29:18 +02:00
|
|
|
USE_FEATURES+= err
|
|
|
|
MAKE_ENV+= LIBS=${LIBS:Q}
|
2005-11-13 20:53:19 +01:00
|
|
|
|
2021-07-04 19:43:27 +02:00
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
|
|
|
.if ${PKGSRC_COMPILER:Msunpro}
|
|
|
|
CPPFLAGS+= -xcode=pic32
|
|
|
|
.endif
|
|
|
|
|
2007-02-22 20:26:05 +01:00
|
|
|
PERL5_PACKLIST= auto/pkgsrc/Dewey/.packlist
|
2005-11-13 20:53:19 +01:00
|
|
|
|
2011-10-12 00:16:52 +02:00
|
|
|
PKG_INSTALL_FILESDIR= ${PKGSRCDIR}/pkgtools/pkg_install/files
|
2005-11-13 20:53:19 +01:00
|
|
|
PKG_INSTALL_FILES= lib/dewey.c lib/dewey.h lib/defs.h
|
|
|
|
|
|
|
|
do-extract:
|
2006-03-02 12:10:28 +01:00
|
|
|
${MKDIR} ${WRKSRC}
|
2005-11-13 20:53:19 +01:00
|
|
|
${CP} -r ${FILESDIR}/* ${WRKSRC}
|
|
|
|
for f in ${PKG_INSTALL_FILES}; do \
|
2006-03-02 12:10:28 +01:00
|
|
|
${CP} ${PKG_INSTALL_FILESDIR}/$$f ${WRKSRC}; \
|
2005-11-13 20:53:19 +01:00
|
|
|
done
|
2006-03-02 12:10:28 +01:00
|
|
|
${MV} ${WRKSRC}/dewey.c ${WRKSRC}/lib_dewey.c
|
2005-11-13 20:53:19 +01:00
|
|
|
${TOUCH} ${WRKSRC}/nbcompat.h
|
|
|
|
|
|
|
|
.include "../../lang/perl5/module.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|