blob: 17afdf2168c51222dc2b0f93f23b43eec288a29c (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Created by: David Yeske <dyeske@gmail.com>
# $FreeBSD$
PORTNAME= leocad
PORTVERSION= 0.79.0
CATEGORIES= cad
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
DISTFILES= ${LEOCAD_DISTNAME} ${LEOCAD_PIECES}
EXTRACT_ONLY= ${LEOCAD_DISTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= A CAD program that uses bricks similar to those found in many toys
EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png
LEOCAD_DISTNAME=leocad-${PORTVERSION}-src.tgz
LEOCAD_PIECES= pieces-5823b.zip
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_GL= glut
USE_XORG= x11
USE_GMAKE= yes
USE_GNOME= gtk20
MAKE_JOBS_UNSAFE= yes
DESKTOP_ENTRIES="Leocad" "${COMMENT}" "" "${PORTNAME}" "Engineering;" "true"
PLIST_FILES= bin/leocad \
${DATADIR_REL}/pieces.bin \
${DATADIR_REL}/pieces.idx
PLIST_DIRS= ${DATADIR_REL}
MAN1= leocad.1
post-extract:
@${UNZIP_CMD} -q -o ${DISTDIR}/${LEOCAD_PIECES} -d ${WRKDIR}/pieces
post-patch:
@${REINPLACE_CMD} -e \
's|%%LOCALBASE%%|${LOCALBASE}|g; \
s|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|; \
s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \
${WRKSRC}/config.mk
@${REINPLACE_CMD} 's|share/man|man|g' \
${WRKSRC}/Makefile
do-configure:
cd ${WRKSRC} && ${GMAKE} config
post-install:
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKDIR}/pieces/* ${DATADIR}
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.endif
.include <bsd.port.post.mk>
|