freebsd-ports/devel/libparserutils/Makefile
Pawel Pekala 36c4c59b09 - Update to version 0.1.1
- Use official mirror for fetching distfile
- Switch to bsd.port.options.mk

PR:		ports/167719
Submitted by:	me
Approved by:	maintainer
2012-05-10 14:13:32 +00:00

59 lines
1.3 KiB
Makefile

# 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>