aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/slgtkdatabox/Makefile
blob: 6e980b2c6730796cf93d7cbf462bb71983e91e6b (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:    slgtkdatabox
# Date created:     15 Aug 2008
# Whom:         Alexey Shuvaev <shuvaev@phyisik.uni-wuerzburg.de>
#
# $FreeBSD$
#

PORTNAME=   slgtkdatabox
PORTVERSION=    0.3
PORTREVISION=   1
CATEGORIES= x11-toolkits
MASTER_SITES=   http://laurent.perez2.free.fr/comp/slang/modules/
EXTRACT_SUFX=   .tgz

MAINTAINER= shuvaev@physik.uni-wuerzburg.de
COMMENT=    S-Lang binding for gtkdatabox

LIB_DEPENDS=    slang.2:${PORTSDIR}/devel/libslang2 \
        gtkdatabox-0.9.0.1:${PORTSDIR}/x11-toolkits/gtkdatabox
RUN_DEPENDS=    imdisplay:${PORTSDIR}/x11-toolkits/slgtk

OPTIONS=    SLGLADE "Enable slglade support (run-time)" off

.include <bsd.port.pre.mk>

.if defined(WITH_SLGLADE)
RUN_DEPENDS+=   ${LOCALBASE}share/slsh/local-packages/glade.sl:${PORTSDIR}/devel/slglade
PLIST_SUB+= SLGLADE=""
.else
PLIST_SUB+= SLGLADE="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -e 's/-ldl//' ${WRKSRC}/Makefile

do-install:
    ${INSTALL_DATA} ${WRKSRC}/gtkdatabox-module.so \
        ${PREFIX}/lib/slang/v2/modules
    ${INSTALL_DATA} ${WRKSRC}/gtkdatabox.sl \
        ${PREFIX}/share/slsh/local-packages
.if !defined(NOPORTEXAMPLES)
    ${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/examples/??[a-mo-z]*.sl ${EXAMPLESDIR}
.if defined(WITH_SLGLADE)
    ${INSTALL_DATA} ${WRKSRC}/examples/line_attributes.glade ${EXAMPLESDIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/examples/line_attributes.sl ${EXAMPLESDIR}
.endif
.endif

.include <bsd.port.post.mk>