blob: bf39565ea917a4d9daa9ebf3546345a977f1f674 (
plain) (
blame)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Created by: Masanori OZAWA <ozawa@ongs.co.jp>
# $FreeBSD$
PORTNAME= xdtp
PORTVERSION= 1.5.0
PORTREVISION= 4
CATEGORIES= japanese
MASTER_SITES= http://www.ongs.co.jp/software/xdtp/
MAINTAINER= ports@FreeBSD.org
COMMENT= XML document transfer program
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= pkgconfig tar:tgz
USE_GNOME= glibmm libxml2 libxslt
HAS_CONFIGURE= yes
USE_LDCONFIG= yes
CFLAGS+= -fPIC
OPTIONS_DEFINE= DEBUG DOCS GDK INCLUDE
OPTIONS_DEFAULT= GDK INCLUDE
OPTIONS_SUB= yes
DEBUG_MAKE_ARGS= DEBUG="yes"
GDK_DESC= Build with Gdk-Pixbuf
GDK_USE= gnome=gdkpixbuf2
GDK_CONFIGURE_ENV_OFF= WITHOUT_GDK="yes"
GDK_MAKE_ARGS_OFF= WITHOUT_GDK="yes"
INCLUDE_DESC= Install with XDTP include files
INCLUDE_MAKE_ARGS_OFF= WITHOUT_INCLUDE="yes"
post-patch:
@${REINPLACE_CMD} -e \
's|-o .* \(-m\)|\1| ; \
s|\([[:blank:]]\)\($${XDTPDOCUMENT}\)|\1$${DESTDIR}\2|' \
${WRKSRC}/banbun/Makefile
@${REINPLACE_CMD} -e \
's|-o .* \(-m\)|\1| ; \
s|\([[:blank:]]\)\($${PREFIX}\)|\1$${DESTDIR}\2|' \
${WRKSRC}/bin/Makefile
@${REINPLACE_CMD} -e \
's|-o .* \(-m\)|\1| ; \
s|\([[:blank:]]\)\($${XDTPSHARE}\)|\1$${DESTDIR}\2|' \
${WRKSRC}/misc/emacs/Makefile
@${REINPLACE_CMD} -e \
's|-o .* \(-m\)|\1| ; \
s|\([[:blank:]]\)\($${PKGCONFDIR}\)|\1$${DESTDIR}\2|' \
${WRKSRC}/pkgconfig/Makefile
@${REINPLACE_CMD} -e \
's|-o .* \(-m\)|\1| ; \
s|\([[:blank:]]\)\($${PREFIX}\)|\1$${DESTDIR}\2| ; \
s|\([[:blank:]]\)\($${XDTPINCLUDE}\)|\1$${DESTDIR}\2| ; \
s|\([[:blank:]]\)\($${XDTPSHARE}\)|\1$${DESTDIR}\2| ; \
/$${LN}/s|^|#|' \
${WRKSRC}/src/Makefile
@${REINPLACE_CMD} -e \
's|-o .* \(-m\)|\1| ; \
s|\([[:blank:]]\)\($${PREFIX}\)|\1$${DESTDIR}\2| ; \
s|\([[:blank:]]\)\($${XDTPSHARE}\)|\1$${DESTDIR}\2|' \
${WRKSRC}/xsl/Makefile
# Unbreak parallel builds (-jX) by calling make(1) correctly
@${REINPLACE_CMD} -E 's/cd(.+)(;| &&) (\$${MAKE})/\3 -C\1/' \
${WRKSRC}/Makefile ${WRKSRC}/bin/Makefile \
${WRKSRC}/java/Makefile ${WRKSRC}/misc/Makefile
post-install:
@${LN} -sf libxdtp.so.5 ${STAGEDIR}${PREFIX}/lib/libxdtp.so
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libxdtp.so.5
.include <bsd.port.mk>
|