1 |
3 |
ahitrov@rambler.ru |
############################################################################## |
2 |
495 |
ahitrov |
# |
3 |
3 |
ahitrov@rambler.ru |
############################################################################### |
4 |
|
|
|
5 |
|
|
|
6 |
|
|
include ../../etc/perl.mk |
7 |
|
|
|
8 |
|
|
|
9 |
|
|
ifeq (${shell perl -e 'print 1 if ${PERL_LEVEL}<500600'},1) |
10 |
|
|
PORTVERSION = 1.32 |
11 |
495 |
ahitrov |
elif (${shell perl -e 'print 1 if ${PERL_LEVEL}<501000'},1) |
12 |
|
|
PORTVERSION = 2.11.8 |
13 |
3 |
ahitrov@rambler.ru |
else |
14 |
495 |
ahitrov |
PORTVERSION = 2.19.3 |
15 |
3 |
ahitrov@rambler.ru |
endif |
16 |
|
|
|
17 |
|
|
PERL_MAKEMAKER = yes |
18 |
|
|
MASTER_CPAN_SUBDIR = DBD |
19 |
|
|
PORT_DEPENDS = DBI version |
20 |
|
|
CONFIGURE_PRECMD = ${MAKE_RECURSIVE} pre-configure |
21 |
|
|
CONFIGURE_POSTENV = POSTGRES_HOME=${WRKSRC}/pgsql |
22 |
|
|
|
23 |
|
|
pre-configure: |
24 |
|
|
|
25 |
|
|
@rm -Rf ${WRKSRC}/pgsql \ |
26 |
|
|
&& mkdir ${WRKSRC}/pgsql \ |
27 |
|
|
&& mkdir ${WRKSRC}/pgsql/bin \ |
28 |
|
|
&& mkdir ${WRKSRC}/pgsql/include \ |
29 |
|
|
&& mkdir ${WRKSRC}/pgsql/lib |
30 |
|
|
|
31 |
|
|
@cd ../postgresql/ \ |
32 |
|
|
&& ${MAKE_RECURSIVE} build |
33 |
|
|
|
34 |
|
|
PG=`cd ../postgresql/ && ${MAKE_RECURSIVE} get-WRKSRC` \ |
35 |
|
|
&& cp $${PG}/src/bin/pg_config/pg_config ${WRKSRC}/pgsql/bin \ |
36 |
|
|
&& cp $${PG}/src/interfaces/libpq/*.h ${WRKSRC}/pgsql/include \ |
37 |
|
|
&& cp $${PG}/src/include/postgres_ext.h ${WRKSRC}/pgsql/include \ |
38 |
|
|
&& cp $${PG}/src/interfaces/libpq/libpq.a ${WRKSRC}/pgsql/lib |
39 |
|
|
|
40 |
|
|
|
41 |
|
|
include ../../etc/ports.mk |