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