blob: 088a524131b9795f3c5f544ee2990a430200e7e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Created by: Igor Pokrovsky <ip@doom.homeunix.org>
PORTNAME= fv
PORTVERSION= 1.03
PORTREVISION= 7
CATEGORIES= graphics
MASTER_SITES= http://www.eaflux.com/fv/sources/
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Viewer of hdr/pfm images
LICENSE= GPLv2+
LIB_DEPENDS= libpng.so:graphics/png
USES= gl gmake pkgconfig zip
USE_GL= glut
ALL_TARGET= ${PORTNAME}
CXXFLAGS+= $$(pkg-config --cflags libpng) -I${LOCALBASE}/include
LDFLAGS+= $$(pkg-config --libs libpng) -L${LOCALBASE}/lib -lglut \
-lGLU -lGL -lbz2 -lm -lz -llzma -lpthread
PORTDOCS= AUTHORS ChangeLog README
PLIST_FILES= bin/${PORTNAME}
OPTIONS_DEFINE= DEBUG DOCS
DEBUG_CXXFLAGS_OFF= -DNDEBUG
post-patch:
@${REINPLACE_CMD} -e \
's|^CXX=|CXX?=| ; \
s|^CXXFLAGS=|CXXFLAGS?=| ; \
s|^LDFLAGS=|LDFLAGS?=|' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|