View | Details | Raw Unified | Return to bug 105849
Collapse All | Expand All

(-)Makefile. (-8 / +43 lines)
Lines 30-46 Link Here
30
		EMACS="no"
30
		EMACS="no"
31
CONFIGURE_ARGS=	--disable-csharp \
31
CONFIGURE_ARGS=	--disable-csharp \
32
		--mandir=${PREFIX}/man
32
		--mandir=${PREFIX}/man
33
INSTALLS_SHLIB=	yes
33
USE_LDCONFIG= yes
34
34
35
.if !defined(WITHOUT_GETTEXT_OPTIONS)
35
.if !defined(WITHOUT_GETTEXT_OPTIONS)
36
OPTIONS=	EXAMPLES "install example files" off \
36
OPTIONS=	EXAMPLES "install example files" off \
37
		HTMLMAN "install man pages in HTML format" off
37
		HTMLMAN "install man pages in HTML format" off \
38
		MINIMAL "install only libintl" off
38
.endif
39
.endif
39
PLIST=		${WRKDIR}/plist
40
PLIST=		${WRKDIR}/plist
40
PLISTU=		${WRKDIR}/plist-unsorted
41
PLISTU=		${WRKDIR}/plist-unsorted
41
PLIST_SUB=	LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} \
42
PLIST_SUB=	LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} \
42
		VERSION=${PORTVERSION}
43
		VERSION=${PORTVERSION}
43
44
45
.ifdef USE_GETTEXT
46
.error	USE_GETTEXT is defined as an environment variable, or in the arguments \
47
	to "make".  Please unset it and restart the build.
48
.endif
49
50
.include <bsd.port.pre.mk>
51
52
.if !defined(WITH_MINIMAL)
44
MAN1=		autopoint.1 gettext.1 gettextize.1 msgattrib.1 msgcat.1 \
53
MAN1=		autopoint.1 gettext.1 gettextize.1 msgattrib.1 msgcat.1 \
45
		msgcmp.1 msgcomm.1 msgconv.1 msgen.1 msgexec.1 \
54
		msgcmp.1 msgcomm.1 msgconv.1 msgen.1 msgexec.1 \
46
		msgfilter.1 msgfmt.1 msggrep.1 msginit.1 msgmerge.1 \
55
		msgfilter.1 msgfmt.1 msggrep.1 msginit.1 msgmerge.1 \
Lines 52-65 Link Here
52
		bindtextdomain.3 bind_textdomain_codeset.3
61
		bindtextdomain.3 bind_textdomain_codeset.3
53
62
54
INFO=		autosprintf gettext
63
INFO=		autosprintf gettext
55
64
.else
56
.ifdef USE_GETTEXT
65
MAN1=		msgfmt.1
57
.error	USE_GETTEXT is defined as an environment variable, or in the arguments \
58
	to "make".  Please unset it and restart the build.
59
.endif
66
.endif
60
67
61
.include <bsd.port.pre.mk>
62
63
.if ${OSVERSION} < 500000
68
.if ${OSVERSION} < 500000
64
CONFIGURE_ARGS+=	--with-libexpat-prefix=${LOCALBASE}/lib
69
CONFIGURE_ARGS+=	--with-libexpat-prefix=${LOCALBASE}/lib
65
LIB_DEPENDS+=	expat.6:${PORTSDIR}/textproc/expat2
70
LIB_DEPENDS+=	expat.6:${PORTSDIR}/textproc/expat2
Lines 74-79 Link Here
74
	@sleep 5
79
	@sleep 5
75
.endif
80
.endif
76
81
82
.if defined(WITH_MINIMAL)
83
post-patch:
84
	# make msgfmt static
85
	@${REINPLACE_CMD} -e \
86
                's:$$(LINK) $$(msgfmt_LDFLAGS):$$(LINK) $$(msgfmt_LDFLAGS) -static:'\
87
                ${WRKSRC}/gettext-tools/src/Makefile.in
88
89
.endif
90
77
post-build:
91
post-build:
78
.if exists(${PREFIX}/bin/kaffe)
92
.if exists(${PREFIX}/bin/kaffe)
79
	-${MV} ${PREFIX}/bin/jar.backup ${PREFIX}/bin/jar
93
	-${MV} ${PREFIX}/bin/jar.backup ${PREFIX}/bin/jar
Lines 82-90 Link Here
82
	@sleep 5
96
	@sleep 5
83
.endif
97
.endif
84
98
99
.if !defined(WITH_MINIMAL)
85
pre-install:
100
pre-install:
86
	@${RM} -f ${PLISTU}
101
	@${RM} -f ${PLISTU}
87
	@${TOUCH} ${PLISTU}
102
	@${TOUCH} ${PLISTU}
103
88
.if !defined (NOPORTDOCS)
104
.if !defined (NOPORTDOCS)
89
.for ii in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 foot toc
105
.for ii in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 foot toc
90
	${ECHO_CMD} %%DOCSDIR%%/gettext_${ii}.html >> ${PLISTU}
106
	${ECHO_CMD} %%DOCSDIR%%/gettext_${ii}.html >> ${PLISTU}
Lines 125-130 Link Here
125
.if !defined (WITH_HTMLMAN)
141
.if !defined (WITH_HTMLMAN)
126
	cd ${WRKSRC}/gettext-runtime/man && make uninstall-html
142
	cd ${WRKSRC}/gettext-runtime/man && make uninstall-html
127
	cd ${WRKSRC}/gettext-tools/man && make uninstall-html
143
	cd ${WRKSRC}/gettext-tools/man && make uninstall-html
144
.endif
145
146
.else # WITH_MINIMAL
147
pre-install:
148
	@${ECHO} include/libintl.h > ${PLIST}
149
	@${ECHO} lib/libintl.a >> ${PLIST}
150
	@${ECHO} lib/libintl.la >> ${PLIST}
151
	@${ECHO} lib/libintl.so >> ${PLIST}
152
	@${ECHO} lib/libintl.so.6 >> ${PLIST}
153
	@${ECHO} bin/msgfmt >> ${PLIST}
154
155
do-install:
156
	${INSTALL_MAN} ${WRKSRC}/gettext-tools/man/msgfmt.1  ${PREFIX}/man/man1/
157
	${INSTALL_DATA} ${WRKSRC}/gettext-tools/intl/libintl.h ${PREFIX}/include/
158
	${INSTALL_DATA} ${WRKSRC}/gettext-tools/intl/.libs/libintl.a ${PREFIX}/lib/
159
	${INSTALL_DATA} ${WRKSRC}/gettext-tools/intl/.libs/libintl.so.6 ${PREFIX}/lib/
160
	(cd ${WRKSRC} && ${LIBTOOL} --mode=install \
161
	${INSTALL_DATA} ${WRKSRC}/gettext-tools/intl/libintl.la ${PREFIX}/lib/)
162
	${INSTALL_PROGRAM} ${WRKSRC}/gettext-tools/src/msgfmt ${PREFIX}/bin/msgfmt
128
.endif
163
.endif
129
164
130
.include <bsd.port.post.mk>
165
.include <bsd.port.post.mk>

Return to bug 105849