2013-03-11 07:10:51 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.3 2013/03/11 11:10:56 espie Exp $
|
2012-04-03 23:38:45 -04:00
|
|
|
|
|
|
|
COMMENT = barcode image processing library
|
|
|
|
|
|
|
|
DISTNAME = ZXing-2.0
|
|
|
|
PKGNAME = ${DISTNAME:L}
|
2012-04-27 15:55:53 -04:00
|
|
|
REVISION = 0
|
2012-04-03 23:38:45 -04:00
|
|
|
|
|
|
|
CATEGORIES = graphics
|
|
|
|
|
|
|
|
HOMEPAGE = https://code.google.com/p/zxing/
|
|
|
|
|
|
|
|
# Apache 2.0
|
|
|
|
PERMIT_PACKAGE_CDROM = 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
|
|
|
|
|
2012-04-27 15:55:53 -04:00
|
|
|
SUBST_VARS += WRKDIST WRKSRC CXX CXXFLAGS
|
2012-04-03 23:38:45 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2013-03-11 07:10:51 -04:00
|
|
|
do-test:
|
2012-04-03 23:38:45 -04:00
|
|
|
sh ${WRKSRC}/blackboxtest.sh
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|