mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
cad/ldview: New port: LDraw model viewer
This commit is contained in:
parent
599bec49cf
commit
4c82b2aaca
@ -64,6 +64,7 @@
|
||||
SUBDIR += klayout
|
||||
SUBDIR += ktechlab
|
||||
SUBDIR += ldraw
|
||||
SUBDIR += ldview
|
||||
SUBDIR += leocad
|
||||
SUBDIR += lepton-eda
|
||||
SUBDIR += libopencad
|
||||
|
43
cad/ldview/Makefile
Normal file
43
cad/ldview/Makefile
Normal file
@ -0,0 +1,43 @@
|
||||
PORTNAME= ldview
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 4.4_Beta5
|
||||
CATEGORIES= cad
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
COMMENT= LDraw model viewer
|
||||
|
||||
LICENSE= GPLv2
|
||||
LICENSE_FILE= ${WRKSRC}/../license.txt
|
||||
|
||||
LIB_DEPENDS= lib3ds.so:graphics/lib3ds \
|
||||
libgl2ps.so:print/gl2ps \
|
||||
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_QT= core gui linguist opengl printsupport widgets buildtools_build qmake_build
|
||||
USE_GL= gl glu
|
||||
USE_XORG= x11
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= tcobbs
|
||||
|
||||
SHEBANG_FILES= desktop/ldraw-thumbnailer
|
||||
|
||||
WRKSRC_SUBDIR= QT
|
||||
|
||||
QMAKE_ARGS= MANDIR=${PREFIX}/man CONFIG+=EXPORT_3DS
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|"/usr/share/ldraw"|"${PREFIX}/share/ldraw"|' ${WRKSRC}/ModelViewerWidget.cpp
|
||||
|
||||
pre-configure:
|
||||
@cd ${WRKSRC} && lrelease LDView.pro
|
||||
|
||||
post-install:
|
||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/LDView
|
||||
|
||||
.include <bsd.port.mk>
|
3
cad/ldview/distinfo
Normal file
3
cad/ldview/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1623141040
|
||||
SHA256 (tcobbs-ldview-v4.4_Beta5_GH0.tar.gz) = 28a98caf7862013a4ef46a74e61972a572fd2741335512fd779fc16e7f3dcee6
|
||||
SIZE (tcobbs-ldview-v4.4_Beta5_GH0.tar.gz) = 10243973
|
23
cad/ldview/files/patch-LDView.pro
Normal file
23
cad/ldview/files/patch-LDView.pro
Normal file
@ -0,0 +1,23 @@
|
||||
--- LDView.pro.orig 2021-06-05 07:06:46 UTC
|
||||
+++ LDView.pro
|
||||
@@ -78,9 +78,9 @@ MAKEOPT += POSTFIX=$$POSTFIX
|
||||
OBJECTS_DIR = .obj$$POSTFIX
|
||||
MAKEOPT += \"TESTING=-I$$[QT_INSTALL_HEADERS] $$QMAKE_CXXFLAGS_STATIC_LIB $(TESTING)\"
|
||||
|
||||
-!freebsd {
|
||||
+#!freebsd {
|
||||
DEFINES += EXPORT_3DS
|
||||
-}
|
||||
+#}
|
||||
#DEFINES += _NO_BOOST
|
||||
|
||||
QMAKE_CXXFLAGS += $(Q_CXXFLAGS)
|
||||
@@ -93,7 +93,7 @@ freebsd {
|
||||
message("FreeBSD")
|
||||
MAKE = gmake
|
||||
DEFINES += USE_CPP11
|
||||
-MAKEOPT += EXPORT_3DS=
|
||||
+#MAKEOPT += EXPORT_3DS=
|
||||
}
|
||||
|
||||
contains(USE_CPP11,NO){
|
8
cad/ldview/pkg-descr
Normal file
8
cad/ldview/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
LDView is a real-time 3D viewer for displaying LDraw models using
|
||||
hardware-accellerated 3D graphics. For information on LDraw, please visit
|
||||
www.ldraw.org, the centralized LDraw information site.
|
||||
|
||||
The program can read LDraw LDR/DAT files as well as MPD files. It then allows
|
||||
you to rotate the model around to any angle with the mouse.
|
||||
|
||||
WWW: https://tcobbs.github.io/ldview/
|
33
cad/ldview/pkg-plist
Normal file
33
cad/ldview/pkg-plist
Normal file
@ -0,0 +1,33 @@
|
||||
bin/LDView
|
||||
bin/ldraw-thumbnailer
|
||||
man/man1/LDView.1.gz
|
||||
man/man1/ldraw-thumbnailer.1.gz
|
||||
share/application-registry/ldview.applications
|
||||
share/applications/ldview.desktop
|
||||
share/icons/gnome/32x32/mimetypes/gnome-mime-application-x-ldraw.png
|
||||
share/icons/gnome/32x32/mimetypes/gnome-mime-application-x-multipart-ldraw.png
|
||||
%%DATADIR%%/8464.mpd
|
||||
%%DATADIR%%/ChangeHistory.html
|
||||
%%DATADIR%%/Help.html
|
||||
%%DATADIR%%/LDViewMessages.ini
|
||||
%%DATADIR%%/LDViewMessages_cz.ini
|
||||
%%DATADIR%%/LDViewMessages_de.ini
|
||||
%%DATADIR%%/LDViewMessages_hu.ini
|
||||
%%DATADIR%%/LDViewMessages_it.ini
|
||||
%%DATADIR%%/LGEO.xml
|
||||
%%DATADIR%%/Readme.txt
|
||||
%%DATADIR%%/SansSerif.fnt
|
||||
%%DATADIR%%/ldview_cz.qm
|
||||
%%DATADIR%%/ldview_de.qm
|
||||
%%DATADIR%%/ldview_en.qm
|
||||
%%DATADIR%%/ldview_hu.qm
|
||||
%%DATADIR%%/ldview_it.qm
|
||||
%%DATADIR%%/license.txt
|
||||
%%DATADIR%%/m6459.ldr
|
||||
%%DATADIR%%/todo.txt
|
||||
share/mime-info/ldraw.keys
|
||||
share/mime-info/ldraw.mime
|
||||
share/mime/packages/ldraw.xml
|
||||
share/pixmaps/gnome-ldraw.png
|
||||
share/pixmaps/ldview.png
|
||||
share/thumbnailers/ldview.thumbnailer
|
Loading…
Reference in New Issue
Block a user