Changelogs: * https://tcobbs.github.io/ldview/ChangeHistory.html * https://github.com/tcobbs/ldview/compare/v4.5...v4.6 Approved by: yuri@ (maintainer, Mentor) Differential Revision: https://reviews.freebsd.org/D52891
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
PORTNAME= ldview
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 4.6
|
|
CATEGORIES= cad
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= LDraw model viewer
|
|
WWW= https://tcobbs.github.io/ldview/
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/../license.txt
|
|
|
|
LIB_DEPENDS= lib3ds.so:graphics/lib3ds \
|
|
libgl2ps.so:print/gl2ps \
|
|
libminizip.so:archivers/minizip \
|
|
libOSMesa.so:graphics/libosmesa \
|
|
libpng16.so:graphics/png \
|
|
libtinyxml.so:textproc/tinyxml
|
|
RUN_DEPENDS= bash:shells/bash \
|
|
ldraw>0:cad/ldraw
|
|
|
|
USES= desktop-file-utils gl gmake jpeg qmake qt:5 shared-mime-info \
|
|
shebangfix xorg
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= tcobbs
|
|
USE_GL= gl glu
|
|
USE_QT= core gui linguist network opengl printsupport widgets \
|
|
buildtools:build qmake:build
|
|
USE_XORG= x11
|
|
|
|
SHEBANG_FILES= desktop/ldraw-thumbnailer
|
|
|
|
QMAKE_ARGS= CONFIG+=EXPORT_3DS
|
|
|
|
WRKSRC_SUBDIR= QT
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|"/usr/share/ldraw"|"${PREFIX}/share/ldraw"|' ${WRKSRC}/ModelViewerWidget.cpp
|
|
.if ${OPSYS} == FreeBSD
|
|
@${REINPLACE_CMD} -e 's|register ||' ${WRKSRC}/../LDLoader/LDrawIni.c
|
|
.endif
|
|
|
|
pre-configure:
|
|
@cd ${WRKSRC} && ${LRELEASE} LDView.pro
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/LDView
|
|
|
|
.include <bsd.port.mk>
|