summaryrefslogtreecommitdiffstats
path: root/cad/oregano/Makefile
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-25 07:08:20 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-25 07:08:20 +0800
commit74a2f8cddf1001c6300086a55857e99b67a4969b (patch)
tree34258b2bd202eee16e314c36b5a5994afa3137d4 /cad/oregano/Makefile
parent1daf7f52a3b1f61c45fecd280f57c8220eef6e13 (diff)
downloadmarcuscom-ports-74a2f8cddf1001c6300086a55857e99b67a4969b.tar
marcuscom-ports-74a2f8cddf1001c6300086a55857e99b67a4969b.tar.gz
marcuscom-ports-74a2f8cddf1001c6300086a55857e99b67a4969b.tar.bz2
marcuscom-ports-74a2f8cddf1001c6300086a55857e99b67a4969b.tar.lz
marcuscom-ports-74a2f8cddf1001c6300086a55857e99b67a4969b.tar.xz
marcuscom-ports-74a2f8cddf1001c6300086a55857e99b67a4969b.tar.zst
marcuscom-ports-74a2f8cddf1001c6300086a55857e99b67a4969b.zip
X11BASE -> LOCALBASE, bump the PORTREVISION.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6750 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'cad/oregano/Makefile')
-rw-r--r--cad/oregano/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/cad/oregano/Makefile b/cad/oregano/Makefile
new file mode 100644
index 000000000..f5b479e91
--- /dev/null
+++ b/cad/oregano/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: oregano
+# Date created: 19 Feb 2001
+# Whom: Anders Andersson <anders@hack.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= oregano
+PORTVERSION= 0.50.0
+PORTREVISION= 1
+CATEGORIES= cad gnome
+MASTER_SITES= http://gforge.lug.fi.uba.ar/frs/download.php/80/
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Schematic capture and simulation of electrical circuits
+
+BUILD_DEPENDS= scons:${PORTSDIR}/devel/scons
+
+USE_BZIP2= yes
+USE_XLIB= yes
+USE_GNOME= gnomehack gnomeprefix gtksourceview intlhack libglade2 \
+ libgnomeprintui libgnomeui
+INSTALLS_OMF= yes
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|-Wall|${CFLAGS}|g ; \
+ s|'/share'|'/share/gnome'|g ; \
+ s|'gnome/apps/Applications'|'applications'|g ; \
+ /oregano\.xml/d" ${WRKSRC}/SConstruct
+ @${FIND} ${WRKSRC} -name "SConscript" | ${XARGS} ${REINPLACE_CMD} -e \
+ "s|share/oregano|share/gnome/oregano|g"
+
+do-build:
+ @cd ${BUILD_WRKSRC} && scons PREFIX=${PREFIX}
+
+do-install:
+ @cd ${BUILD_WRKSRC} && scons install PREFIX=${PREFIX}
+ @${STRIP_CMD} ${PREFIX}/bin/oregano
+ @${MKDIR} ${PREFIX}/share/gnome/oregano/models
+ ${INSTALL_DATA} ${WRKSRC}/data/models/*.model \
+ ${PREFIX}/share/gnome/oregano/models
+ @${MKDIR} ${PREFIX}/share/gnome/oregano/samples
+ ${INSTALL_DATA} ${WRKSRC}/src/samples/*.oregano \
+ ${PREFIX}/share/gnome/oregano/samples
+.for lang in C es fr
+ @${MKDIR} ${PREFIX}/share/gnome/help/oregano/${lang}
+ ${INSTALL_DATA} ${WRKSRC}/help/${lang}/*.xml \
+ ${PREFIX}/share/gnome/help/oregano/${lang}
+ @${MKDIR} ${PREFIX}/share/gnome/omf/oregano
+ ${INSTALL_DATA} ${WRKSRC}/help/${lang}/*.omf \
+ ${PREFIX}/share/gnome/omf/oregano
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/gnome-oregano.svg \
+ ${PREFIX}/share/gnome/pixmaps/gnome-oregano.svg
+ ${INSTALL_DATA} ${WRKSRC}/oregano.xml.in \
+ ${PREFIX}/share/mime/packages/oregano.xml
+ @-update-mime-database ${PREFIX}/share/mime
+
+.include <bsd.port.post.mk>