aboutsummaryrefslogtreecommitdiff
path: root/cad/qcad-partslib/Makefile
blob: 0fe884e7ef3000f9a4dc6124ecaec25e18556c49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# New ports collection makefile for:	qcad-partslib
# Date created:		28 Mar 2004
# Whom:			Michael Reifenberger <mr@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	qcad-partslib
PORTVERSION=	2.1.2.8.1
PORTREVISION=	2
CATEGORIES=	cad
MASTER_SITES=	ftp://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/library

USE_ZIP=	yes
NO_BUILD=	yes
PLIST=		${WRKDIR}/pkg-plist

.include <bsd.port.pre.mk>

pre-install:
	@${ECHO_CMD} '@exec mkdir -p %D/share/qcad/libraries' > ${PLIST}
	@${FIND} ${WRKSRC} -type f | \
		${SED} -e "s:^${WRKSRC}/:share/qcad/library/:g" >> ${PLIST}
	@${FIND} -d ${WRKSRC} -type d | \
		${SED} -e "s:^${WRKSRC}:@dirrm share/qcad/library:g" >> ${PLIST}

do-install:
	@${MKDIR} ${DATADIR}
	${TAR} -C ${WRKSRC} --exclude CVS -cf - . | \
		${TAR} -C ${DATADIR} --unlink -xf -

.include <bsd.port.post.mk>