View | Details | Raw Unified | Return to bug 168036 | Differences between
and this patch

Collapse All | Expand All

(-)graphics/fv/Makefile (-14 / +33 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	fv
8
PORTNAME=	fv
9
PORTVERSION=	1.02
9
PORTVERSION=	1.03
10
PORTREVISION=	2
11
CATEGORIES=	graphics
10
CATEGORIES=	graphics
12
MASTER_SITES=	http://www.eaflux.com/fv/sources/
11
MASTER_SITES=	http://www.eaflux.com/fv/sources/
13
DISTNAME=	${PORTNAME}-src-${PORTVERSION}
12
DISTNAME=	${PORTNAME}-src-${PORTVERSION}
Lines 15-42 Link Here
15
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	A viewer of hdr/pfm images
15
COMMENT=	A viewer of hdr/pfm images
17
16
17
LICENSE=	GPLv2
18
18
LIB_DEPENDS=	png.6:${PORTSDIR}/graphics/png
19
LIB_DEPENDS=	png.6:${PORTSDIR}/graphics/png
19
20
20
USE_ZIP=	yes
21
USE_ZIP=	yes
21
USE_GL=		glut
22
USE_GL=		glut
23
USE_GNOME=	pkgconfig
24
USE_GMAKE=	yes
25
ALL_TARGET=	${PORTNAME}
26
MAKE_JOBS_SAFE=	yes
27
28
CXXFLAGS+=	$$(pkg-config --cflags glut libpng14) \
29
		${PTHREAD_CFLAGS}
30
LDFLAGS+=	$$(pkg-config --libs glut libpng14) -lbz2 -llzma -lm \
31
		${PTHREAD_LIBS}
22
32
23
PORTDOCS=	README
33
PORTDOCS=	AUTHORS ChangeLog README
24
PLIST_FILES=	bin/${PORTNAME}
34
PLIST_FILES=	bin/${PORTNAME}
25
35
26
do-build:
36
.include <bsd.port.pre.mk>
27
	cd ${BUILD_WRKSRC} \
37
28
		&& ${CXX} ${CXXFLAGS} -DNDEBUG -I${WRKSRC} \
38
.if ((${OSVERSION} >= 900000 && ${OSVERSION} < 900012) || ${OSVERSION} < 800505)
29
		-I${LOCALBASE}/include ${CPPFLAGS} ${PTHREAD_CFLAGS} \
39
LIB_DEPENDS+=	lzma.5:${PORTSDIR}/archivers/xz
30
		${LDFLAGS} -L${LOCALBASE}/lib -lpng -lz -lbz2 -lglut \
40
CXXFLAGS+=	$$(pkg-config --cflags liblzma)
31
		-lGLU -lGL -lXi -lXmu -lX11 -lXext -lSM -lm ${PTHREAD_LIBS} \
41
LDFLAGS+=	$$(pkg-config --libs liblzma)
32
		-o ${PORTNAME} *.c
42
.endif
43
44
.if !defined(WITH_DEBUG)
45
CXXFLAGS+=	-DNDEBUG
46
.endif
47
48
post-patch:
49
	@${REINPLACE_CMD} -e \
50
		's|^CXX=|CXX?=| ; \
51
		 s|^CXXFLAGS=|CXXFLAGS?=| ; \
52
		 s|^LDFLAGS=|LDFLAGS?=|' ${WRKSRC}/Makefile
33
53
34
do-install:
54
do-install:
35
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
55
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
36
56
.if !defined(NOPORTDOCS)
37
.ifndef (NOPORTDOCS)
57
	@${MKDIR} ${DOCSDIR}
38
	${MKDIR} ${DOCSDIR}
39
	${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
58
	${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
40
.endif
59
.endif
41
60
42
.include <bsd.port.mk>
61
.include <bsd.port.post.mk>
(-)graphics/fv/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (fv-src-1.02.zip) = 698b0423df4372390572d0cb2c4355999425f95e2fe6939f16998c4e7a1f9f58
1
SHA256 (fv-src-1.03.zip) = 9b2c78ec52b92689e2e1e30b2571d83e0a941797f6562bf5c5ffc9d923e5d2fc
2
SIZE (fv-src-1.02.zip) = 42169
2
SIZE (fv-src-1.03.zip) = 43011

Return to bug 168036