1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Add staging support

- Convert to new LIB_DEPENDS format, options framework, USES=gmake
This commit is contained in:
Pawel Pekala 2014-04-27 11:05:30 +00:00
parent f660a251cd
commit a853d7356c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=352410

View File

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