aboutsummaryrefslogtreecommitdiff
path: root/cad/oregano/Makefile
blob: bdb0e46724fea99a50e65e366a86bad43395322f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:	oregano
# Date created:			19 Feb 2001
# Whom:				Anders Andersson <anders@hack.org>
#
# $FreeBSD$
#   $MCom: ports/cad/oregano/Makefile,v 1.9 2007/07/23 19:25:26 mezz Exp $
#

PORTNAME=	oregano
PORTVERSION=	0.69.0
PORTREVISION=	5
CATEGORIES=	cad gnome
MASTER_SITES=	http://gforge.lug.fi.uba.ar/frs/download.php/86/

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	Schematic capture and simulation of electrical circuits

USE_GNOME=	gnomehack gnomeprefix gtksourceview intlhack libglade2 \
		libgnomeui
USE_GETTEXT=	yes
USE_SCONS=	yes
INSTALLS_OMF=	yes

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_NLS)
USE_GETTEXT=	yes
PLIST_SUB+=	NLS=""
.else
PLIST_SUB+=	NLS="@comment "
.endif

post-patch:
	@${REINPLACE_CMD} -e "s|-Wall|${CFLAGS}|g;s|%%PREFIX%%|${PREFIX}|;s|pkg-config|${LOCALBASE}/bin/pkg-config|g" ${WRKSRC}/SConstruct
.if defined(WITHOUT_NLS)
	@${REINPLACE_CMD} -e "/^SConscript ('po\/SConscript')/d" ${WRKSRC}/SConstruct
.endif

post-install:
	@${STRIP_CMD} ${PREFIX}/bin/oregano
.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/omf/oregano
	${INSTALL_DATA} ${WRKSRC}/help/${lang}/*.omf \
		${PREFIX}/share/omf/oregano
.endfor

.include <bsd.port.post.mk>