freebsd-ports/databases/ruby-odbc/Makefile

54 lines
1.2 KiB
Makefile
Raw Normal View History

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= odbc
2010-05-21 07:35:44 +02:00
PORTVERSION= 0.99991
2012-02-06 13:25:50 +01:00
PORTREVISION= 1
CATEGORIES= databases ruby
MASTER_SITES= http://www.ch-werner.de/rubyodbc/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
2006-06-07 08:12:12 +02:00
MAINTAINER= knu@FreeBSD.org
2003-02-18 05:37:40 +01:00
COMMENT= Ruby extension library to use ODBC data sources
2014-04-07 15:12:49 +02:00
OPTIONS_DEFINe= DOCS EXAMPLES
LIB_DEPENDS= libodbc.so:${PORTSDIR}/databases/unixODBC
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
2010-05-21 07:35:44 +02:00
CONFIGURE_WRKSRC= ${WRKSRC}/ext
BUILD_WRKSRC= ${WRKSRC}/ext
INSTALL_WRKSRC= ${WRKSRC}/ext
INSTALL_TARGET= site-install
2014-04-07 15:12:49 +02:00
MAKE_ARGS= INSTALL_PROG="${INSTALL_PROGRAM}" \
INSTALL_DATA="${INSTALL_DATA}"
2010-05-21 07:35:44 +02:00
PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/odbc.so \
%%RUBY_SITELIBDIR%%/cqgen.rb
EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR}
PORTEXAMPLES= test
DOCSDIR= ${RUBY_MODDOCDIR}
PORTDOCS= COPYING ChangeLog README doc
post-extract:
cd ${WRKSRC} && ${MV} lib ext/
post-install:
2014-04-07 15:12:49 +02:00
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
2010-05-21 07:35:44 +02:00
.for f in ${PORTEXAMPLES}
2014-04-07 15:12:49 +02:00
cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${STAGEDIR}${EXAMPLESDIR}/
2010-05-21 07:35:44 +02:00
.endfor
2014-04-07 15:12:49 +02:00
@${MKDIR} ${STAGEDIR}${DOCSDIR}
2010-05-21 07:35:44 +02:00
.for f in ${PORTDOCS}
2014-04-07 15:12:49 +02:00
cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${STAGEDIR}${DOCSDIR}/
.endfor
2014-04-07 15:12:49 +02:00
.include <bsd.port.mk>