Collection. Perl has two pseudo-constants describing the current location in your source code, __FILE__ and __LINE__. The Perl 5 module Dir::Self adds __DIR__, which expands to the directory your source file is in, as an absolute pathname.
20 lines
523 B
Makefile
20 lines
523 B
Makefile
# $NetBSD: Makefile,v 1.1.1.1 2010/08/09 23:11:58 seb Exp $
|
|
#
|
|
|
|
DISTNAME= Dir-Self-0.10
|
|
PKGNAME= p5-${DISTNAME}
|
|
CATEGORIES= devel perl5
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Dir/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://search.cpan.org/dist/Dir-Self/
|
|
COMMENT= Perl 5 __DIR__ constant for source file's directory
|
|
LICENSE= ${PERL5_LICENSE}
|
|
|
|
USE_LANGUAGES= # empty
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
PERL5_PACKLIST= auto/Dir/Self/.packlist
|
|
|
|
.include "../../lang/perl5/module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|