View | Details | Raw Unified | Return to bug 174911 | Differences between
and this patch

Collapse All | Expand All

(-)./Makefile (-24 / +56 lines)
Lines 5-60 Link Here
5
PORTVERSION=	0.79.3
5
PORTVERSION=	0.79.3
6
CATEGORIES=	cad
6
CATEGORIES=	cad
7
MASTER_SITES=	GOOGLE_CODE
7
MASTER_SITES=	GOOGLE_CODE
8
DISTFILES=	${PORTNAME}-${PORTVERSION}-src.tgz ${LEOCAD_PIECES}
8
DISTFILES=	${PORTNAME}-${PORTVERSION}-src.tgz \
9
		${LEOCAD_PIECES}
9
DIST_SUBDIR=	${PORTNAME}
10
DIST_SUBDIR=	${PORTNAME}
10
EXTRACT_ONLY=	${PORTNAME}-${PORTVERSION}-src.tgz
11
EXTRACT_ONLY=	${PORTNAME}-${PORTVERSION}-src.tgz
11
12
12
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	nemysis@gmx.ch
13
COMMENT=	CAD modeling with LEGO-like bricks
14
COMMENT=	CAD program that uses bricks similar to those found in many toys
15
16
LICENSE=	GPLv2
14
17
15
EXTRACT_DEPENDS=${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
18
EXTRACT_DEPENDS=${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
16
LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg \
19
LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg \
17
		png15:${PORTSDIR}/graphics/png
20
		png15:${PORTSDIR}/graphics/png
18
21
19
WRKSRC=		${WRKDIR}/${PORTNAME}
22
WRKSRC=		${WRKDIR}/${PORTNAME}
23
LEOCAD_PIECES=	pieces-7114.zip
20
24
21
USES=		pkgconfig
25
USES=		gmake pkgconfig shared-mime-info
22
USE_GL=		gl
26
USE_GL=		glut
23
USE_GNOME=	gtk20
27
USE_GNOME=	gtk20
24
USE_GMAKE=	yes
25
INSTALLS_ICONS=	yes
26
MAKE_JOBS_SAFE=	yes
28
MAKE_JOBS_SAFE=	yes
27
29
28
MAN1=		leocad.1
30
MAN1=		leocad.1
29
31
30
LEOCAD_PIECES=	pieces-7114.zip
32
PORTDOCS=	*
31
33
32
.include <bsd.port.pre.mk>
34
DOCSRCDIR1=	${WRKSRC}
35
DOC_FILES1=	CREDITS.txt README.txt
33
36
34
.if ${ARCH} == "sparc64"
37
DOCSRCDIR2=	${WRKSRC}/docs
35
BROKEN=		Does not compile on sparc64
38
DOCSDIR2=	${DOCSDIR}/docs
36
.endif
39
DOC_FILES2=	LINUX.txt TODO.txt
40
41
INSTALLS_ICONS=	yes
42
ICON_SIZES=	16x16 24x24 32x32 48x48 128x128 256x256
43
44
OPTIONS_DEFINE=	DOCS
45
46
.include <bsd.port.pre.mk>
37
47
38
post-extract:
48
post-extract:
39
	@${UNZIP_CMD} -q -o ${DISTDIR}/${DIST_SUBDIR}/${LEOCAD_PIECES} \
49
	@${UNZIP_CMD} -q -o ${_DISTDIR}/${LEOCAD_PIECES} -d ${WRKDIR}/pieces
40
		-d ${WRKDIR}/pieces
41
50
42
post-patch:
51
post-patch:
43
	@${REINPLACE_CMD} -e \
52
	@${REINPLACE_CMD} -e \
44
		's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/config.mk
45
	@${REINPLACE_CMD} -e \
46
		's|+= -g|+=| ; \
47
		 s|@$$(CXX)|$$(CXX)| ; \
48
		 s|@install -c -m 0755|$${BSD_INSTALL_PROGRAM}| ; \
49
		 s|@install -c -m 0644|$${BSD_INSTALL_DATA}| ; \
50
		 s|share/man|man|' ${WRKSRC}/Makefile
51
	@${REINPLACE_CMD} -e \
52
		's|-ldl||' ${WRKSRC}/common/module.mk
53
		's|-ldl||' ${WRKSRC}/common/module.mk
54
	@${REINPLACE_CMD} \
55
		-e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
56
		-e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|' \
57
		-e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \
58
		${WRKSRC}/config.mk
59
	@${REINPLACE_CMD} 's|share/man|man|g' \
60
		${WRKSRC}/Makefile
61
.for s in 16 24 32 48 128 256
62
	@cd ${WRKSRC}/tools/icon && \
63
		${MV} icon${s}.png ${PORTNAME}_${s}x${s}.png
64
.endfor
65
	@cd ${WRKSRC}/tools/icon && ${CP} -a ${PORTNAME}_128x128.png icon128.png
53
66
54
do-configure:
67
do-configure:
55
	(cd ${WRKSRC} && ${SETENV} PREFIX="${PREFIX}" ${GMAKE} config)
68
	cd ${WRKSRC} && ${SETENV} PREFIX="${PREFIX}" ${GMAKE} config
56
69
57
post-install:
70
post-install:
58
	(cd ${WRKDIR}/pieces && ${INSTALL_DATA} * ${DATADIR})
71
	@${MKDIR} ${DATADIR}
72
	${INSTALL_DATA} ${WRKDIR}/pieces/* ${DATADIR}
73
74
.for s in ${ICON_SIZES}
75
	${MKDIR} ${PREFIX}/share/icons/hicolor/${s}/apps
76
	${INSTALL_DATA} ${WRKSRC}/tools/icon/${PORTNAME}_${s}.png \
77
		${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
78
.endfor
79
	@${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps
80
81
.if ${PORT_OPTIONS:MDOCS}
82
	@${MKDIR} ${DOCSDIR}
83
	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
84
	@${MKDIR} ${DOCSDIR2}
85
	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
86
.endif
87
88
.if ${ARCH} == "sparc64"
89
BROKEN=		Does not compile on sparc64
90
.endif
59
91
60
.include <bsd.port.post.mk>
92
.include <bsd.port.post.mk>
(-)./pkg-descr (-4 / +3 lines)
Lines 1-6 Link Here
1
LeoCAD is a CAD program that uses bricks similar to those found in
1
LeoCAD is a CAD program that can be used to create virtual LEGO models.
2
many toys (but they don't represent any particular brand). Currently
2
It has an easy to use interface and currently features over 4000 different
3
it has a library of more than 1000 different pieces, most of them
3
pieces created by the LDraw community.
4
were created by James Jessiman (the author of LDraw).
5
4
6
WWW: http://www.leocad.org
5
WWW: http://www.leocad.org
(-)./pkg-plist (-4 / +10 lines)
Lines 1-11 Link Here
1
bin/leocad
1
bin/leocad
2
share/applications/leocad.desktop
2
share/applications/leocad.desktop
3
share/icons/hicolor/128x128/apps/leocad.png
4
share/icons/hicolor/16x16/apps/leocad.png
5
share/icons/hicolor/24x24/apps/leocad.png
6
share/icons/hicolor/256x256/apps/leocad.png
7
share/icons/hicolor/32x32/apps/leocad.png
8
share/icons/hicolor/48x48/apps/leocad.png
3
share/icons/hicolor/scalable/mimetypes/application-vnd.leocad.svg
9
share/icons/hicolor/scalable/mimetypes/application-vnd.leocad.svg
4
%%DATADIR%%/icon.png
10
%%DATADIR%%/icon.png
5
%%DATADIR%%/library.bin
11
%%DATADIR%%/library.bin
6
share/mime/packages/leocad-mime.xml 
12
share/mime/application/vnd.leocad.xml
7
share/pixmaps/leocad.svg 
13
share/mime/packages/leocad-mime.xml
14
share/pixmaps/leocad.png
15
share/pixmaps/leocad.svg
8
@dirrm %%DATADIR%%
16
@dirrm %%DATADIR%%
9
@dirrmtry share/applications
17
@dirrmtry share/applications
10
@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
11
@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime

Return to bug 174911