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> |