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
|
|
|
|
DISTVERSION= 2010-05-05-BZR2356
|
2014-02-07 11:44:08 +00:00
|
|
|
PORTREVISION= 5
|
2010-05-24 14:01:05 +00:00
|
|
|
PORTEPOCH= 1
|
|
|
|
CATEGORIES= cad
|
|
|
|
MASTER_SITES= ftp://iut-tice.ujf-grenoble.fr/cao/ \
|
|
|
|
http://iut-tice.ujf-grenoble.fr/cao/
|
|
|
|
DISTFILES= ${SFNAME}-stable${EXTRACT_SUFX} \
|
|
|
|
${DFNAME}.tgz
|
|
|
|
EXTRACT_ONLY= ${SFNAME}-stable${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
|
|
COMMENT= Schematic and PCB editing software
|
2005-12-08 23:30:13 +00:00
|
|
|
|
2013-12-11 14:53:20 +00:00
|
|
|
LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs
|
2010-05-24 14:01:05 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/kicad/library/74xx.dcm:${PORTSDIR}/cad/kicad-library
|
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
|
|
|
|
2008-09-24 20:33:32 +00:00
|
|
|
WRKSRC= ${WRKDIR}/kicad
|
2005-12-08 23:30:13 +00:00
|
|
|
|
2010-05-24 14:01:05 +00:00
|
|
|
USE_ZIP= yes
|
|
|
|
USE_DOS2UNIX= *.cmake
|
2013-03-22 20:06:14 +00:00
|
|
|
USES= cmake
|
2005-12-08 23:30:13 +00:00
|
|
|
USE_GL= yes
|
2007-05-26 07:48:22 +00:00
|
|
|
USE_WX= 2.8
|
2008-09-24 20:33:32 +00:00
|
|
|
WX_UNICODE= yes
|
2007-05-26 07:48:22 +00:00
|
|
|
USE_GNOME= atk # Required by libwx_gtk2_aui-2.8.so
|
2010-05-24 14:01:05 +00:00
|
|
|
CXXFLAGS+= -I${WRKSRC}/include -I${LOCALBASE}/include
|
|
|
|
CMAKE_ARGS= -DwxWidgets_CONFIG_EXECUTABLE=${WX_CONFIG} \
|
|
|
|
-DwxWidgets_wxrc_EXECUTABLE=${WXRC_CMD}
|
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${SFNAME}
|
2005-12-08 23:30:13 +00:00
|
|
|
|
2010-05-24 14:01:05 +00:00
|
|
|
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||}
|
|
|
|
|
2013-09-20 15:58:41 +00:00
|
|
|
NO_STAGE= yes
|
2013-04-29 22:27:05 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-04-26 10:44:28 +00:00
|
|
|
USES+= gettext
|
2010-05-24 14:01:05 +00:00
|
|
|
PLIST_SUB+= NLS=""
|
2013-04-29 22:27:05 +00:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
2010-05-24 14:01:05 +00:00
|
|
|
.endif
|
2005-12-08 23:30:13 +00:00
|
|
|
|
2010-05-24 14:01:05 +00:00
|
|
|
SFNAME= ${PORTNAME}-sources-${DISTVERSION}
|
|
|
|
DFNAME= doc_components-${DISTVERSION}-stable
|
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
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/bin/konqueror)
|
|
|
|
RUN_DEPENDS+= konqueror:${PORTSDIR}/x11/kdebase3
|
|
|
|
.else
|
|
|
|
RUN_DEPENDS+= xpdf:${PORTSDIR}/graphics/xpdf
|
|
|
|
.endif
|
|
|
|
|
2013-04-29 22:27:05 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2005-12-08 23:30:13 +00:00
|
|
|
post-extract:
|
2010-05-24 14:01:05 +00:00
|
|
|
cd ${WRKSRC} && ${TAR} -xf ${DISTDIR}/${DFNAME}.tgz
|
|
|
|
.endif
|
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}|' \
|
|
|
|
-e 's|/usr/bin/xpdf|${LOCALBASE}/bin/xpdf|' \
|
2005-12-08 23:30:13 +00:00
|
|
|
-e 's|/usr/bin/konqueror|${LOCALBASE}/bin/konqueror|' \
|
2010-05-24 14:01:05 +00:00
|
|
|
${WRKSRC}/common/gestfich.cpp
|
2005-12-08 23:30:13 +00:00
|
|
|
|
|
|
|
post-install:
|
2013-04-29 22:27:05 +00:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2010-05-24 14:01:05 +00:00
|
|
|
${MKDIR} ${DATADIR}/internat
|
|
|
|
(cd ${WRKSRC}/internat && \
|
|
|
|
${COPYTREE_SHARE} \* ${DATADIR}/internat)
|
|
|
|
${RM} ${DATADIR}/internat/CMakeLists.txt
|
|
|
|
${FIND} ${DATADIR}/internat -name kicad.po -delete
|
|
|
|
.endif
|
2013-04-29 22:27:05 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2010-05-24 14:01:05 +00:00
|
|
|
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${DOCSDIR})
|
2005-12-08 23:30:13 +00:00
|
|
|
.endif
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_MSG}
|
|
|
|
|
2014-01-15 22:54:35 +00:00
|
|
|
.include <bsd.port.mk>
|