aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/fv
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-04-27 19:05:30 +0800
committerpawel <pawel@FreeBSD.org>2014-04-27 19:05:30 +0800
commit7c40d27ade8f3623b4ea833790ec78f2cd878229 (patch)
treef7395f40db9dd0625a9d224c0bf097c81f1d0339 /graphics/fv
parent32530a50854af72260963a7f16d9c7b3337d6672 (diff)
downloadfreebsd-ports-gnome-7c40d27ade8f3623b4ea833790ec78f2cd878229.tar.gz
freebsd-ports-gnome-7c40d27ade8f3623b4ea833790ec78f2cd878229.tar.zst
freebsd-ports-gnome-7c40d27ade8f3623b4ea833790ec78f2cd878229.zip
- Add staging support
- Convert to new LIB_DEPENDS format, options framework, USES=gmake
Diffstat (limited to 'graphics/fv')
-rw-r--r--graphics/fv/Makefile20
1 files changed, 7 insertions, 13 deletions
diff --git a/graphics/fv/Makefile b/graphics/fv/Makefile
index c8d79463f64d..b67af3a39677 100644
--- a/graphics/fv/Makefile
+++ b/graphics/fv/Makefile
@@ -13,11 +13,10 @@ COMMENT= Viewer of hdr/pfm images
LICENSE= GPLv2
-LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
+LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png
-USES= pkgconfig zip
+USES= gmake pkgconfig zip
USE_GL= glut
-USE_GMAKE= yes
ALL_TARGET= ${PORTNAME}
CXXFLAGS+= $$(pkg-config --cflags libpng15) \
@@ -29,13 +28,11 @@ LDFLAGS+= $$(pkg-config --libs libpng15) \
PORTDOCS= AUTHORS ChangeLog README
PLIST_FILES= bin/${PORTNAME}
-NO_STAGE= yes
-
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DEBUG DOCS
.include <bsd.port.options.mk>
-.if !defined(WITH_DEBUG)
+.if ! ${PORT_OPTIONS:MDEBUG}
CXXFLAGS+= -DNDEBUG
.endif
@@ -46,11 +43,8 @@ post-patch:
s|^LDFLAGS=|LDFLAGS?=|' ${WRKSRC}/Makefile
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>