diff options
Diffstat (limited to 'cad/lepton-eda/Makefile')
-rw-r--r-- | cad/lepton-eda/Makefile | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/cad/lepton-eda/Makefile b/cad/lepton-eda/Makefile new file mode 100644 index 000000000000..720fc9ff9d18 --- /dev/null +++ b/cad/lepton-eda/Makefile @@ -0,0 +1,88 @@ +# $FreeBSD$ + +PORTNAME= lepton-eda +PORTVERSION= 1.9.7 +DISTVERSIONSUFFIX= -20181211 +CATEGORIES= cad + +MAINTAINER= graahnul.grom@gmail.com +COMMENT= Lepton Electronic Design Automation + +LICENSE= GPLv2+ + +LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 \ + libgc-threaded.so:devel/boehm-gc-threaded \ + libguile-2.0.so:lang/guile2 \ + libpng.so:graphics/png \ + libstroke.so:devel/libstroke + +USES= autoreconf desktop-file-utils gettext-tools gnome groff:build \ + libtool localbase makeinfo pathfix perl5 pkgconfig python:run \ + shared-mime-info shebangfix +USE_GITHUB= yes +USE_GNOME= cairo gtk20 +USE_LDCONFIG= yes + +SHEBANG_FILES= utils/scripts/lepton-tragesym \ + utils/scripts/lepton-archive.py \ + utils/gxyrs/lepton-xyrs.pl \ + utils/scripts/gschupdate \ + utils/scripts/gsymupdate \ + utils/scripts/lepton-pcb_backannotate \ + utils/scripts/lepton-refdes_renum \ + utils/scripts/lepton-symfix \ + examples/lightning_detector/bom \ + contrib/scripts/mk_char_tab.pl \ + contrib/scripts/pads_backannotate \ + contrib/scripts/sarlacc_sym + +PORTEXAMPLES= examples/* + +GNU_CONFIGURE= yes +INSTALL_TARGET= install-strip + +INSTALLS_ICONS= yes + +INFO= lepton-scheme + +OPTIONS_DEFINE= DOCS EXAMPLES NLS +OPTIONS_SUB= yes + +NLS_CONFIGURE_ENABLE= nls +NLS_USES= gettext-runtime + +# work around for errors while running +# build-tools/icon-theme-installer: +# +# Cannot find 'install -m 0644'; You probably want to pass -x $(INSTALL_DATA) +# +# for 3 dirs (attrib/data, liblepton/data, schematic/data) +# the following lines should be in the generated Makefile: +# +# INSTALL = /usr/bin/install -c +# INSTALL_DATA = ${INSTALL} -m 644 +# INSTALL_PROGRAM = ${INSTALL} +# INSTALL_SCRIPT = ${INSTALL} +# +# but instead you got: +# +# INSTALL = /usr/bin/install -c +# INSTALL_DATA = install -m 0644 +# INSTALL_PROGRAM = install -s -m 555 +# INSTALL_SCRIPT = install -m 555 +# +# this is so only when building a port (when building from +# git sources and install to the home folder, there are +# no errors) +# +pre-build: + ${REINPLACE_CMD} \ + -e 's,^\(INSTALL_DATA = \)install\(.*\),\1$${INSTALL}\2,' \ + -e 's,^\(INSTALL_PROGRAM = \)install\(.*\),\1$${INSTALL}\2,' \ + -e 's,^\(INSTALL_SCRIPT = \)install\(.*\),\1$${INSTALL}\2,' \ + ${WRKSRC}/attrib/data/Makefile \ + ${WRKSRC}/liblepton/data/Makefile \ + ${WRKSRC}/schematic/data/Makefile + +.include <bsd.port.mk> |