2013-07-03 15:01:36 +00:00
|
|
|
# Created by: Mario S F Ferreira <lioux@linf.unb.br> et al.
|
2000-07-30 07:10:53 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= electric
|
2004-07-25 16:22:02 +00:00
|
|
|
PORTVERSION= 7.0.0
|
2011-05-02 12:44:53 +00:00
|
|
|
PORTREVISION= 4
|
2000-07-30 07:10:53 +00:00
|
|
|
CATEGORIES= cad
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2003-03-28 17:22:43 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:C/^(...)\./\1/}
|
2000-07-30 07:10:53 +00:00
|
|
|
|
2011-10-24 03:33:20 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-07-03 15:01:36 +00:00
|
|
|
COMMENT= Sophisticated electrical CAD system
|
2000-07-30 07:10:53 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2013-07-03 15:01:36 +00:00
|
|
|
OPTIONS_DEFINE= T1LIB NLS OPTIMIZED_CFLAGS
|
2012-06-01 13:18:21 +00:00
|
|
|
OPTIONS_DEFAULT= T1LIB
|
|
|
|
T1LIB_DESC= Use T1lib Type1 font library
|
2006-07-14 21:53:59 +00:00
|
|
|
|
2013-07-09 21:49:35 +00:00
|
|
|
USES= motif
|
|
|
|
|
2012-06-01 13:18:21 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2006-07-14 21:53:59 +00:00
|
|
|
|
|
|
|
FEATURES+= MOTIF
|
|
|
|
|
2012-06-01 13:18:21 +00:00
|
|
|
.if ${PORT_OPTIONS:MT1LIB}
|
2013-12-11 14:53:20 +00:00
|
|
|
LIB_DEPENDS+= libt1.so:${PORTSDIR}/devel/t1lib
|
2006-07-14 21:53:59 +00:00
|
|
|
FEATURES+= T1LIB
|
|
|
|
.endif
|
|
|
|
|
2012-06-01 13:18:21 +00:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-04-24 18:10:30 +00:00
|
|
|
USES+= gettext
|
2006-07-14 21:53:59 +00:00
|
|
|
FEATURES+= INT
|
|
|
|
.endif
|
|
|
|
|
2012-06-01 13:18:21 +00:00
|
|
|
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
|
2006-07-14 21:53:59 +00:00
|
|
|
FEATURES+= OPT
|
|
|
|
.endif
|
|
|
|
|
2002-01-20 18:59:21 +00:00
|
|
|
post-patch:
|
2004-06-13 15:09:16 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share/electric/lib/|${DATADIR}/lib/|; \
|
|
|
|
s|/usr/share/electric/doc/|${DOCSDIR}/|; \
|
|
|
|
s|/usr/bin/|${LOCALBASE}/bin/|; \
|
|
|
|
s|${LOCALBASE}/bin/sort|${SORT}|' \
|
|
|
|
${WRKSRC}/src/include/config.h
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share/electric/lib|${DATADIR}/lib|; \
|
|
|
|
s|/usr/share/electric/doc|${DOCSDIR}|; \
|
2013-02-07 14:57:49 +00:00
|
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g' \
|
2002-09-20 02:32:14 +00:00
|
|
|
${WRKSRC}/Makefile.in
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/X11R6/|${LOCALBASE}/|' ${WRKSRC}/configure
|
2006-07-14 21:53:59 +00:00
|
|
|
.for FEATURE in ${FEATURES}
|
|
|
|
@${REINPLACE_CMD} -e 's|#%%${FEATURE}%%||g' ${WRKSRC}/Makefile.in
|
|
|
|
.endfor
|
2000-07-30 07:10:53 +00:00
|
|
|
|
2004-07-25 16:22:02 +00:00
|
|
|
post-install:
|
2013-12-30 18:39:48 +00:00
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/electric
|
2004-07-25 16:22:02 +00:00
|
|
|
|
2012-06-01 13:18:21 +00:00
|
|
|
.include <bsd.port.mk>
|