1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/graphics/optar/Makefile
Martin Wilke f1abc62c3e - Support CC/CFLAGS properly
- Update MASTER_SITES
- Add LICENSE

PR:		186734
Submitted by:	ports fury
2014-02-23 16:13:58 +00:00

40 lines
877 B
Makefile

# Created by: antonakis@gmail.com
# $FreeBSD$
PORTNAME= optar
PORTVERSION= 1.0
PORTREVISION= 4
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= libpng15.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>