freebsd-ports/textproc/qr/Makefile
Tobias C. Berner 45526ecbee framework: Add new USES 'magick' for graphics/ImageMagick*
A new USES has been added to depend on ImageMagick.

	USES=magick

adds a LIB_DEPENDS on graphics/ImageMagick${IMAGEMAGICK_DEFAULT}.

If a specific version is required, use for example

	USES=magick:6        resp.     USES=magick:7

If only a build, run or test is required, use for example

	USES=magick:build    resp.     USES=magick:6,build,test

If a dependency on the nox11 flavor is required, use for example

	USES=magick:nox11    resp.     USES=magick:7,nox11,run,test

See magick.mk for more details on the available flags.

The tree has been completely converted to make use of this.

Approved by:	bapt
Differential Revision: https://reviews.freebsd.org/D32754
2021-12-11 14:50:53 +01:00

30 lines
700 B
Makefile

PORTNAME= qr
DISTVERSION= g20200216
CATEGORIES= textproc graphics
MAINTAINER= lcook@FreeBSD.org
COMMENT= Generate textual QR codes using terminal
LICENSE= UNLICENSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libqrencode.so:graphics/libqrencode
TEST_DEPENDS= ${LOCALBASE}/share/fonts/freefont-ttf/FreeMono.ttf:x11-fonts/freefont-ttf \
autom4te:devel/autoconf \
zbarimg:graphics/zbar
USES= gmake magick:6,test
USE_CSTD= c99
USE_GITHUB= yes
GH_ACCOUNT= Y2Z
GH_TAGNAME= 20713de
MAKE_ARGS= LIBS="-I${LOCALBASE}/include -L${LOCALBASE}/lib -lqrencode -lm"
TEST_TARGET= test
PLIST_FILES= bin/${PORTNAME}
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>