freebsd-ports/graphics/fv/Makefile
Niclas Zeising be6c15b5c6 Add USES=xorg USES=gl, ports categories g
Add USES=xorg and USES=gl to ports in categories starting with 'g'.
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
2019-11-05 22:16:14 +00:00

47 lines
1.0 KiB
Makefile

# Created by: Igor Pokrovsky <ip@doom.homeunix.org>
# $FreeBSD$
PORTNAME= fv
PORTVERSION= 1.03
PORTREVISION= 6
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>