Lines 1-81
Link Here
|
1 |
# Created by: Yukihiro Nakai <Nakai@technologist.com> |
1 |
# Created by: Yukihiro Nakai <Nakai@technologist.com> |
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= libxml2 |
4 |
PORTNAME= libxml2 |
5 |
DISTVERSION= 2.9.10 |
5 |
DISTVERSION= 2.9.10 |
6 |
PORTREVISION?= 0 |
6 |
PORTREVISION?= 0 |
7 |
CATEGORIES?= textproc gnome |
7 |
CATEGORIES?= textproc gnome |
8 |
MASTER_SITES= http://xmlsoft.org/sources/ |
8 |
MASTER_SITES= http://xmlsoft.org/sources/ |
9 |
DIST_SUBDIR= gnome2 |
9 |
DIST_SUBDIR= gnome2 |
10 |
|
10 |
|
11 |
MAINTAINER?= desktop@FreeBSD.org |
11 |
MAINTAINER?= desktop@FreeBSD.org |
12 |
COMMENT?= XML parser library for GNOME |
12 |
COMMENT?= XML parser library for GNOME |
13 |
|
13 |
|
14 |
.if !defined(REFERENCE_PORT) |
14 |
.if !defined(REFERENCE_PORT) |
15 |
|
15 |
|
16 |
LICENSE= MIT TRIO |
16 |
LICENSE= MIT TRIO |
17 |
LICENSE_COMB= multi |
17 |
LICENSE_COMB= multi |
18 |
LICENSE_NAME_TRIO= Trio License |
18 |
LICENSE_NAME_TRIO= Trio License |
19 |
LICENSE_FILE_MIT= ${WRKSRC}/COPYING |
19 |
LICENSE_FILE_MIT= ${WRKSRC}/COPYING |
20 |
LICENSE_FILE_TRIO= ${FILESDIR}/LICENSE.TRIO |
20 |
LICENSE_FILE_TRIO= ${FILESDIR}/LICENSE.TRIO |
21 |
LICENSE_PERMS_TRIO= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
21 |
LICENSE_PERMS_TRIO= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
22 |
|
22 |
|
23 |
GNU_CONFIGURE= yes |
23 |
GNU_CONFIGURE= yes |
24 |
USES+= compiler cpe gmake iconv libtool pathfix pkgconfig shebangfix |
24 |
USES= compiler cpe iconv libtool pathfix pkgconfig shebangfix |
25 |
CPE_VENDOR= xmlsoft |
25 |
CPE_VENDOR= xmlsoft |
26 |
USE_LDCONFIG= yes |
26 |
USE_LDCONFIG= yes |
27 |
CONFIGURE_ARGS?=--with-iconv=${ICONV_PREFIX} \ |
27 |
CONFIGURE_ARGS?=--with-iconv=${ICONV_PREFIX} \ |
28 |
--with-html-dir=${PREFIX}/share/doc \ |
28 |
--with-html-dir=${PREFIX}/share/doc \ |
29 |
--with-html-subdir=${PORTNAME} \ |
29 |
--with-html-subdir=${PORTNAME} \ |
30 |
--without-icu \ |
30 |
--without-icu \ |
31 |
--with-lzma=/usr \ |
31 |
--with-lzma=/usr \ |
32 |
--without-python |
32 |
--without-python |
33 |
INSTALL_TARGET= install-strip |
33 |
INSTALL_TARGET= install-strip |
34 |
SHEBANG_FILES= *.py */*.py */*/*.py |
34 |
SHEBANG_FILES= *.py */*.py */*/*.py |
35 |
|
35 |
|
36 |
PLIST_SUB+= LIBVERSION=${PORTVERSION} |
36 |
PLIST_SUB+= LIBVERSION=${PORTVERSION} |
37 |
|
37 |
|
38 |
.if !defined(MASTERDIR) |
38 |
.if !defined(MASTERDIR) |
39 |
|
39 |
|
40 |
OPTIONS_DEFINE= SCHEMA VALID THREADS MEM_DEBUG XMLLINT_HIST THREAD_ALLOC |
40 |
OPTIONS_DEFINE= SCHEMA VALID THREADS MEM_DEBUG XMLLINT_HIST THREAD_ALLOC |
41 |
OPTIONS_DEFAULT=SCHEMA VALID THREADS |
41 |
OPTIONS_DEFAULT=SCHEMA VALID THREADS |
42 |
SCHEMA_DESC= XML schema support |
42 |
SCHEMA_DESC= XML schema support |
43 |
SCHEMA_CONFIGURE_WITH= schemas |
43 |
SCHEMA_CONFIGURE_WITH= schemas |
44 |
VALID_DESC= Validation support |
44 |
VALID_DESC= Validation support |
45 |
VALID_CONFIGURE_OFF= --without-valid |
45 |
VALID_CONFIGURE_OFF= --without-valid |
46 |
THREADS_DESC= Threads support |
46 |
THREADS_DESC= Threads support |
47 |
THREADS_CONFIGURE_WITH= threads |
47 |
THREADS_CONFIGURE_WITH= threads |
48 |
MEM_DEBUG_DESC= Memory debugging (DEVELOPERS ONLY!) |
48 |
MEM_DEBUG_DESC= Memory debugging (DEVELOPERS ONLY!) |
49 |
MEM_DEBUG_CONFIGURE_WITH= mem-debug |
49 |
MEM_DEBUG_CONFIGURE_WITH= mem-debug |
50 |
XMLLINT_HIST_DESC= History for xmllint |
50 |
XMLLINT_HIST_DESC= History for xmllint |
51 |
XMLLINT_HIST_CONFIGURE_WITH= history |
51 |
XMLLINT_HIST_CONFIGURE_WITH= history |
52 |
THREAD_ALLOC_DESC= Per-thread memory (DEVELOPERS ONLY!) |
52 |
THREAD_ALLOC_DESC= Per-thread memory (DEVELOPERS ONLY!) |
53 |
THREAD_ALLOC_CONFIGURE_WITH= thread-alloc |
53 |
THREAD_ALLOC_CONFIGURE_WITH= thread-alloc |
54 |
|
54 |
|
55 |
.endif # !defined(MASTERDIR) |
55 |
.endif # !defined(MASTERDIR) |
56 |
|
56 |
|
57 |
.if !defined(MASTERDIR) |
57 |
.if !defined(MASTERDIR) |
58 |
post-install: |
58 |
post-install: |
59 |
@${RM} -r ${STAGEDIR}${PREFIX}/share/gtk-doc |
59 |
@${RM} -r ${STAGEDIR}${PREFIX}/share/gtk-doc |
60 |
.endif |
60 |
.endif |
61 |
|
61 |
|
62 |
.include <bsd.port.pre.mk> |
62 |
.include <bsd.port.pre.mk> |
63 |
|
63 |
|
64 |
post-patch: |
64 |
post-patch: |
65 |
.for d in . doc doc/devhelp doc/examples |
65 |
.for d in . doc doc/devhelp doc/examples |
66 |
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-data-local||' \ |
66 |
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-data-local||' \ |
67 |
${WRKSRC}/${d}/Makefile.in |
67 |
${WRKSRC}/${d}/Makefile.in |
68 |
.endfor |
68 |
.endfor |
69 |
.for f in catalog.c xmlcatalog.c xmllint.c doc/xmllint.1 |
69 |
.for f in catalog.c xmlcatalog.c xmllint.c doc/xmllint.1 |
70 |
@${REINPLACE_CMD} -e \ |
70 |
@${REINPLACE_CMD} -e \ |
71 |
's|/etc/xml/catalog|${LOCALBASE}/share/xml/catalog|g; \ |
71 |
's|/etc/xml/catalog|${LOCALBASE}/share/xml/catalog|g; \ |
72 |
s|/etc/sgml/catalog|${LOCALBASE}/share/sgml/catalog|g' \ |
72 |
s|/etc/sgml/catalog|${LOCALBASE}/share/sgml/catalog|g' \ |
73 |
${WRKSRC}/${f} |
73 |
${WRKSRC}/${f} |
74 |
.endfor |
74 |
.endfor |
75 |
.if ${CHOSEN_COMPILER_TYPE} == gcc |
75 |
.if ${CHOSEN_COMPILER_TYPE} == gcc |
76 |
@${REINPLACE_CMD} -e 's/ -Wno-array-bounds//' ${WRKSRC}/configure |
76 |
@${REINPLACE_CMD} -e 's/ -Wno-array-bounds//' ${WRKSRC}/configure |
77 |
.endif |
77 |
.endif |
78 |
|
78 |
|
79 |
.include <bsd.port.post.mk> |
79 |
.include <bsd.port.post.mk> |
80 |
|
80 |
|
81 |
.endif |
81 |
.endif |