2013-01-31 13:38:42 +00:00
|
|
|
# Created by: Thierry Thomas <thierry@FreeBSD.org>
|
2005-12-08 23:30:13 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2010-05-24 14:01:05 +00:00
|
|
|
PORTNAME= kicad
|
2014-08-19 16:49:32 +00:00
|
|
|
DISTVERSION= 20140622%2Bbzr4027
|
2014-09-10 20:50:31 +00:00
|
|
|
PORTREVISION= 1
|
2010-05-24 14:01:05 +00:00
|
|
|
PORTEPOCH= 1
|
|
|
|
CATEGORIES= cad
|
2014-08-19 16:49:32 +00:00
|
|
|
MASTER_SITES= https://launchpadlibrarian.net/179199115/
|
|
|
|
DISTNAME= ${PORTNAME}_0.${DISTVERSION}.orig
|
2010-05-24 14:01:05 +00:00
|
|
|
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
|
|
COMMENT= Schematic and PCB editing software
|
2005-12-08 23:30:13 +00:00
|
|
|
|
2014-05-02 16:06:56 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-12-11 14:53:20 +00:00
|
|
|
LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs
|
2014-08-19 16:49:32 +00:00
|
|
|
RUN_DEPENDS= xpdf:${PORTSDIR}/graphics/xpdf
|
2005-12-08 23:30:13 +00:00
|
|
|
|
2010-05-24 14:01:05 +00:00
|
|
|
CONFLICTS= kicad-devel*
|
2009-10-27 08:26:11 +00:00
|
|
|
|
2015-10-21 21:20:12 +00:00
|
|
|
USES= cmake desktop-file-utils dos2unix shared-mime-info tar:xz
|
2015-02-07 16:07:33 +00:00
|
|
|
|
|
|
|
# Does not compile with Gcc48
|
2015-02-09 10:57:33 +00:00
|
|
|
USE_GCC= 4.7
|
2015-02-07 16:07:33 +00:00
|
|
|
#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:${PORTSDIR}/devel/libc++
|
2015-10-21 21:20:12 +00:00
|
|
|
DOCS_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
|
2015-02-07 16:07:33 +00:00
|
|
|
|
2014-05-02 16:06:56 +00:00
|
|
|
DOS2UNIX_GLOB= *.cmake sch_bus_entry.h sch_line.h sch_no_connect.h
|
2015-10-21 21:20:12 +00:00
|
|
|
USE_XORG= ice x11 xext
|
2005-12-08 23:30:13 +00:00
|
|
|
USE_GL= yes
|
2014-05-02 16:06:56 +00:00
|
|
|
USE_WX= 3.0
|
2007-05-26 07:48:22 +00:00
|
|
|
USE_GNOME= atk # Required by libwx_gtk2_aui-2.8.so
|
2014-05-02 16:06:56 +00:00
|
|
|
CXXFLAGS+= -I${WRKSRC}/include -I${LOCALBASE}/include -DBOOST_HASH_NO_EXTENSIONS
|
2010-05-24 14:01:05 +00:00
|
|
|
CMAKE_ARGS= -DwxWidgets_CONFIG_EXECUTABLE=${WX_CONFIG} \
|
2014-05-02 16:06:56 +00:00
|
|
|
-DwxUSE_UNICODE=ON -DKICAD_STABLE_VERSION=ON \
|
2010-05-24 14:01:05 +00:00
|
|
|
-DwxWidgets_wxrc_EXECUTABLE=${WXRC_CMD}
|
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
|
2014-08-19 16:49:32 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-0.${DISTVERSION:C/%2B/+/}
|
2005-12-08 23:30:13 +00:00
|
|
|
|
2010-05-24 14:01:05 +00:00
|
|
|
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||}
|
|
|
|
|
2014-02-21 13:35:32 +00:00
|
|
|
OPTIONS_DEFINE= DOCS NLS
|
2014-03-07 14:03:55 +00:00
|
|
|
OPTIONS_SUB= yes
|
2014-02-10 13:54:26 +00:00
|
|
|
|
2014-03-07 14:03:55 +00:00
|
|
|
NLS_USES= gettext
|
2005-12-08 23:30:13 +00:00
|
|
|
|
|
|
|
BINS= cvpcb eeschema gerbview kicad pcbnew
|
2007-07-07 08:03:11 +00:00
|
|
|
EXTRAS2RM= linux-non_unicode linux wings3d LINUX.README \
|
|
|
|
contrib_makefiles.txt running_kicad_under_W98.txt
|
2005-12-08 23:30:13 +00:00
|
|
|
|
2015-09-08 11:30:11 +00:00
|
|
|
# undefined reference to `std::chrono::_V2::steady_clock::now()@GLIBCXX_3.4.19'
|
|
|
|
BROKEN_FreeBSD_9= does not link
|
2014-05-02 16:06:56 +00:00
|
|
|
|
2015-09-08 11:30:11 +00:00
|
|
|
DOCS_VARS= LICENSE+=GFDL LICENSE_COMB=multi
|
2014-05-02 16:06:56 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${MV} ${WRKSRC}/include/boost ${WRKSRC}/include/boost.orig
|
2005-12-08 23:30:13 +00:00
|
|
|
|
|
|
|
pre-configure:
|
2010-05-24 14:01:05 +00:00
|
|
|
${REINPLACE_CMD} -e 's|/usr/share/kicad|${DATADIR}|' \
|
|
|
|
-e 's|/usr/local|${PREFIX}|' \
|
2014-08-19 16:49:32 +00:00
|
|
|
-e 's|/usr/bin/evince|${LOCALBASE}/bin/xpdf|' \
|
|
|
|
-e 's|/usr/bin/kpdf|${LOCALBASE}/bin/okular|' \
|
2010-05-24 14:01:05 +00:00
|
|
|
-e 's|/usr/bin/xpdf|${LOCALBASE}/bin/xpdf|' \
|
2005-12-08 23:30:13 +00:00
|
|
|
-e 's|/usr/bin/konqueror|${LOCALBASE}/bin/konqueror|' \
|
2014-08-19 16:49:32 +00:00
|
|
|
-e 's|/usr/bin/xdg-open|${LOCALBASE}/bin/xdg-open|' \
|
2010-05-24 14:01:05 +00:00
|
|
|
${WRKSRC}/common/gestfich.cpp
|
2005-12-08 23:30:13 +00:00
|
|
|
|
|
|
|
post-install:
|
2014-05-02 16:06:56 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
2014-08-19 16:49:32 +00:00
|
|
|
(cd ${WRKSRC}/library && ${COPYTREE_SHARE} library ${STAGEDIR}${DATADIR})
|
|
|
|
(cd ${WRKSRC}/library && ${COPYTREE_SHARE} modules ${STAGEDIR}${DATADIR})
|
2015-09-08 11:30:11 +00:00
|
|
|
|
2015-08-19 13:29:59 +00:00
|
|
|
post-install-NLS-on:
|
2014-05-02 16:06:56 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/internat
|
2014-08-19 16:49:32 +00:00
|
|
|
(cd ${WRKSRC}/doc/internat && \
|
2014-03-07 14:03:55 +00:00
|
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/internat)
|
|
|
|
${RM} -f ${STAGEDIR}${DATADIR}/internat/CMakeLists.txt
|
|
|
|
${FIND} ${STAGEDIR}${DATADIR}/internat -name kicad.po -delete
|
2015-09-08 11:30:11 +00:00
|
|
|
|
2015-08-19 13:29:59 +00:00
|
|
|
post-install-DOCS-on:
|
2014-05-02 16:06:56 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2014-08-19 16:49:32 +00:00
|
|
|
(cd ${WRKSRC}/doc/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
2014-05-02 16:06:56 +00:00
|
|
|
(cd ${WRKSRC}/Documentation && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
2005-12-08 23:30:13 +00:00
|
|
|
|
2014-01-15 22:54:35 +00:00
|
|
|
.include <bsd.port.mk>
|