diff --git a/cad/Makefile b/cad/Makefile index be4174afaef0..60b6b6e0ed09 100644 --- a/cad/Makefile +++ b/cad/Makefile @@ -36,6 +36,7 @@ SUBDIR += pdnmesh SUBDIR += pythoncad SUBDIR += qcad + SUBDIR += qcad-partslib SUBDIR += qfsm SUBDIR += qmls SUBDIR += sceptre diff --git a/cad/qcad-partslib/Makefile b/cad/qcad-partslib/Makefile new file mode 100644 index 000000000000..00a71ace88c5 --- /dev/null +++ b/cad/qcad-partslib/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: qcad-partslib +# Date created: 28 Mar 2004 +# Whom: Michael Reifenberger +# +# $FreeBSD$ +# + +PORTNAME= qcad-partslib +PORTVERSION= 2.0.1.2.1 +CATEGORIES= cad +MASTER_SITES= http://www.ribbonsoft.com/archives/partlibrary/ +DISTNAME= partlibrary-${PORTVERSION:S/.1$/-1/} + +MAINTAINER= mr@FreeBSD.org +COMMENT= Professional CAD system + +BUILD_DEPENDS= qcad:${PORTSDIR}/cad/qcad + +WRKSRC= ${WRKDIR}/partlibrary-${PORTVERSION:S/.1$/-1/} +DATADIR= ${PREFIX}/share/qcad/libraries + +USE_ZIP= yes +USE_REINPLACE= yes +NO_BUILD= yes +PLIST= ${WRKDIR}/pkg-plist + +.include + +pre-install: + @${ECHO_CMD} '@exec mkdir -p %D/share/qcad/libraries' > ${PLIST} + @${FIND} ${WRKSRC}/ -type f | \ + ${SED} -e "s:^${WRKSRC}/:share/qcad/libraries/:g" >> ${PLIST} + @${FIND} -d ${WRKSRC} -type d | \ + ${SED} -e "s:^${WRKSRC}:@dirrm share/qcad/libraries:g" >> ${PLIST} + +do-install: + @${MKDIR} ${DATADIR} + ${TAR} -C ${WRKSRC} --exclude CVS -cf - . | \ + ${TAR} -C ${DATADIR} --unlink -xf - + +.include diff --git a/cad/qcad-partslib/distinfo b/cad/qcad-partslib/distinfo new file mode 100644 index 000000000000..2e1de290256c --- /dev/null +++ b/cad/qcad-partslib/distinfo @@ -0,0 +1,2 @@ +MD5 (partlibrary-2.0.1.2-1.zip) = cac084e684bc286968beb6065aa96fb8 +SIZE (partlibrary-2.0.1.2-1.zip) = 12243050 diff --git a/cad/qcad-partslib/pkg-descr b/cad/qcad-partslib/pkg-descr new file mode 100644 index 000000000000..6e757e2f8a48 --- /dev/null +++ b/cad/qcad-partslib/pkg-descr @@ -0,0 +1,3 @@ +The parts-library for qcad. + +WWW: http://www.qcad.org/