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> |