blob: bd8837a5663a85d6250e9c3bcac2288757e54cf9 (
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
|
# ports collection makefile for: libparserutils
# Date created: 20 August 2011
# Whom: David Romano <unobe@cpan.org>
#
# $FreeBSD$
#
PORTNAME= libparserutils
PORTVERSION= 0.1.1
CATEGORIES= devel
MASTER_SITES= http://www.netsurf-browser.org/projects/releases/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= unobe@cpan.org
COMMENT= A library useful when writing parsers (formerly a part of NetSurf)
USE_GMAKE= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
OPTIONS= ICONV "Adds iconv support" On \
STATIC "Build statically linked library" On \
TEST "Enable tests" On \
DOXYGEN "Build Doxygen Documentation" On
.include <bsd.port.options.mk>
.if defined(WITH_ICONV)
CFLAGS+= -DWITH_ICONV_FILTER
LDFLAGS+= -liconv
.endif
.if !defined(WITH_STATIC)
USE_PERL5_BUILD=yes
USE_LDCONFIG= yes
COMPONENT_TYPE= lib-shared
MAKE_ENV+= COMPONENT_TYPE=${COMPONENT_TYPE}
PLIST_SUB+= NO_STATIC="" STATIC="@comment "
.else
PLIST_SUB+= NO_STATIC="@comment " STATIC=""
.endif
.if defined(WITH_TEST)
USE_PERL5_BUILD=yes
ALL_TARGET+= test
.endif
.if defined(WITH_DOXYGEN)
DOXYGEN_PORTDIR=${PORTSDIR}/devel/doxygen
BUILD_DEPENDS+= doxygen:${DOXYGEN_PORTDIR}:build
PATH:=${PATH}:`cd ${DOXYGEN_PORTDIR}; make -V WRKSRC`/bin
ALL_TARGET+= docs
MAKE_ENV+= PATH=${PATH}
.endif
.include <bsd.port.mk>
|