aboutsummaryrefslogtreecommitdiff
path: root/databases/ip4r/Makefile
blob: 7b0cfba56acb72f22e20728e1fd4768e17f0c3c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Created by: Ade Lovett <ade@FreeBSD.org>
# $FreeBSD$

PORTNAME=	ip4r
PORTVERSION=	2.0
CATEGORIES=	databases net
MASTER_SITES=	http://pgfoundry.org/frs/download.php/3380/

MAINTAINER=	tobez@FreeBSD.org
COMMENT=	IP address and IP range index types for PostgreSQL

USE_PGSQL=	YES
USE_GMAKE=	YES

MAKE_ARGS=	USE_PGXS=1

# In order to make this port PREFIX-safe, we override the install target
# and install the three files manually
NO_STAGE=	yes
do-install:
	@${INSTALL} -m ${BINMODE} ${WRKSRC}/ip4r.so ${PREFIX}/lib/postgresql
	@${MKDIR} ${PREFIX}/share/postgresql/contrib
	@${INSTALL_DATA} ${WRKSRC}/ip4r.sql \
		${PREFIX}/share/postgresql/contrib
	@${MKDIR} ${PREFIX}/share/doc/postgresql/contrib
	@${INSTALL_DATA} ${WRKSRC}/README.ip4r \
		${PREFIX}/share/doc/postgresql/contrib

.include <bsd.port.mk>