mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
7d40811af3
Gerber Viewer (gerbv) is a viewer for Gerber files. Gerber files are generated from PCB CAD system and sent to PCB manufacturers as basis for the manufacturing process. The standard supported by gerbv is RS-274X. The basic difference between RS-274D (the old standard) and RS-274X is basically the addition of apertures in RS-274X. It might be possible to make an RS-274X file out of an RS-274D file and an aperture list. gerbv also supports drill files. The format supported are known under names as NC-drill or Excellon. The format is a bit undefined and different EDA-vendors implement it different. But basically you need to have the tools definition in the file, then the parser is quite tolerant. The different holes are shown as dots in the (scaled) correct size. The different layers of the PCB are separated into different files. gerbv can load all files at the same time and display them "on top of each other". You can independently turn them on and off. WWW: http://gerbv.geda-project.org/ Submitted by: Ash Gokhale <ashfixit@gmail.com> Reviewed by: dmn <graahnul.grom@ya.ru>
79 lines
2.3 KiB
Makefile
79 lines
2.3 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gerbv
|
|
PORTVERSION= 2.7.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= cad
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= pi@FreeBSD.org
|
|
COMMENT= Gerber file viewer
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
|
|
libfreetype.so:print/freetype2
|
|
|
|
USES= autoreconf compiler:c++11-lang desktop-file-utils gmake gnome \
|
|
libtool localbase pathfix pkgconfig
|
|
USE_GNOME= cairo gtk20
|
|
USE_LDCONFIG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= ac_aux_dir="."
|
|
INSTALLS_ICONS= yes
|
|
INSTALL_TARGET= install-strip
|
|
|
|
PLIST_SUB= VERSION="${PORTVERSION}"
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|^AM_NLS|#AM_NLS| ; \
|
|
s|^AM_GNU_GETTEXT|#AM_GNU_GETTEXT| ; \
|
|
/intl\/Makefile/d ; \
|
|
/po\/Makefile/d' ${WRKSRC}/configure.ac
|
|
@${REINPLACE_CMD} -e \
|
|
'/^SUBDIRS/s|=.*|= src man scheme|' ${WRKSRC}/Makefile.am
|
|
@${REINPLACE_CMD} -e \
|
|
'/^man_MANS/s|gerbv.ru.1|| ; \
|
|
s|^PO_|#PO_|' ${WRKSRC}/man/Makefile.am
|
|
@${REINPLACE_CMD} -e \
|
|
'/^pkgconfigdir/s|$$(libdir)|$$(prefix)/libdata|' \
|
|
${WRKSRC}/src/Makefile.am
|
|
|
|
post-install:
|
|
(cd ${WRKSRC}/desktop && ${INSTALL_DATA} gerbv.desktop \
|
|
${STAGEDIR}${DESKTOPDIR})
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
|
|
(cd ${WRKSRC}/desktop && ${INSTALL_DATA} gerbv.svg \
|
|
${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps)
|
|
.for i in 16 22 24 32 48
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps
|
|
(cd ${WRKSRC}/desktop && ${INSTALL_DATA} gerbv-${i}.png \
|
|
${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps/gerbv.png)
|
|
.endfor
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.fig *.txt \
|
|
${STAGEDIR}${DOCSDIR})
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/PNG-print
|
|
(cd ${WRKSRC}/doc/PNG-print && ${INSTALL_DATA} *.jpg *.txt \
|
|
${STAGEDIR}${DOCSDIR}/PNG-print)
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/eagle
|
|
(cd ${WRKSRC}/doc/eagle && ${INSTALL_DATA} *.pl *.txt \
|
|
${STAGEDIR}${DOCSDIR}/eagle)
|
|
|
|
post-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
@(cd ${WRKSRC}/example && ${FIND} . \
|
|
! \( -name "*Makefile*" -or -name ".cvsignore" \) \
|
|
| ${CPIO} --quiet -pdm -L -R ${SHAREOWN}:${SHAREGRP} \
|
|
${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
.include <bsd.port.mk>
|