1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/science/libkml/Makefile
2015-01-20 11:46:08 +00:00

36 lines
961 B
Makefile

# Created by: Wen Heping <wen@FreeBSD.org>
# $FreeBSD$
PORTNAME= libkml
PORTVERSION= 1.2.0
PORTREVISION= 2
CATEGORIES= science
MASTER_SITES= GOOGLE_CODE
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Library for parse, generate, and operate on KML
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ${LOCALBASE}/bin/curl-config:${PORTSDIR}/ftp/curl \
${LOCALBASE}/include/expat.h:${PORTSDIR}/textproc/expat2
OPTIONS_DEFINE= SWIG
CONFIGURE_ARGS= --disable-java --disable-python \
--with-expat-include-dir=${LOCALBASE}/include \
--with-expat-lib-dir=${LOCALBASE}/lib
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
USES= gmake libtool
SWIG_BUILD_DEPENDS= ${LOCALBASE}/bin/swig:${PORTSDIR}/devel/swig13
SWIG_CONFIGURE_OFF= --disable-swig
post-patch:
@${REINPLACE_CMD} -e '/SWIG_VERSION:4/ s|:4|#*.*.|' ${WRKSRC}/configure
@${FIND} ${WRKSRC} -name Makefile.in -exec ${REINPLACE_CMD} 's|-Werror||; s| -ansi -pedantic||' '{}' \;
.include <bsd.port.mk>