1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/graphics/fv/Makefile
Mathieu Arnold 4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00

49 lines
1.1 KiB
Makefile

# Created by: Igor Pokrovsky <ip@doom.homeunix.org>
# $FreeBSD$
PORTNAME= fv
PORTVERSION= 1.03
PORTREVISION= 5
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= 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
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MDEBUG}
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} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>