aboutsummaryrefslogtreecommitdiffstats
path: root/lang/mdk/Makefile
blob: 3c8d0b987c2c4f71aaf08dec20691cea67db6696 (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
51
52
53
54
55
56
57
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$

PORTNAME=   mdk
PORTVERSION=    1.2.6
CATEGORIES= lang gnome
MASTER_SITES=   GNU/${PORTNAME}/v${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A set of utilities for developing programs using MIX and MIXAL

LICENSE=    GPLv3

OPTIONS_DEFINE= GLADE GUILE
OPTIONS_DEFAULT=GLADE GUILE

USE_GNOME=  glib20 intltool
USES=       gettext ncurses readline gmake pkgconfig
GNU_CONFIGURE=  yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

INFO=       mdk
PLIST_FILES=    bin/mixasm \
        bin/mixvm \
        share/locale/de/LC_MESSAGES/mdk.mo \
        %%DATADIR%%/mixal-mode.el \
        %%DATADIR%%/mixvm.el
PLIST_DIRS= %%DATADIR%%

NO_STAGE=   yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGLADE}
USE_GNOME+= libglade2
PLIST_FILES+=   bin/gmixvm \
        %%DATADIR%%/mixgtk.glade
.else
CONFIGURE_ARGS+=--disable-gui
.endif

.if ${PORT_OPTIONS:MGUILE}
LIB_DEPENDS+=   guile:${PORTSDIR}/lang/guile
PLIST_FILES+=   bin/mixguile \
        %%DATADIR%%/mixguile.scm \
        %%DATADIR%%/mixguile-commands.scm \
        %%DATADIR%%/mixguile-vm-stat.scm
.else
CONFIGURE_ARGS+=--without-guile
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|-D.*_DISABLE_DEPRECATED||g' \
        ${WRKSRC}/configure

.include <bsd.port.mk>