aboutsummaryrefslogtreecommitdiffstats
path: root/cad/electric/Makefile
blob: 285ac897c0a67fdbbd4a41de78f8c5f2207a1bd8 (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
# New ports collection makefile for:    electric
# Date created:     4 May 2000
# Whom:         Mario S F Ferreira <lioux@linf.unb.br> et al.
#
# $FreeBSD$
#

PORTNAME=   electric
PORTVERSION=    7.0.0
CATEGORIES= cad
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   ${PORTNAME}-${PORTVERSION:C/^(...)\./\1/}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A Sophisticated electrical CAD system

USE_MOTIF=  yes
USE_REINPLACE=  yes
GNU_CONFIGURE=  yes

post-patch:
    @${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}|; \
        s|@PTHREAD_LIBS@|${PTHREAD_LIBS:S/"//g}|' \
        ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e 's|/usr/X11R6/|${X11BASE}/|' ${WRKSRC}/configure

post-install:
    ${STRIP_CMD} ${PREFIX}/bin/electric

.include <bsd.port.mk>