blob: 37f368d1df7e86cab0512e906b57fb6eaa117ec1 (
plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# Created by: Thierry Thomas <thierry@FreeBSD.org>
# $FreeBSD$
PORTNAME= kicad
DISTVERSION= 20140622%2Bbzr4027
PORTREVISION= 5
PORTEPOCH= 1
CATEGORIES= cad
MASTER_SITES= https://launchpadlibrarian.net/179199115/
DISTNAME= ${PORTNAME}_0.${DISTVERSION}.orig
MAINTAINER= thierry@FreeBSD.org
COMMENT= Schematic and PCB editing software
LICENSE= GPLv2
LIB_DEPENDS= libboost_thread.so:devel/boost-libs
RUN_DEPENDS= xpdf:graphics/xpdf
CONFLICTS= kicad-devel*
USES= cmake desktop-file-utils dos2unix shared-mime-info tar:xz
# Does not compile with Gcc48
USE_GCC= 4.7
#USES+= compiler:gcc-c++11-lib
LDFLAGS+= -L${LOCALBASE}/lib/c++
CXXFLAGS+= -nostdinc++ -isystem ${LOCALBASE}/include/c++/v1
BUILD_DEPENDS+= ${LOCALBASE}/lib/c++/libstdc++.so:devel/libc++
DOS2UNIX_GLOB= *.cmake sch_bus_entry.h sch_line.h sch_no_connect.h
USE_XORG= ice x11 xext
USE_GL= yes
USE_WX= 3.0
USE_GNOME= atk # Required by libwx_gtk2_aui-2.8.so
CXXFLAGS+= -I${WRKSRC}/include -I${LOCALBASE}/include -DBOOST_HASH_NO_EXTENSIONS
CMAKE_ARGS= -DwxWidgets_CONFIG_EXECUTABLE=${WX_CONFIG} \
-DwxUSE_UNICODE=ON -DKICAD_STABLE_VERSION=ON \
-DwxWidgets_wxrc_EXECUTABLE=${WXRC_CMD}
INSTALLS_ICONS= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-0.${DISTVERSION:C/%2B/+/}
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||}
OPTIONS_DEFINE= DOCS DOXYGEN NLS
OPTIONS_SUB= yes
NLS_USES= gettext
BINS= cvpcb eeschema gerbview kicad pcbnew
EXTRAS2RM= linux-non_unicode linux wings3d LINUX.README \
contrib_makefiles.txt running_kicad_under_W98.txt
DOXYGEN_VARS= LICENSE+=GFDL LICENSE_COMB=multi
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
DOXYGEN_IMPLIES= DOCS
DOXYGEN_ALL_TARGET= all doxygen-docs
DOXYGEN_PORTDOCS= doxygen
post-patch:
${MV} ${WRKSRC}/include/boost ${WRKSRC}/include/boost.orig
pre-configure:
${REINPLACE_CMD} -e 's|/usr/share/kicad|${DATADIR}|' \
-e 's|/usr/local|${PREFIX}|' \
-e 's|/usr/bin/evince|${LOCALBASE}/bin/xpdf|' \
-e 's|/usr/bin/kpdf|${LOCALBASE}/bin/okular|' \
-e 's|/usr/bin/xpdf|${LOCALBASE}/bin/xpdf|' \
-e 's|/usr/bin/konqueror|${LOCALBASE}/bin/konqueror|' \
-e 's|/usr/bin/xdg-open|${LOCALBASE}/bin/xdg-open|' \
${WRKSRC}/common/gestfich.cpp
post-install:
${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC}/library && ${COPYTREE_SHARE} library ${STAGEDIR}${DATADIR})
(cd ${WRKSRC}/library && ${COPYTREE_SHARE} modules ${STAGEDIR}${DATADIR})
post-install-NLS-on:
${MKDIR} ${STAGEDIR}${DATADIR}/internat
(cd ${WRKSRC}/doc/internat && \
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/internat)
${RM} ${STAGEDIR}${DATADIR}/internat/CMakeLists.txt
${FIND} ${STAGEDIR}${DATADIR}/internat -name kicad.po -delete
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/Documentation && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
|