aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2012-05-21 11:10:32 +0800
committermiwi <miwi@FreeBSD.org>2012-05-21 11:10:32 +0800
commit1f9e58b6e3b0aa52de4745a49898a81112acb47b (patch)
treed58bda2756697f424f6db6d92a6179ce1b8c5e3b /graphics
parent5464c01e4a4eb3dea4656d0f0a002105fb063242 (diff)
downloadfreebsd-ports-gnome-1f9e58b6e3b0aa52de4745a49898a81112acb47b.tar.gz
freebsd-ports-gnome-1f9e58b6e3b0aa52de4745a49898a81112acb47b.tar.zst
freebsd-ports-gnome-1f9e58b6e3b0aa52de4745a49898a81112acb47b.zip
- Update to 1.03
PR: 168036 Submitted by: Ports Fury
Diffstat (limited to 'graphics')
-rw-r--r--graphics/fv/Makefile49
-rw-r--r--graphics/fv/distinfo4
2 files changed, 37 insertions, 16 deletions
diff --git a/graphics/fv/Makefile b/graphics/fv/Makefile
index 571158bb0fbb..8ace7afb3c43 100644
--- a/graphics/fv/Makefile
+++ b/graphics/fv/Makefile
@@ -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,50 @@ DISTNAME= ${PORTNAME}-src-${PORTVERSION}
MAINTAINER= ports@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 libpng14) \
+ -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
+LDFLAGS+= $$(pkg-config --libs libpng14) \
+ -L${LOCALBASE}/lib -lglut -lGLU -lGL -lbz2 -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)
+.else
+LDFLAGS+= -llzma
+.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 --git a/graphics/fv/distinfo b/graphics/fv/distinfo
index b02ebc97be06..03ab965ee534 100644
--- a/graphics/fv/distinfo
+++ b/graphics/fv/distinfo
@@ -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