555f5abf3a
- The port version changes from 1.0 to 2015.02.09 - Add license file - Clean up Makefile - Remove now unneeded patch PR: 204198 Submitted by: tkato432
40 lines
955 B
Makefile
40 lines
955 B
Makefile
# Created by: antonakis@gmail.com
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= optar
|
|
PORTVERSION= 2015.02.09
|
|
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:${PORTSDIR}/graphics/png
|
|
RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick
|
|
|
|
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>
|