ports/168036: graphics/fv: Update to version 1.03
KATO Tsuguru
tkato432 at yahoo.com
Thu May 17 18:10:07 UTC 2012
>Number: 168036
>Category: ports
>Synopsis: graphics/fv: Update to version 1.03
>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 May 17 18:10:06 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.4-RELEASE-p5 i386
>Organization:
>Environment:
>Description:
- Update to version 1.03
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/graphics/fv/Makefile graphics/fv/Makefile
--- /usr/ports/graphics/fv/Makefile 2010-03-28 15:36:30.000000000 +0900
+++ graphics/fv/Makefile 2012-05-09 01:25:35.000000000 +0900
@@ -6,8 +6,7 @@
#
PORTNAME= fv
-PORTVERSION= 1.02
-PORTREVISION= 2
+PORTVERSION= 1.03
CATEGORIES= graphics
MASTER_SITES= http://www.eaflux.com/fv/sources/
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
@@ -15,28 +14,48 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= A viewer of hdr/pfm images
+LICENSE= GPLv2
+
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png
USE_ZIP= yes
USE_GL= glut
+USE_GNOME= pkgconfig
+USE_GMAKE= yes
+ALL_TARGET= ${PORTNAME}
+MAKE_JOBS_SAFE= yes
+
+CXXFLAGS+= $$(pkg-config --cflags glut libpng14) \
+ ${PTHREAD_CFLAGS}
+LDFLAGS+= $$(pkg-config --libs glut libpng14) -lbz2 -llzma -lm \
+ ${PTHREAD_LIBS}
-PORTDOCS= README
+PORTDOCS= AUTHORS ChangeLog README
PLIST_FILES= bin/${PORTNAME}
-do-build:
- cd ${BUILD_WRKSRC} \
- && ${CXX} ${CXXFLAGS} -DNDEBUG -I${WRKSRC} \
- -I${LOCALBASE}/include ${CPPFLAGS} ${PTHREAD_CFLAGS} \
- ${LDFLAGS} -L${LOCALBASE}/lib -lpng -lz -lbz2 -lglut \
- -lGLU -lGL -lXi -lXmu -lX11 -lXext -lSM -lm ${PTHREAD_LIBS} \
- -o ${PORTNAME} *.c
+.include <bsd.port.pre.mk>
+
+.if ((${OSVERSION} >= 900000 && ${OSVERSION} < 900012) || ${OSVERSION} < 800505)
+LIB_DEPENDS+= lzma.5:${PORTSDIR}/archivers/xz
+CXXFLAGS+= $$(pkg-config --cflags liblzma)
+LDFLAGS+= $$(pkg-config --libs liblzma)
+.endif
+
+.if !defined(WITH_DEBUG)
+CXXFLAGS+= -DNDEBUG
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|^CXX=|CXX?=| ; \
+ s|^CXXFLAGS=|CXXFLAGS?=| ; \
+ s|^LDFLAGS=|LDFLAGS?=|' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-
-.ifndef (NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -urN /usr/ports/graphics/fv/distinfo graphics/fv/distinfo
--- /usr/ports/graphics/fv/distinfo 2011-07-03 23:11:13.000000000 +0900
+++ graphics/fv/distinfo 2012-05-08 22:17:19.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (fv-src-1.02.zip) = 698b0423df4372390572d0cb2c4355999425f95e2fe6939f16998c4e7a1f9f58
-SIZE (fv-src-1.02.zip) = 42169
+SHA256 (fv-src-1.03.zip) = 9b2c78ec52b92689e2e1e30b2571d83e0a941797f6562bf5c5ffc9d923e5d2fc
+SIZE (fv-src-1.03.zip) = 43011
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list