1 |
8 |
ahitrov@rambler.ru |
############################################################################## |
2 |
|
|
# $HeadURL: http://svn.dev.rambler.ru/Contenido/branches/utf8/ports/all/XML-Parser-encodings/GNUmakefile $ |
3 |
|
|
# $Id: GNUmakefile 661 2007-01-29 12:03:09Z abavykin $ |
4 |
|
|
############################################################################### |
5 |
|
|
|
6 |
|
|
PORTVERSION = 0.01 |
7 |
|
|
PERL_MAKEMAKER = yes |
8 |
|
|
PORT_DEPENDS = XML-Encoding |
9 |
|
|
|
10 |
|
|
WRKSRC = ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
11 |
|
|
|
12 |
|
|
do-fetch: ; |
13 |
|
|
do-extract: ; |
14 |
|
|
@mkdir -p ${WRKSRC} |
15 |
|
|
|
16 |
|
|
do-configure: ; |
17 |
|
|
do-build: |
18 |
|
|
@export ${BUILD_ENV}; for ENC in *.txt; do \ |
19 |
|
|
ENC_NAME=`echo $${ENC} | perl -pe 's/\.txt$$//'`; \ |
20 |
|
|
${PREFIX}/bin/make_encmap $${ENC_NAME} $${ENC_NAME}.txt | \ |
21 |
|
|
${PERL} -pi -e "s/(?<=^<encmap name='$${ENC_NAME}')()(?=>)/ expat='yes'/;" > ${WRKSRC}/$${ENC_NAME}.xml;\ |
22 |
|
|
${PREFIX}/bin/compile_encoding -o ${WRKSRC}/$${ENC_NAME}.enc ${WRKSRC}/$${ENC_NAME}.xml; \ |
23 |
|
|
done |
24 |
|
|
|
25 |
|
|
do-install: |
26 |
|
|
@mkdir -p ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/XML/Parser/Encodings/ |
27 |
|
|
@cp ${WRKSRC}/*.enc ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/XML/Parser/Encodings/ |
28 |
|
|
|
29 |
|
|
include ../../etc/ports.mk |