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
36 lines
800 B
Makefile
36 lines
800 B
Makefile
# Created by: Mateusz Piotrowski <0mp@FreeBSD.org>
|
|
|
|
PORTNAME= meh
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.3-27
|
|
DISTVERSIONSUFFIX= -g69f653a
|
|
CATEGORIES= graphics
|
|
|
|
MAINTAINER= 0mp@FreeBSD.org
|
|
COMMENT= Simple image viewer using raw XLib convert from ImageMagick
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libgif.so:graphics/giflib \
|
|
libpng.so:graphics/png
|
|
|
|
USES= gmake jpeg localbase magick:7,run xorg
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= jhawthorn
|
|
USE_XORG= x11 xext
|
|
|
|
ALL_TARGET= ${PORTNAME}
|
|
|
|
LIBS+= -lgif -ljpeg -lpng -lX11 -lXext
|
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
share/man/man1/${PORTNAME}.1.gz
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
|
|
${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \
|
|
${STAGEDIR}${MAN1PREFIX}/share/man/man1
|
|
|
|
.include <bsd.port.mk>
|