1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

- Fix LICENSE

- Simplify docs installation
- Switch to options helpers
- Regenerate patches with `make makepatch`
This commit is contained in:
Dmitry Marakasov 2016-02-06 23:40:46 +00:00
parent 0e6b8ec859
commit 00216d6ae4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=408331
3 changed files with 13 additions and 22 deletions

View File

@ -9,9 +9,10 @@ MASTER_SITES= SF/mview/mview/${PORTVERSION}
DISTNAME= mview-src-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Mesh Viewer
COMMENT= Mesh viewer
LICENSE= GPLv2
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
WRKSRC= ${WRKDIR}/mview-${PORTVERSION}
@ -25,31 +26,21 @@ MAKE_ARGS= QTDIR="${QT_PREFIX}" CC="${CXX}" MOC="${MOC}" \
CXXFLAGS="${CXXFLAGS}" \
LIBPATH="" LIBS_QT4="${LDFLAGS}"
DOCSRCDIR1= ${WRKSRC}
DOC_FILES1= AUTHORS README TODO
DOCSRCDIR2= ${WRKSRC}/Documentation/pics
DOCSDIR2= ${DOCSDIR}/Documentation/pics
DOC_FILES2= *.jpg
DOCSRCDIR3= ${WRKSRC}/Documentation
DOCSDIR3= ${DOCSDIR}/Documentation
DOC_FILES3= *.html *.ico
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|make |$$(MAKE) |g' -e 's|CPPFLAGS|CXXFLAGS|g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|make |$$(MAKE) |g' -e 's|CPPFLAGS|CXXFLAGS|g' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|<values.h>|<cmath>|g' ${WRKSRC}/mesh/mesh.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mview ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${STAGEDIR}${DOCSDIR3}
do-install-DOCS-on:
@cd ${WRKSRC} && ${COPYTREE_SHARE} "AUTHORS README TODO Documentation" \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
--- qt4/glmesh.cpp~ 2012-05-20 00:04:04.000000000 -0300
+++ qt4/glmesh.cpp 2012-05-20 00:04:21.000000000 -0300
--- qt4/glmesh.cpp.orig 2008-09-09 21:38:45 UTC
+++ qt4/glmesh.cpp
@@ -21,6 +21,8 @@
#include "mview.h"
#include "coordinates.h"

View File

@ -1,5 +1,5 @@
--- qt4/glmesh_common.cpp~ 2012-05-20 00:04:54.000000000 -0300
+++ qt4/glmesh_common.cpp 2012-05-20 00:05:03.000000000 -0300
--- qt4/glmesh_common.cpp.orig 2010-10-15 15:35:52 UTC
+++ qt4/glmesh_common.cpp
@@ -10,6 +10,8 @@
#include "glmesh.h"