-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
58 lines (43 loc) · 1.48 KB
/
Makefile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# $OpenBSD: Makefile,v 1.10 2011/09/16 09:48:11 espie Exp $
SHARED_ONLY= Yes
COMMENT= geographic objects support for PostgreSQL
DISTNAME= postgis-1.5.2
CATEGORIES= geo databases
REVISION= 1
HOMEPAGE= http://www.postgis.org/
MAINTAINER= Eric Faurot <[email protected]>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}download/
WANTLIB= c geos_c m pq>=5.3 proj xml2 z
MODULES= converters/libiconv
LIB_DEPENDS= devel/proj \
databases/postgresql \
geo/geos
RUN_DEPENDS= databases/postgresql,-server
BUILD_DEPENDS= ${RUN_DEPENDS}
USE_GMAKE= Yes
CONFIGURE_ENV= PGXS=1 \
LDFLAGS='-L${LOCALBASE}/lib -pthread' \
CFLAGS=-I${LOCALBASE}/include
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --datadir=${PREFIX}/share/postgresql/contrib \
--libdir=${PREFIX}/lib/postgresql
USE_GROFF = Yes
post-install:
${INSTALL_SCRIPT_DIR} ${PREFIX}/libexec/postgis/utils
${INSTALL_SCRIPT} ${WRKSRC}/utils/*.pl ${PREFIX}/libexec/postgis/utils
${INSTALL_DATA} ${WRKSRC}/utils/README ${PREFIX}/libexec/postgis/utils
cd ${WRKSRC}/doc && WRKINST=${WRKINST} ${MAKE_PROGRAM} install
# Note on running regress
#
# - make sure you do not have a postgresql server currently running
# - as user _postgresql, in another terminal, run:
# $ mkdir /tmp/pg && initdb -D /tmp/pg -U postgres && postgres -D /tmp/pg
# - run make regress
do-regress: install
cd ${WRKSRC}/regress && PGUSER=postgres ${MAKE_PROGRAM}
.include <bsd.port.mk>