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

Collapse All | Expand All

(-)./Makefile (-19 / +51 lines)
Lines 2-24 Link Here
2
# $FreeBSD: head/cad/leocad/Makefile 310871 2013-01-23 15:00:18Z makc $
2
# $FreeBSD: head/cad/leocad/Makefile 310871 2013-01-23 15:00:18Z makc $
3
3
4
PORTNAME=	leocad
4
PORTNAME=	leocad
5
PORTVERSION=	0.79.0
5
PORTVERSION=	0.79.2
6
PORTREVISION=	1
7
CATEGORIES=	cad
6
CATEGORIES=	cad
8
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
7
MASTER_SITES=	GOOGLE_CODE
9
DISTFILES=	${LEOCAD_DISTNAME} ${LEOCAD_PIECES}
8
DISTFILES=	${PORTNAME}-${PORTVERSION}-src.tgz \
10
EXTRACT_ONLY=	${LEOCAD_DISTNAME}
9
		${LEOCAD_PIECES}
10
DIST_SUBDIR=	${PORTNAME}
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:${PORTSDIR}/archivers/unzip
18
EXTRACT_DEPENDS=unzip:${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
LEOCAD_DISTNAME=leocad-${PORTVERSION}-src.tgz
20
LEOCAD_PIECES=	pieces-5823b.zip
21
WRKSRC=		${WRKDIR}/${PORTNAME}
22
WRKSRC=		${WRKDIR}/${PORTNAME}
23
LEOCAD_PIECES=	pieces-7114.zip
22
24
23
USE_GL=		glut
25
USE_GL=		glut
24
USE_XORG=	x11
26
USE_XORG=	x11
Lines 26-50 Link Here
26
USE_GNOME=	gtk20
28
USE_GNOME=	gtk20
27
MAKE_JOBS_UNSAFE=	yes
29
MAKE_JOBS_UNSAFE=	yes
28
30
29
DESKTOP_ENTRIES="Leocad" "${COMMENT}" "" "${PORTNAME}" "" "true"
31
PORTDOCS=	*
32
33
DOCSRCDIR1=	${WRKSRC}
34
DOC_FILES1=	CREDITS.txt README.txt
35
36
DOCSRCDIR2=	${WRKSRC}/docs
37
DOCSDIR2=	${DOCSDIR}/docs
38
DOC_FILES2=	LINUX.txt TODO.txt
39
40
INSTALLS_ICONS=	yes
41
ICON_SIZES=	16x16 24x24 32x32 48x48 128x128 256x256
42
43
DESKTOP_ENTRIES="LeoCAD" "${COMMENT}" "${PORTNAME}" \
44
		"${PORTNAME}" "Development;Electronics;Engineering;" false
30
45
31
PLIST_FILES=	bin/leocad \
32
		${DATADIR_REL}/pieces.bin \
33
		${DATADIR_REL}/pieces.idx
34
PLIST_DIRS=	${DATADIR_REL}
35
MAN1=		leocad.1
46
MAN1=		leocad.1
36
47
48
.include <bsd.port.options.mk>
49
37
post-extract:
50
post-extract:
38
	@${UNZIP_CMD} -q -o ${DISTDIR}/${LEOCAD_PIECES} -d ${WRKDIR}/pieces
51
	@${UNZIP_CMD} -q -o ${_DISTDIR}/${LEOCAD_PIECES} -d ${WRKDIR}/pieces
39
52
40
post-patch:
53
post-patch:
41
	@${REINPLACE_CMD} -e \
54
	@${REINPLACE_CMD} \
42
		's|%%LOCALBASE%%|${LOCALBASE}|g; \
55
		-e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
43
		s|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|; \
56
		-e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|' \
44
		s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \
57
		-e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \
45
		${WRKSRC}/config.mk
58
		${WRKSRC}/config.mk
46
	@${REINPLACE_CMD} 's|share/man|man|g' \
59
	@${REINPLACE_CMD} 's|share/man|man|g' \
47
		${WRKSRC}/Makefile
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
48
66
49
do-configure:
67
do-configure:
50
	cd ${WRKSRC} && ${GMAKE} config
68
	cd ${WRKSRC} && ${GMAKE} config
Lines 53-58 Link Here
53
	${MKDIR} ${DATADIR}
71
	${MKDIR} ${DATADIR}
54
	${INSTALL_DATA} ${WRKDIR}/pieces/* ${DATADIR}
72
	${INSTALL_DATA} ${WRKDIR}/pieces/* ${DATADIR}
55
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
56
.include <bsd.port.pre.mk>
88
.include <bsd.port.pre.mk>
57
89
58
.if ${ARCH} == "sparc64"
90
.if ${ARCH} == "sparc64"
(-)./distinfo (-4 / +4 lines)
Lines 1-4 Link Here
1
SHA256 (leocad-0.79.0-src.tgz) = 85f34dd560dec590ac5b0a5a7983359758fa58a729dbe3208a89c61f12440f24
1
SHA256 (leocad/leocad-0.79.2-src.tgz) = d2b0a515ce8302cd9234450773a339e330718463edf52d721e20edf6ccfa74e3
2
SIZE (leocad-0.79.0-src.tgz) = 624961
2
SIZE (leocad/leocad-0.79.2-src.tgz) = 2115720
3
SHA256 (pieces-5823b.zip) = 4c833bd1d89730757d8b391e20ba20ab133cd242b6717e89cee8fdf1c26f9a23
3
SHA256 (leocad/pieces-7114.zip) = 16506da21d139769524d140ce47bfce57bc5415f541fbd6f66a67025c1f535ab
4
SIZE (pieces-5823b.zip) = 44541797
4
SIZE (leocad/pieces-7114.zip) = 20546651
(-)./files/patch-config.mk (-5 / +10 lines)
Lines 1-6 Link Here
1
--- config.mk.orig	2012-12-14 12:16:05.000000000 -0500
1
--- config.mk.orig	2013-01-02 08:56:54.000000000 +0100
2
+++ config.mk	2012-12-14 12:16:51.000000000 -0500
2
+++ config.mk	2013-01-02 18:38:58.000000000 +0100
3
@@ -6,12 +6,13 @@ ERROR_SETTING=2> /dev/null
3
@@ -6,17 +6,17 @@
4
 
4
 
5
 default: all
5
 default: all
6
 
6
 
Lines 12-19 Link Here
12
 
12
 
13
 # (Add a -g for debugging)
13
 # (Add a -g for debugging)
14
-CPPFLAGS += -O2 -Wall
14
-CPPFLAGS += -O2 -Wall
15
+CPPFLAGS += -Wall -I%%LOCALBASE%%/include %%PTHREAD_CFLAGS%%
16
+LDFLAGS	+= %%PTHREAD_LIBS%%
17
 
15
 
18
 ### FreeBSD configuration
16
 ### FreeBSD configuration
19
 
17
 
18
 ifeq ($(shell uname), FreeBSD)
19
-CPPFLAGS += -L/usr/local/lib
20
+CPPFLAGS += -Wall -I%%LOCALBASE%%/include %%PTHREAD_CFLAGS%%
21
+LDFLAGS += -L%%LOCALBASE%%/lib %%PTHREAD_LIBS%%
22
 endif
23
 
24
 ### Default directory
(-)./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 (+35 lines)
Line 0 Link Here
1
bin/leocad
2
share/icons/hicolor/128x128/apps/leocad.png
3
share/icons/hicolor/16x16/apps/leocad.png
4
share/icons/hicolor/24x24/apps/leocad.png
5
share/icons/hicolor/256x256/apps/leocad.png
6
share/icons/hicolor/32x32/apps/leocad.png
7
share/icons/hicolor/48x48/apps/leocad.png
8
share/icons/hicolor/scalable/mimetypes/application-vnd.leocad.svg
9
%%DATADIR%%/icon.png
10
%%DATADIR%%/library.bin
11
share/mime/XMLnamespaces
12
share/mime/application/vnd.leocad.xml
13
share/mime/packages/leocad-mime.xml
14
share/pixmaps/leocad.png
15
share/pixmaps/leocad.svg
16
@dirrmtry share/mime/packages
17
@dirrmtry share/mime/application
18
@dirrmtry share/mime
19
@dirrm %%DATADIR%%
20
@dirrmtry share/icons/hicolor/scalable/mimetypes
21
@dirrmtry share/icons/hicolor/scalable
22
@dirrmtry share/icons/hicolor/48x48/apps
23
@dirrmtry share/icons/hicolor/48x48
24
@dirrmtry share/icons/hicolor/32x32/apps
25
@dirrmtry share/icons/hicolor/32x32
26
@dirrmtry share/icons/hicolor/256x256/apps
27
@dirrmtry share/icons/hicolor/256x256
28
@dirrmtry share/icons/hicolor/24x24/apps
29
@dirrmtry share/icons/hicolor/24x24
30
@dirrmtry share/icons/hicolor/16x16/apps
31
@dirrmtry share/icons/hicolor/16x16
32
@dirrmtry share/icons/hicolor/128x128/apps
33
@dirrmtry share/icons/hicolor/128x128
34
@dirrmtry share/icons/hicolor
35
@dirrmtry share/icons

Return to bug 174911