freebsd-ports/textproc/ruby-libxml/Makefile

47 lines
1.2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: ruby-libxml
# Date created: 09 July 2002
# Whom: Sean Chittenden <seanc@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libxml
2008-07-15 19:25:00 +02:00
PORTVERSION= 0.7.0
CATEGORIES= textproc ruby
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
MASTER_SITE_SUBDIR= libxml
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-ruby-${PORTVERSION}
2008-07-15 19:25:00 +02:00
EXTRACT_SUFX= .tgz
MAINTAINER= gahr@FreeBSD.org
COMMENT= A friendly API to libxml for Ruby
LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2
USE_RUBY= yes
USE_ICONV= yes
2008-07-15 19:25:00 +02:00
USE_LDCONFIG= ${RUBY_SITEARCHLIBDIR}/xml
EXT_ARGS= --with-iconv-dir=${LOCALBASE} \
--with-iconv-lib=${LOCALBASE}/lib \
--with-iconv-include=${LOCALBASE}/include
PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/xml/libxml.so \
%%RUBY_SITELIBDIR%%/xml/libxml.rb
PLIST_DIRS= %%RUBY_SITEARCHLIBDIR%%/xml \
%%RUBY_SITELIBDIR%%/xml
2008-07-15 19:25:00 +02:00
do-configure:
cd ${WRKSRC}/ext/libxml && ${RUBY} extconf.rb build ${EXT_ARGS}
do-build:
2008-07-15 19:25:00 +02:00
cd ${WRKSRC}/ext/libxml && ${MAKE}
do-install:
2008-07-15 19:25:00 +02:00
${INSTALL} -d ${RUBY_SITELIBDIR}/xml ${RUBY_SITEARCHLIBDIR}/xml
${INSTALL_DATA} ${WRKSRC}/lib/libxml.rb ${RUBY_SITELIBDIR}/xml
${INSTALL_DATA} ${WRKSRC}/ext/libxml/libxml_ruby.so ${RUBY_SITEARCHLIBDIR}/xml/libxml.so
.include <bsd.port.mk>