summaryrefslogtreecommitdiffstats
path: root/graphics/optar/Makefile
blob: cfcc9e633f5a7ae3454ffa8b3b6728b6dac65965 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Created by: antonakis@gmail.com
# $FreeBSD$

PORTNAME=	optar
PORTVERSION=	1.0
PORTREVISION=	5
CATEGORIES=	graphics
MASTER_SITES=	http://ronja.twibright.com/
DISTFILES=	optar.tgz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Tool for encoding data on paper

LICENSE=	GPLv2

LIB_DEPENDS=	libpng.so:${PORTSDIR}/graphics/png
RUN_DEPENDS=	convert:${PORTSDIR}/graphics/ImageMagick

WRKSRC=		${WRKDIR}/optar_dist

USES=		gmake

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>
OpenPOWER on IntegriCloud