aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libslang2/Makefile
blob: 63c9fb6576554d2efbd53ac8e65eea730ec3cb63 (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
58
59
60
61
62
63
64
# New ports collection makefile for:    libslang2
# Date created:     2005-05-16
# Whom:         Renato Botelho <freebsd@galle.com.br>
#
# $FreeBSD$
#

PORTNAME=   libslang2
PORTVERSION=    2.0.6
CATEGORIES= devel
MASTER_SITES=   ftp://space.mit.edu/pub/davis/slang/v2.0/ \
        ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v2.0/ \
        ftp://ftp.ntua.gr/pub/lang/slang/slang/v2.0/ \
        ftp://ftp.plig.org/pub/slang/v2.0/
DISTNAME=   slang-${PORTVERSION}

MAINTAINER= garga@FreeBSD.org
COMMENT=    Routines for rapid alpha-numeric terminal applications development

USE_BZIP2=  yes
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}

CONFLICTS=  libslang-1.*

ALL_TARGET= all elf
INSTALL_TARGET= install install-elf

MAN1=       slsh.1
DOCSDIR=    ${PREFIX}/share/doc/slang
DATADIR=    ${PREFIX}/share/slsh

OPTIONS=    PCRE "Include pcre support" on \
        PNG  "Include png support"  on

.if !defined(NOPORTDOCS)
PORTDOCS=   *
.endif

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_PCRE)
LIB_DEPENDS+=   pcre.0:${PORTSDIR}/devel/pcre
PLIST_SUB+= PCRE=""
.else
CONFIGURE_ARGS+=    --without-pcre
PLIST_SUB+= PCRE="@comment "
.endif

.if !defined(WITHOUT_PNG)
LIB_DEPENDS+=   png.5:${PORTSDIR}/graphics/png
PLIST_SUB+= PNG=""
.else
CONFIGURE_ARGS+=    --without-png
PLIST_SUB+= PNG="@comment "
.endif

post-patch:
.if defined(NOPORTDOCS)
    @${REINPLACE_CMD} -e 's, install_docs,,g' ${WRKSRC}/src/Makefile.in
.endif

.include <bsd.port.post.mk>