aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/libieee1284/Makefile
blob: 1bf562732815683d0138637f4b3c256554e91fe5 (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
# New ports collection makefile for:    libieee1284
# Date created:     2004-12-29
# Whom:         Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   libieee1284
PORTVERSION=    0.2.10
PORTREVISION=   0
CATEGORIES= sysutils
MASTER_SITES=   http://cyberelk.net/tim/data/libieee1284/stable/

MAINTAINER= stas@FreeBSD.org
COMMENT=    IEEE1284 communications library

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
ONLY_FOR_ARCHS= i386

.if defined(WITH_PYTHON)
USE_PYTHON= yes
.endif

.include <bsd.port.pre.mk>

MAN3!=      ${CAT} ${FILESDIR}/man3

.if defined(WITH_PYTHON)
CFLAGS+=    -I${PYTHON_INCLUDEDIR}
LDFLAGS+=   -L${PYTHON_LIBDIR}
CONFIGURE_ARGS+=--with-python=yes
PLIST_SUB+= PYTHON=""
.else
CONFIGURE_ARGS+=--with-python=no
PLIST_SUB+= PYTHON="@comment "
.endif

.if !defined(NOPORTDOCS)
PORTDOCS=   README README.FreeBSD
.endif

post-patch:
    @${REINPLACE_CMD} -E -e 's,(objformat=).*,\1elf,' \
        ${WRKSRC}/configure

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>