1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/graphics/fv/Makefile
Martin Wilke 18c928420d - Update to 1.03
PR:		168036
Submitted by:	Ports Fury
2012-05-21 03:10:32 +00:00

64 lines
1.4 KiB
Makefile

# New ports collection makefile for: fv
# Date created: 07 Sep 2005
# Whom: Igor Pokrovsky <ip@doom.homeunix.org>
#
# $FreeBSD$
#
PORTNAME= fv
PORTVERSION= 1.03
CATEGORIES= graphics
MASTER_SITES= http://www.eaflux.com/fv/sources/
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= AUTHORS ChangeLog README
PLIST_FILES= bin/${PORTNAME}
.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
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>