freebsd-ports/graphics/optar/Makefile
Koop Mast 289883b11b Update ImageMagick to 6.9.10.14 [1]
* Add PKGNAMESUFFIX and rename the directory. This was done to show
  that IM6 is not the "main" version. But still fully supported by upstream.
* Convert a number of options to optionhelpers.
* Add option for ISO/IEC 23008-12:2017 HEIF suport
* Add comment to pkg-descr explaining IM6's "legacy" tag.
* Add comment to the patch-config_policy.xml file why it still needed.

Please note that IM7 is not a drop in replacement due to library API and
command arguments changes. And as a result ports need to decide for themself
which version to use.

Chase these changes in all the ports that using IM6.

PR:		225102 (based on, only the version update) [1]
Submitted by:	Pascal Christen <pascal.christen@hostpoint.ch>
2018-11-10 19:57:07 +00:00

41 lines
948 B
Makefile

# Created by: antonakis@gmail.com
# $FreeBSD$
PORTNAME= optar
PORTVERSION= 2015.02.09
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://ronja.twibright.com/
DISTNAME= ${PORTNAME}
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Tool for encoding data on paper
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpng.so:graphics/png
RUN_DEPENDS= convert:graphics/ImageMagick6
WRKSRC= ${WRKDIR}/optar_dist
USES= gmake tar:tgz
PLIST_FILES= bin/optar bin/unoptar bin/pgm2ps
post-patch:
@${REINPLACE_CMD} -e \
's|^CFLAGS|#CFLAGS| ; \
s|gcc |$$(CC) | ; \
s|-I/usr/local/include/libpng|$$$$(libpng-config --I_opts)| ; \
s|-L/usr/local/lib|$$$$(libpng-config --L_opts)|' \
${WRKSRC}/Makefile
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} optar unoptar \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC} && ${INSTALL_SCRIPT} pgm2ps \
${STAGEDIR}${PREFIX}/bin)
.include <bsd.port.mk>