openbsd-ports/graphics/p5-PerlMagick/Makefile
bernd 4a71b02b38 Update to ImageMagick/p5-PerlMagick 6.3.2.1.
Initial diff from steven@, updated to -1 by me.
Tested by steven@ and Joachim Schipper. Thanks!

Removed myself from MAINTAINER.

ok steven@
2007-01-31 14:34:58 +00:00

53 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.16 2007/01/31 14:34:58 bernd Exp $
SHARED_ONLY= Yes
COMMENT= "object-oriented Perl interface to ImageMagick"
VER= 6.3.2
DASHVER= 1
DISTNAME= ImageMagick-${VER}-${DASHVER}
PKGNAME= p5-PerlMagick-${VER}.${DASHVER}
CATEGORIES= graphics devel
HOMEPAGE= http://www.imagemagick.org
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=imagemagick/}
# http://www.imagemagick.org/script/license.php
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= ICE SM X11 Xext bz2 freetype jasper jbig jpeg \
lcms m png tiff xml2 z Xt
RUN_DEPENDS= :ImageMagick-${VER}.${DASHVER}:graphics/ImageMagick
BUILD_DEPENDS= ${RUN_DEPENDS} \
::print/ghostscript/gnu:patch
LIB_DEPENDS= Magick.>=10::graphics/ImageMagick
USE_X11= Yes
MODULES= cpan
WRKDIST= ${WRKDIR}/${DISTNAME:S/-${DASHVER}$//}
WRKSRC= ${WRKDIST}/PerlMagick
CFLAGS+= -I${WRKDIR}
pre-configure:
@cd ${WRKDIR} && ln -s print/ghostscript/gnu/ghostscript-8.54-gpl/src ghostscript
@perl -pi -e 's|%%LOCALBASE%%|${LOCALBASE}|g; \
s|%%X11BASE%%|${X11BASE}|g; \
s|%%CFLAGS%%|${CFLAGS}|g;' ${WRKSRC}/Makefile.PL
pre-regress:
@perl -pi -e 's|\@abs_top_srcdir\@|${WRKDIST}|g; \
s|\@abs_top_builddir\@|${WRKDIST}|g; \
s|\@MAGICK_CODER_MODULE_PATH\@|${WRKDIST}/coder|g; \
s|\@MAGICK_CONFIGURE_SRC_PATH\@|${WRKDIST}/config|g; \
s|\@MAGICK_CONFIGURE_BUILD_PATH\@|${WRKDIST}/config|g; \
s|\@MAGICK_FILTER_MODULE_PATH\@|${WRKDIST}/filters|g;'\
< ${WRKDIST}/magick.sh.in > ${WRKDIST}/magick.sh
.include <bsd.port.mk>