aboutsummaryrefslogtreecommitdiffstats
path: root/misc/qmc/Makefile
blob: 6d09ed9743b028cfe4ed71a962de4d4aa06a1a1c (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
# ex:ts=8
# New ports collection makefile for:    qmc
# Date created:         Nov 20, 2001
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   qmc
PORTVERSION=    0.94
CATEGORIES= misc
MASTER_SITES=   http://qmc.pollaknet.at/program/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Quine-McClusky process simplification tool

USE_BZIP2=  yes

PLIST_FILES=    bin/qmc

.if !defined(WITHOUT_TCLTK)
RUN_DEPENDS+=   wish8.4:${PORTSDIR}/x11-toolkits/tk84
PLIST_FILES+=   bin/qmc-gui
.endif

post-patch:
    @${REINPLACE_CMD} -e \
        's| wish | ${LOCALBASE}/bin/wish8.4 |g' ${WRKSRC}/qmc-gui.tcl

do-build:
    cd ${WRKSRC} && ${CXX} ${CXXFLAGS} -I. *.cc -o qmc

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/qmc ${PREFIX}/bin/qmc
.if !defined(WITHOUT_TCLTK)
    ${INSTALL_SCRIPT} ${WRKSRC}/qmc-gui.tcl ${PREFIX}/bin/qmc-gui
.endif

.include <bsd.port.mk>