diff options
author | makc <makc@FreeBSD.org> | 2012-01-04 17:06:02 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2012-01-04 17:06:02 +0800 |
commit | be9f555d1bd19b964685932be38fffb6ec1169a5 (patch) | |
tree | b1f2cbd4121271f9d89beda5c4c7ff6419771333 /cad/librecad | |
parent | ac359433e11d695b9b5ba6ef388c84bb1ba303f0 (diff) | |
download | freebsd-ports-gnome-be9f555d1bd19b964685932be38fffb6ec1169a5.tar.gz freebsd-ports-gnome-be9f555d1bd19b964685932be38fffb6ec1169a5.tar.zst freebsd-ports-gnome-be9f555d1bd19b964685932be38fffb6ec1169a5.zip |
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
Diffstat (limited to 'cad/librecad')
-rw-r--r-- | cad/librecad/Makefile | 57 | ||||
-rw-r--r-- | cad/librecad/distinfo | 2 | ||||
-rw-r--r-- | cad/librecad/files/patch-librecad.pro | 10 | ||||
-rw-r--r-- | cad/librecad/files/patch-scripts__postprocess-unix.sh | 24 | ||||
-rw-r--r-- | cad/librecad/pkg-descr | 4 | ||||
-rw-r--r-- | cad/librecad/pkg-plist | 145 |
6 files changed, 242 insertions, 0 deletions
diff --git a/cad/librecad/Makefile b/cad/librecad/Makefile new file mode 100644 index 000000000000..5ea7bc0c12d0 --- /dev/null +++ b/cad/librecad/Makefile @@ -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> diff --git a/cad/librecad/distinfo b/cad/librecad/distinfo new file mode 100644 index 000000000000..179f37582054 --- /dev/null +++ b/cad/librecad/distinfo @@ -0,0 +1,2 @@ +SHA256 (librecad-1.0.0.tar.xz) = 225eaee33691117cc0ade50bd8d7687aae56c9ec96af413e6462661e2232abe9 +SIZE (librecad-1.0.0.tar.xz) = 2851736 diff --git a/cad/librecad/files/patch-librecad.pro b/cad/librecad/files/patch-librecad.pro new file mode 100644 index 000000000000..9107145a15e6 --- /dev/null +++ b/cad/librecad/files/patch-librecad.pro @@ -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 { diff --git a/cad/librecad/files/patch-scripts__postprocess-unix.sh b/cad/librecad/files/patch-scripts__postprocess-unix.sh new file mode 100644 index 000000000000..7673dfede9ae --- /dev/null +++ b/cad/librecad/files/patch-scripts__postprocess-unix.sh @@ -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 + diff --git a/cad/librecad/pkg-descr b/cad/librecad/pkg-descr new file mode 100644 index 000000000000..5413f2255fab --- /dev/null +++ b/cad/librecad/pkg-descr @@ -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 diff --git a/cad/librecad/pkg-plist b/cad/librecad/pkg-plist new file mode 100644 index 000000000000..6d7f99430ebf --- /dev/null +++ b/cad/librecad/pkg-plist @@ -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 |