mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
c68548820c
or USE_LIBRUBY is defined, individual ruby ports no longer need to include it explicitly.
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# New ports collection makefile for: ruby-postgres
|
|
# Date created: 19 April 1999
|
|
# Whom: Yasuhiro Fukuma <yasuf@big.or.jp>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= postgres
|
|
PORTVERSION= 0.6.1
|
|
CATEGORIES= databases ruby
|
|
MASTER_SITES= http://webclub.kcom.ne.jp/mb/noborus/archive/
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql7
|
|
|
|
USE_RUBY= yes
|
|
USE_RUBY_EXTCONF= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
CONFIGURE_ARGS+= --with-pgsql-include-dir="${PGDIR}/include" \
|
|
--with-pgsql-lib-dir="${PGDIR}/lib"
|
|
INSTALL_TARGET= site-install
|
|
|
|
PGDIR?= ${PREFIX}/pgsql
|
|
|
|
DOCS_EN= ChangeLog README doc/postgres.html
|
|
DOCS_JA= README.jp doc/postgres.jp.html
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${RUBY_EXAMPLESDIR}/postgres
|
|
${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/postgres/
|
|
${MKDIR} ${RUBY_DOCDIR}/postgres/ja
|
|
.for f in ${DOCS_EN}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/postgres/
|
|
.endfor
|
|
.for f in ${DOCS_JA}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/postgres/ja/
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|