Date: Fri, 14 Feb 2014 03:05:37 +0900 From: KATO Tsuguru <tkato432@yahoo.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/186734: graphics/optar: Support CC/CFLAGS properly Message-ID: <20140214030537.3a306b1dfed53843fce3b992@yahoo.com> Resent-Message-ID: <201402131840.s1DIe0Mw017261@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 186734 >Category: ports >Synopsis: graphics/optar: Support CC/CFLAGS properly >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Feb 13 18:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 8.4-RELEASE-p7 i386 >Organization: >Environment: >Description: - Support CC/CFLAGS properly - Update MASTER_SITES - Add LICENSE >How-To-Repeat: >Fix: diff -urN /usr/ports/graphics/optar/Makefile graphics/optar/Makefile --- /usr/ports/graphics/optar/Makefile 2014-02-11 02:39:11.000000000 +0900 +++ graphics/optar/Makefile 2014-02-14 00:00:00.000000000 +0900 @@ -3,31 +3,38 @@ PORTNAME= optar PORTVERSION= 1.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics -MASTER_SITES= http://xps.crucible.gr/ -DISTFILES= optar.tgz \ - font.h -EXTRACT_ONLY= optar.tgz +MASTER_SITES= http://ronja.twibright.com/optar/ +DIST_SUBDIR= repacked +DISTFILES= optar.tgz MAINTAINER= ports@FreeBSD.org -COMMENT= A tool for encoding data on paper +COMMENT= Tool for encoding data on paper -DEPRECATED= No more public distfiles -EXPIRATION_DATE= 2014-03-10 +LICENSE= GPLv2 -BUILD_DEPENDS= ${LOCALBASE}/include/libpng15/png.h:${PORTSDIR}/graphics/png +LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick -USE_GMAKE= yes -WRKSRC= ${WRKDIR}/optar +WRKSRC= ${WRKDIR}/optar_dist + +USES= gmake PLIST_FILES= bin/optar bin/unoptar bin/pgm2ps -NO_STAGE= yes -post-extract: - @${RM} -v ${WRKSRC}/font.h - @${CP} -v ${DISTDIR}/font.h ${WRKSRC}/font.h - @${SED} 's:/usr/local:${LOCALBASE}:g' ${WRKSRC}/Makefile > ${WRKSRC}/Makefile.new - @${MV} ${WRKSRC}/Makefile.new ${WRKSRC}/Makefile +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> diff -urN /usr/ports/graphics/optar/distinfo graphics/optar/distinfo --- /usr/ports/graphics/optar/distinfo 2014-01-23 05:30:25.000000000 +0900 +++ graphics/optar/distinfo 2014-02-14 00:00:00.000000000 +0900 @@ -1,4 +1,2 @@ -SHA256 (optar.tgz) = 9c37dfba31e2d5ebb43a2ac066b67d774bf7ba059f882047668be6567793c942 -SIZE (optar.tgz) = 28384 -SHA256 (font.h) = f4e284c152fde4034f0950e4b52ee137f0e3085dd510f3ccc898aaaf3d8f3bce -SIZE (font.h) = 81164 +SHA256 (repacked/optar.tgz) = b78fa6a41f6c699917f8b537c63bdf99b93133f034b4e1eaeabd0b6cbc9c5819 +SIZE (repacked/optar.tgz) = 37825 diff -urN /usr/ports/graphics/optar/pkg-descr graphics/optar/pkg-descr --- /usr/ports/graphics/optar/pkg-descr 2014-01-23 05:30:25.000000000 +0900 +++ graphics/optar/pkg-descr 2014-02-14 00:00:00.000000000 +0900 @@ -1,6 +1,5 @@ -Optar stands for OPTical ARchiver. -It's a codec for encoding data on paper, then you print it with a laser printer. -If you want to read the recording, scan it with a scanner and feed into the -decoder program. +Optar stands for OPTical ARchiver. It's a codec for encoding data on +paper, then you print it with a laser printer. If you want to read the +recording, scan it with a scanner and feed into the decoder program. WWW: http://ronja.twibright.com/optar/ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140214030537.3a306b1dfed53843fce3b992>