1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/cad/kicad/Makefile

91 lines
2.3 KiB
Makefile
Raw Normal View History

2013-01-31 13:38:42 +00:00
# Created by: Thierry Thomas <thierry@FreeBSD.org>
# $FreeBSD$
2010-05-24 14:01:05 +00:00
PORTNAME= kicad
DISTVERSION= 2010-05-05-BZR2356
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
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
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
2010-05-24 14:01:05 +00:00
USE_ZIP= yes
USE_DOS2UNIX= *.cmake
USES= cmake
USE_GL= yes
USE_WX= 2.8
2008-09-24 20:33:32 +00:00
WX_UNICODE= yes
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}
2010-05-24 14:01:05 +00:00
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||}
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
2010-05-24 14:01:05 +00:00
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
2010-05-24 14:01:05 +00:00
.endif
2010-05-24 14:01:05 +00:00
SFNAME= ${PORTNAME}-sources-${DISTVERSION}
DFNAME= doc_components-${DISTVERSION}-stable
BINS= cvpcb eeschema gerbview kicad pcbnew
EXTRAS2RM= linux-non_unicode linux wings3d LINUX.README \
contrib_makefiles.txt running_kicad_under_W98.txt
.if exists(${LOCALBASE}/bin/konqueror)
RUN_DEPENDS+= konqueror:${PORTSDIR}/x11/kdebase3
.else
RUN_DEPENDS+= xpdf:${PORTSDIR}/graphics/xpdf
.endif
.if ${PORT_OPTIONS:MDOCS}
post-extract:
2010-05-24 14:01:05 +00:00
cd ${WRKSRC} && ${TAR} -xf ${DISTDIR}/${DFNAME}.tgz
.endif
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|' \
-e 's|/usr/bin/konqueror|${LOCALBASE}/bin/konqueror|' \
2010-05-24 14:01:05 +00:00
${WRKSRC}/common/gestfich.cpp
post-install:
.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
.if ${PORT_OPTIONS:MDOCS}
2010-05-24 14:01:05 +00:00
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
2014-01-15 22:54:35 +00:00
.include <bsd.port.mk>