openbsd-ports/graphics/zxing/Makefile
naddy f3b9288d92 * honor CXX/CXXFLAGS
* explicitly link with libiconv (ImageMagick pulls it in, but
ImageMagick-no_x11 doesn't)
2012-04-27 19:55:53 +00:00

44 lines
984 B
Makefile

# $OpenBSD: Makefile,v 1.2 2012/04/27 19:55:53 naddy Exp $
COMMENT = barcode image processing library
DISTNAME = ZXing-2.0
PKGNAME = ${DISTNAME:L}
REVISION = 0
CATEGORIES = graphics
HOMEPAGE = https://code.google.com/p/zxing/
# Apache 2.0
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB += Magick++ MagickCore MagickWand c m pthread stdc++
MASTER_SITES = https://zxing.googlecode.com/files/
EXTRACT_SUFX = .zip
MODULES = converters/libiconv devel/scons
BUILD_DEPENDS = devel/cppunit
LIB_DEPENDS = graphics/ImageMagick
WRKDIST = ${WRKDIR}/${DISTNAME:L}
WRKSRC = ${WRKDIST}/cpp
SUBST_VARS += WRKDIST WRKSRC CXX CXXFLAGS
pre-configure:
${SUBST_CMD} ${WRKSRC}/SConscript ${WRKSRC}/blackboxtest.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/build/zxing ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/build/libzxing.a ${PREFIX}/lib
do-regress:
sh ${WRKSRC}/blackboxtest.sh
.include <bsd.port.mk>