pkgsrc/graphics/p5-Image-Imlib2/Makefile
grant 908e765695 since perl is now built with threads on most platforms, the perl archlib
module directory has changed (eg. "darwin-2level" vs.
"darwin-thread-multi-2level").

binary packages of perl modules need to be distinguishable between
being built against threaded perl and unthreaded perl, so bump the
PKGREVISION of all perl module packages and introduce
BUILDLINK_RECOMMENDED for perl as perl>=5.8.5nb5 so the correct
dependencies are registered and the binary packages are distinct.

addresses PR pkg/28619 from H. Todd Fujinaka.
2004-12-20 11:30:55 +00:00

45 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.10 2004/12/20 11:31:04 grant Exp $
#
DISTNAME= Image-Imlib2-1.03
PKGNAME= p5-${DISTNAME}
PKGREVISION= 3
SVR4_PKGNAME= p5im2
CATEGORIES= graphics perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Image/}
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://theory.uwinnipeg.ca/CPAN/data/Image-Imlib2/
COMMENT= Interface to the Imlib2 image library
DEPENDS+= p5-Module-Build-[0-9]*:../../devel/p5-Module-Build
USE_PERL5= run
USE_X11= YES
USE_BUILDLINK3= YES
# If the X11 and Xext libraries are not weeded out,
# they will be unresolved in the resulting .so
IMLIB2LIBS= $$CONFIG --libs | ${SED} -e 's/-lX11//g' -e 's/-lXext//g'
post-patch:
cd ${WRKSRC} && \
${SED} -e 's,@IMLIB2LIBS@,${IMLIB2LIBS},' Build.PL > Build.PL.new && \
${MV} -f Build.PL.new Build.PL
do-configure:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PERL5} Build.PL
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build
do-test:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build test
do-install:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build install
.include "../../graphics/imlib2/buildlink3.mk"
.include "../../lang/perl5/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"