2013-09-20 20:35:44 +02:00
|
|
|
# Created by: antonakis@gmail.com
|
2008-10-05 12:09:53 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= optar
|
2015-12-01 00:36:29 +01:00
|
|
|
PORTVERSION= 2015.02.09
|
2018-11-10 20:57:07 +01:00
|
|
|
PORTREVISION= 1
|
2008-10-05 12:09:53 +02:00
|
|
|
CATEGORIES= graphics
|
2014-02-23 17:13:58 +01:00
|
|
|
MASTER_SITES= http://ronja.twibright.com/
|
2015-12-01 00:36:29 +01:00
|
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
|
2008-10-05 12:09:53 +02:00
|
|
|
|
2014-02-05 09:22:02 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-02-23 17:13:58 +01:00
|
|
|
COMMENT= Tool for encoding data on paper
|
2008-10-05 12:09:53 +02:00
|
|
|
|
2014-02-23 17:13:58 +01:00
|
|
|
LICENSE= GPLv2
|
2015-12-01 00:36:29 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2015-04-05 16:01:51 +02:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
2018-11-10 20:57:07 +01:00
|
|
|
RUN_DEPENDS= convert:graphics/ImageMagick6
|
2008-10-05 12:09:53 +02:00
|
|
|
|
2014-02-23 17:13:58 +01:00
|
|
|
WRKSRC= ${WRKDIR}/optar_dist
|
|
|
|
|
2015-12-01 00:36:29 +01:00
|
|
|
USES= gmake tar:tgz
|
2008-10-05 12:09:53 +02:00
|
|
|
|
|
|
|
PLIST_FILES= bin/optar bin/unoptar bin/pgm2ps
|
|
|
|
|
2014-02-23 17:13:58 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|^CFLAGS|#CFLAGS| ; \
|
|
|
|
s|gcc |$$(CC) | ; \
|
2015-12-01 00:36:29 +01:00
|
|
|
s|-I/usr/local/include/libpng|$$$$(libpng-config --I_opts)| ; \
|
|
|
|
s|-L/usr/local/lib|$$$$(libpng-config --L_opts)|' \
|
2014-02-23 17:13:58 +01:00
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} optar unoptar \
|
|
|
|
${STAGEDIR}${PREFIX}/bin)
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_SCRIPT} pgm2ps \
|
|
|
|
${STAGEDIR}${PREFIX}/bin)
|
|
|
|
|
2008-10-05 12:09:53 +02:00
|
|
|
.include <bsd.port.mk>
|