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

(-)japanese/ebview/Makefile (-15 / +14 lines)
Lines 9-20 Link Here
9
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	ports@FreeBSD.org
10
COMMENT=	Electronic Book Viewer
10
COMMENT=	Electronic Book Viewer
11
11
12
LIB_DEPENDS=	eb:${PORTSDIR}/japanese/eb
12
LICENSE=	GPLv2 # (or later)
13
13
14
CONFLICTS=	ja-ebview-gtk2-*
14
LIB_DEPENDS=	libeb.so:${PORTSDIR}/japanese/eb
15
15
16
OPTIONS_DEFINE=	DOCS
17
18
CONFLICTS=	ja-ebview-gtk2-[0-9]*
19
20
USES=		gettext gmake
16
USE_GNOME=	imlib
21
USE_GNOME=	imlib
17
USE_GMAKE=	yes
18
USE_AUTOTOOLS=	autoconf
22
USE_AUTOTOOLS=	autoconf
19
MAKE_ARGS=	ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
23
MAKE_ARGS=	ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
20
		AUTOHEADER="${TRUE}"
24
		AUTOHEADER="${TRUE}"
Lines 22-42 Link Here
22
CPPFLAGS+=	-I${LOCALBASE}/include
26
CPPFLAGS+=	-I${LOCALBASE}/include
23
LDFLAGS+=	-L${LOCALBASE}/lib
27
LDFLAGS+=	-L${LOCALBASE}/lib
24
28
25
NO_STAGE=	yes
29
.include <bsd.port.options.mk>
26
.include <bsd.port.pre.mk>
27
30
28
pre-build:
31
post-patch:
29
.for file in src/dictheading.c
32
	@${REINPLACE_CMD} -e \
30
	cd ${WRKSRC} && ${MV} ${file} ${file}.pre_iconv \
33
		's|// .*||' ${WRKSRC}/src/dictheading.c
31
		&& iconv -c -t ascii ${file}.pre_iconv > ${file} || ${TRUE}
32
.endfor
33
34
34
post-install:
35
post-install:
35
.if !defined(NOPORTDOCS)
36
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
36
	${MKDIR} ${DOCSDIR}
37
.for i in ChangeLog README
37
.for i in ChangeLog README
38
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
38
	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
39
.endfor
39
.endfor
40
.endif
41
40
42
.include <bsd.port.post.mk>
41
.include <bsd.port.mk>
(-)japanese/ebview/files/patch-data__Makefile.in (+19 lines)
Line 0 Link Here
1
--- data/Makefile.in.orig
2
+++ data/Makefile.in
3
@@ -46,13 +46,13 @@
4
 
5
 install:
6
 	if test -r $(MKINSTALLDIRS); then \
7
-		$(MKINSTALLDIRS) $(packagedatadir); \
8
+		$(MKINSTALLDIRS) $(DESTDIR)$(packagedatadir); \
9
 	else \
10
-		$(top_srcdir)/mkinstalldirs $(packagedatadir); \
11
+		$(top_srcdir)/mkinstalldirs $(DESTDIR)$(packagedatadir); \
12
 	fi; \
13
 	data="$(data)"; \
14
 	for file in $$data; do \
15
-		$(INSTALL_DATA) $(srcdir)/$$file $(packagedatadir)/$$file; \
16
+		$(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(packagedatadir)/$$file; \
17
 	done; \
18
 
19
 # Define this as empty until I found a useful application.
(-)japanese/ebview/files/patch-help__Makefile.in (+21 lines)
Line 0 Link Here
1
--- help/Makefile.in.orig
2
+++ help/Makefile.in
3
@@ -49,15 +49,15 @@
4
 	dir="$(dir)"; \
5
 	for lang in $$dir; do \
6
 		if test -r $(MKINSTALLDIRS); then \
7
-			$(MKINSTALLDIRS) $(packagedatadir)/help/$$lang; \
8
+			$(MKINSTALLDIRS) $(DESTDIR)$(packagedatadir)/help/$$lang; \
9
 		else \
10
-			$(top_srcdir)/mkinstalldirs $(packagedatadir)/help/$$lang; \
11
+			$(top_srcdir)/mkinstalldirs $(DESTDIR)$(packagedatadir)/help/$$lang; \
12
 		fi; \
13
 	done; \
14
 	data="$(data)"; \
15
 	for lang in $$dir; do \
16
 		for file in $$data; do \
17
-			$(INSTALL_DATA) $(srcdir)/$$lang/$$file $(packagedatadir)/help/$$lang/$$file; \
18
+			$(INSTALL_DATA) $(srcdir)/$$lang/$$file $(DESTDIR)$(packagedatadir)/help/$$lang/$$file; \
19
 		done; \
20
 	done; \
21
 
(-)japanese/ebview/files/patch-po__Makefile.in.in (+52 lines)
Line 0 Link Here
1
--- po/Makefile.in.in.orig
2
+++ po/Makefile.in.in
3
@@ -111,9 +111,9 @@
4
 install-data-no: all
5
 install-data-yes: all
6
 	if test -r "$(MKINSTALLDIRS)"; then \
7
-	  $(MKINSTALLDIRS) $(datadir); \
8
+	  $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
9
 	else \
10
-	  $(SHELL) $(top_srcdir)/mkinstalldirs $(datadir); \
11
+	  $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
12
 	fi
13
 	@catalogs='$(CATALOGS)'; \
14
 	for cat in $$catalogs; do \
15
@@ -125,27 +125,27 @@
16
 	  lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
17
 	  dir=$$destdir/$$lang/LC_MESSAGES; \
18
 	  if test -r "$(MKINSTALLDIRS)"; then \
19
-	    $(MKINSTALLDIRS) $$dir; \
20
+	    $(MKINSTALLDIRS) $(DESTDIR)$$dir; \
21
 	  else \
22
-	    $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
23
+	    $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$$dir; \
24
 	  fi; \
25
 	  if test -r $$cat; then \
26
-	    $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
27
-	    echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
28
+	    $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT); \
29
+	    echo "installing $$cat as $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
30
 	  else \
31
-	    $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
32
+	    $(INSTALL_DATA) $(srcdir)/$$cat $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT); \
33
 	    echo "installing $(srcdir)/$$cat as" \
34
-		 "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
35
+		 "$(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
36
 	  fi; \
37
 	  if test -r $$cat.m; then \
38
-	    $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
39
-	    echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
40
+	    $(INSTALL_DATA) $$cat.m $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
41
+	    echo "installing $$cat.m as $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
42
 	  else \
43
 	    if test -r $(srcdir)/$$cat.m ; then \
44
 	      $(INSTALL_DATA) $(srcdir)/$$cat.m \
45
-		$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
46
+		$(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
47
 	      echo "installing $(srcdir)/$$cat as" \
48
-		   "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
49
+		   "$(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
50
 	    else \
51
 	      true; \
52
 	    fi; \

Return to bug 185708