mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
Add new port cad/librecad:
LibreCAD is a 2D CAD drawing application based on the community edition of QCad (www.qcad.org). WWW: http://librecad.org
This commit is contained in:
parent
9d263ef152
commit
f4e8ce4fce
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=288505
57
cad/librecad/Makefile
Normal file
57
cad/librecad/Makefile
Normal file
@ -0,0 +1,57 @@
|
||||
# New ports collection makefile for: librecad
|
||||
# Date created: 2012-01-03
|
||||
# Whom: Max Brazhnikov <makc@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= librecad
|
||||
PORTVERSION= 1.0.0
|
||||
CATEGORIES= cad
|
||||
MASTER_SITES= LOCAL/makc
|
||||
|
||||
MAINTAINER= makc@FreeBSD.org
|
||||
COMMENT= 2D CAD system
|
||||
|
||||
USE_XZ= yes
|
||||
USE_QT_VER= 4
|
||||
QT_COMPONENTS= help qt3support help-tools_build moc_build qmake_build \
|
||||
rcc_build uic_build uic3_build
|
||||
MAKE_JOBS_SAFE= yes
|
||||
|
||||
.if !defined(WITHOUT_NLS)
|
||||
QT_COMPONENTS+= linguist_build
|
||||
PLIST_SUB+= NLS=""
|
||||
.else
|
||||
PLIST_SUB+= NLS="@comment "
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,' \
|
||||
${WRKSRC}/src/lib/engine/rs_system.cpp
|
||||
${REINPLACE_CMD} -e \
|
||||
'/^Icon/s,librecad,${PREFIX}/share/pixmaps/librecad.png,' \
|
||||
${WRKSRC}/desktop/librecad.desktop
|
||||
|
||||
do-configure:
|
||||
@(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKEFLAGS})
|
||||
|
||||
post-build:
|
||||
.if !defined(WITHOUT_NLS)
|
||||
@(cd ${WRKSRC} && ${LOCALBASE}/bin/lrelease-qt4 -compress librecad.pro)
|
||||
${MKDIR} ${WRKSRC}/unix/resources/qm
|
||||
${INSTALL_DATA} ${WRKSRC}/ts/*.qm ${WRKSRC}/unix/resources/qm
|
||||
.endif
|
||||
cd ${WRKSRC} && ${SH} scripts/postprocess-unix.sh
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${PREFIX}/bin && \
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/unix/librecad ${PREFIX}/bin
|
||||
cd ${WRKSRC}/unix/resources && ${COPYTREE_SHARE} . ${DATADIR}
|
||||
${MKDIR} ${PREFIX}/share/applications && \
|
||||
${INSTALL_DATA} ${WRKSRC}/desktop/librecad.desktop \
|
||||
${PREFIX}/share/applications
|
||||
${MKDIR} ${PREFIX}/share/pixmaps && \
|
||||
${INSTALL_DATA} ${WRKSRC}/res/main/librecad.png ${PREFIX}/share/pixmaps
|
||||
|
||||
.include <bsd.port.mk>
|
2
cad/librecad/distinfo
Normal file
2
cad/librecad/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (librecad-1.0.0.tar.xz) = 225eaee33691117cc0ade50bd8d7687aae56c9ec96af413e6462661e2232abe9
|
||||
SIZE (librecad-1.0.0.tar.xz) = 2851736
|
10
cad/librecad/files/patch-librecad.pro
Normal file
10
cad/librecad/files/patch-librecad.pro
Normal file
@ -0,0 +1,10 @@
|
||||
--- ./librecad.pro.orig 2011-12-14 18:07:34.000000000 +0000
|
||||
+++ ./librecad.pro 2012-01-03 10:28:08.504074615 +0000
|
||||
@@ -45,7 +45,6 @@
|
||||
RC_FILE = res/main/librecad.icns
|
||||
DESTDIR = unix
|
||||
|
||||
- QMAKE_POST_LINK = scripts/postprocess-unix.sh
|
||||
}
|
||||
}
|
||||
win32 {
|
24
cad/librecad/files/patch-scripts__postprocess-unix.sh
Normal file
24
cad/librecad/files/patch-scripts__postprocess-unix.sh
Normal file
@ -0,0 +1,24 @@
|
||||
--- ./scripts/postprocess-unix.sh.orig 2011-12-14 18:07:34.000000000 +0000
|
||||
+++ ./scripts/postprocess-unix.sh 2012-01-03 10:28:08.510074137 +0000
|
||||
@@ -18,19 +18,9 @@
|
||||
cp support/patterns/*.dxf $RESOURCEDIR/patterns
|
||||
#cp support/fonts/*.cxf $RESOURCEDIR/fonts
|
||||
cp support/fonts/*.lff* $RESOURCEDIR/fonts
|
||||
-#cp support/doc/*.qhc $RESOURCEDIR/doc
|
||||
-#cp support/doc/*.qch $RESOURCEDIR/doc
|
||||
+cp support/doc/*.qhc $RESOURCEDIR/doc
|
||||
+cp support/doc/*.qch $RESOURCEDIR/doc
|
||||
find support/library -type d -not -path "*.svn*" | sed s/support// | xargs -IFILES mkdir $RESOURCEDIR/FILES
|
||||
find support/library -type f -iname *.dxf -not -path "*.svn*" | sed s/support// | xargs -IFILES cp support/FILES $RESOURCEDIR/FILES
|
||||
|
||||
-# Generate translations
|
||||
-lrelease librecad.pro
|
||||
-mkdir -p $RESOURCEDIR/qm
|
||||
-
|
||||
-# Go into translations directory
|
||||
-cd "$TSDIR"
|
||||
-for tf in *.qm
|
||||
-do
|
||||
- cp $tf $RESOURCEDIR/qm/$tf
|
||||
-done
|
||||
|
4
cad/librecad/pkg-descr
Normal file
4
cad/librecad/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
LibreCAD is a 2D CAD drawing application based on the community
|
||||
edition of QCad (www.qcad.org).
|
||||
|
||||
WWW: http://librecad.org
|
145
cad/librecad/pkg-plist
Normal file
145
cad/librecad/pkg-plist
Normal file
@ -0,0 +1,145 @@
|
||||
bin/librecad
|
||||
share/applications/librecad.desktop
|
||||
%%DATADIR%%/doc/LibreCADdoc.qch
|
||||
%%DATADIR%%/doc/LibreCADdoc.qhc
|
||||
%%DATADIR%%/fonts/cursive.lff
|
||||
%%DATADIR%%/fonts/cyrillic_ii.lff
|
||||
%%DATADIR%%/fonts/gothgbt.lff
|
||||
%%DATADIR%%/fonts/gothgrt.lff
|
||||
%%DATADIR%%/fonts/gothitt.lff
|
||||
%%DATADIR%%/fonts/greek_ol.lff
|
||||
%%DATADIR%%/fonts/greekc.lff
|
||||
%%DATADIR%%/fonts/greekcs.lff
|
||||
%%DATADIR%%/fonts/greekp.lff
|
||||
%%DATADIR%%/fonts/greeks.lff
|
||||
%%DATADIR%%/fonts/iso.lff
|
||||
%%DATADIR%%/fonts/iso8859-11.lff
|
||||
%%DATADIR%%/fonts/italicc.lff
|
||||
%%DATADIR%%/fonts/italiccs.lff
|
||||
%%DATADIR%%/fonts/italict.lff
|
||||
%%DATADIR%%/fonts/kochigothic.lff
|
||||
%%DATADIR%%/fonts/kochimincho.lff
|
||||
%%DATADIR%%/fonts/romanc.lff
|
||||
%%DATADIR%%/fonts/romancs.lff
|
||||
%%DATADIR%%/fonts/romand.lff
|
||||
%%DATADIR%%/fonts/romanp.lff
|
||||
%%DATADIR%%/fonts/romans.lff
|
||||
%%DATADIR%%/fonts/romansi.lff
|
||||
%%DATADIR%%/fonts/romant.lff
|
||||
%%DATADIR%%/fonts/scriptc.lff
|
||||
%%DATADIR%%/fonts/scripts.lff
|
||||
%%DATADIR%%/fonts/simplex.lff
|
||||
%%DATADIR%%/fonts/standard.lff
|
||||
%%DATADIR%%/fonts/symbol.lff
|
||||
%%DATADIR%%/fonts/symbol_astro.lff
|
||||
%%DATADIR%%/fonts/symbol_misc1.lff
|
||||
%%DATADIR%%/fonts/symbol_misc2.lff
|
||||
%%DATADIR%%/fonts/unicode.lff
|
||||
%%DATADIR%%/library/misc/a3.dxf
|
||||
%%DATADIR%%/library/misc/screw.dxf
|
||||
%%DATADIR%%/library/misc/t-part.dxf
|
||||
%%DATADIR%%/library/misc/tux.dxf
|
||||
%%DATADIR%%/library/templates/empty.dxf
|
||||
%%DATADIR%%/patterns/angle.dxf
|
||||
%%DATADIR%%/patterns/ansi31.dxf
|
||||
%%DATADIR%%/patterns/ar-b816.dxf
|
||||
%%DATADIR%%/patterns/ar-b816c.dxf
|
||||
%%DATADIR%%/patterns/ar-b88.dxf
|
||||
%%DATADIR%%/patterns/ar-brelm.dxf
|
||||
%%DATADIR%%/patterns/ar-brstd.dxf
|
||||
%%DATADIR%%/patterns/ar-conc.dxf
|
||||
%%DATADIR%%/patterns/ar-hbone.dxf
|
||||
%%DATADIR%%/patterns/ar-parq1.dxf
|
||||
%%DATADIR%%/patterns/ar-roof.dxf
|
||||
%%DATADIR%%/patterns/ar-rshke.dxf
|
||||
%%DATADIR%%/patterns/arcs.dxf
|
||||
%%DATADIR%%/patterns/arcs_2.dxf
|
||||
%%DATADIR%%/patterns/box.dxf
|
||||
%%DATADIR%%/patterns/brick.dxf
|
||||
%%DATADIR%%/patterns/brstone.dxf
|
||||
%%DATADIR%%/patterns/clay.dxf
|
||||
%%DATADIR%%/patterns/concrete.dxf
|
||||
%%DATADIR%%/patterns/cross.dxf
|
||||
%%DATADIR%%/patterns/daemon.dxf
|
||||
%%DATADIR%%/patterns/dolmit.dxf
|
||||
%%DATADIR%%/patterns/earth.dxf
|
||||
%%DATADIR%%/patterns/escher.dxf
|
||||
%%DATADIR%%/patterns/flex.dxf
|
||||
%%DATADIR%%/patterns/grass.dxf
|
||||
%%DATADIR%%/patterns/grass_b.dxf
|
||||
%%DATADIR%%/patterns/hex.dxf
|
||||
%%DATADIR%%/patterns/hexagon_a.dxf
|
||||
%%DATADIR%%/patterns/hexagon_b.dxf
|
||||
%%DATADIR%%/patterns/honeycomb.dxf
|
||||
%%DATADIR%%/patterns/hound.dxf
|
||||
%%DATADIR%%/patterns/iso03w100.dxf
|
||||
%%DATADIR%%/patterns/iso03w100a.dxf
|
||||
%%DATADIR%%/patterns/kerpele.dxf
|
||||
%%DATADIR%%/patterns/misc01.dxf
|
||||
%%DATADIR%%/patterns/misc02.dxf
|
||||
%%DATADIR%%/patterns/misc03.dxf
|
||||
%%DATADIR%%/patterns/paisley.dxf
|
||||
%%DATADIR%%/patterns/pantagon_a.dxf
|
||||
%%DATADIR%%/patterns/pantagon_b.dxf
|
||||
%%DATADIR%%/patterns/plastic.dxf
|
||||
%%DATADIR%%/patterns/sacncr.dxf
|
||||
%%DATADIR%%/patterns/sand.dxf
|
||||
%%DATADIR%%/patterns/square.dxf
|
||||
%%DATADIR%%/patterns/triangle_a.dxf
|
||||
%%DATADIR%%/patterns/triangle_b.dxf
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_cs.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_da.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_de.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_el.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_en.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_en_au.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_ar.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_bo.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_cl.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_co.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_cr.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_do.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_ec.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_gt.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_hn.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_mx.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_ni.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_pa.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_pe.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_pr.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_py.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_sv.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_us.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_uy.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_es_ve.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_et.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_fi.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_fr.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_hu.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_id_ID.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_it.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_ja.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_nl.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_no.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_pa.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_pl.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_pt.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_ru.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_sk.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_sq_al.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_sv.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_tr.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_uk.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_zh_cn.qm
|
||||
%%NLS%%%%DATADIR%%/qm/librecad_zh_tw.qm
|
||||
share/pixmaps/librecad.png
|
||||
%%NLS%%@dirrm %%DATADIR%%/qm
|
||||
@dirrm %%DATADIR%%/patterns
|
||||
@dirrm %%DATADIR%%/library/templates
|
||||
@dirrm %%DATADIR%%/library/misc
|
||||
@dirrm %%DATADIR%%/library
|
||||
@dirrm %%DATADIR%%/fonts
|
||||
@dirrm %%DATADIR%%/doc
|
||||
@dirrm %%DATADIR%%
|
||||
@dirrmtry share/applications
|
Loading…
Reference in New Issue
Block a user